POST
/
enrichments
/
{enrichmentId}
/
decline
Report that a card decline occurred
curl --request POST \
  --url https://east.sandbox.spade.com/enrichments/{enrichmentId}/decline \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "declineCode": "51",
  "declineDescription": "Insufficient funds",
  "declineNotes": "Unknown reason for decline.",
  "occurredAt": "2022-06-15 18:27:51Z",
  "isFraud": false,
  "fraudType": "card_not_present",
  "fraudNotes": "Merchant is believed to commonly be used for card testing."
}'
{
  "details": "Chargeback successfully reported."
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

enrichmentId
string
required

The enrichmentId of enrichment associated with the transaction where a card decline occurred.

Body

application/json
declineCode
string

A two digit alphanumeric code indicating why a card transaction was declined. For reference, see the Visa Action Code or the Mastercard Network Response Codes.

Maximum length: 128
Examples:

"51"

declineDescription
string

A plain text description associated with a decline code.

Maximum length: 512
Examples:

"Insufficient funds"

declineNotes
string

Any additional details related to a card decline not covered by the declineCode or declineDescription.

Maximum length: 512
Examples:

"Unknown reason for decline."

occurredAt
string<date-time>

The time the decline occurred. Formatted as an ISO 8601 date time.

Examples:

"2022-06-15 18:27:51Z"

isFraud
boolean

A boolean indicating if this transaction was suspected to involve fraud.

Examples:

false

fraudType
enum<string>

The type of fraud suspected to have occurred. This field can only be provided if isFraud is true.

Available options:
card_not_present,
card_testing,
chargeback_fraud,
counterfeit_card,
merchant_fraud,
other,
phishing,
stolen_card,
unknown,
none
fraudNotes
string

Any additional details related to fraud suspected to have occurred on the associated transaction. This field can only be provided if isFraud is true.

Maximum length: 512
Examples:

"Merchant is believed to commonly be used for card testing."

Response

Decline reported successfully.

Response for reporting any kind of enrichment feedback.

details
string
Examples:

"Chargeback successfully reported."