Create fraud feedback
Create feedback on whether a transaction was confirmed to be fraudulent or a false positive. Action:POSTEndpoint:
/fraud
Body field details (request)
| Fields | Description |
|---|---|
| transaction_token string Required | Unique identifier of the transaction. Allowable Values: Format: UUID |
| is_fraud boolean Required | Indicates whether the transaction has been determined to be fraud. Allowable Values: true, false |
| status string Required | The fraud status. Allowable Values: CONFIRMED – Customer confirmed fraud or false positiveDISPUTED – Dispute is created |
| actor string Optional | The party making the call. If no value is provided, this field will default to UNKNOWN. Allowable Values: UNKNOWN – The party is unclear THIRD_PARTY_FRAUD – Third-party fraudCARD_USER_FRAUD – First-party fraud |
| amount string Optional | The amount of the transaction that was fraud, for partial fraud claims. If no value is provided, this field will default to the transaction amount from the Marqeta system. Allowable Values: A valid amount. |
| dispute_status string Optional | The dispute status, if a dispute has been filed. Allowable Values: NOT_STARTED, INITIATED, WON, LOST |
| fraud_type string Optional | The high-level fraud type. Allowable Values: LOST_CARDSTOLEN_CARDNEVER_RECEIVED_NOT_RECEIVED_AS_ISSUEDFRAUDULENT_APPLICATIONCOUNTERFEIT_CARDACCOUNT_CREDENTIAL_TAKEOVERCARD_NOT_PRESENT_ACCOUNT_NUMBER_FRAUDMANIPULATION_OF_CARDHOLDERMISCELLANEOUSINCORRECT_PROCESSINGMERCHANT_MISREPRESENTATIONBUST_OUT_COLLUSIVE_MERCHANTMODIFICATION_OF_PAYMENT_ORDER |
| reported_datetime string Optional | The date and time the fraud was reported, in UTC. Allowable Values: Format: YYYY-MM-DDThh:mm:ssZ |
| memo string Optional | Any notes related to the case. Allowable Values: 500 char max |
| metadata object Optional | Additional data written as key/value pairs (for example, KEY1:VALUE1;KEY2:VALUE2).Allowable Values: Up to 20 fields. |
Sample request body
JSON
Feedback response
Returns a response code and message from the feedback request. For a successful request:201
{"message":"success"}
| Fields | Description |
|---|---|
| message string Returned | The message from the feedback request. Allowable Values: 256 char max |
Response errors
| Error code | Description |
|---|---|
| 400 | Bad request. |
| 401 | Unauthorized. |
| 403 | Forbidden. |
| 500 | Internal server. |
Sample response
JSON