POST
/
enrichments
/
{enrichmentId}
/
refund
Report that a refund occurred
curl --request POST \
  --url https://east.sandbox.spade.com/enrichments/{enrichmentId}/refund \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "refundNotes": "Frequently refunded item.",
  "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 refund occurred.

Body

application/json
refundNotes
string

Any additional details related to a refund

Maximum length: 512
Examples:

"Frequently refunded item."

occurredAt
string<date-time>

The time the refund 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

Refund reported successfully.

Response for reporting any kind of enrichment feedback.

details
string
Examples:

"Chargeback successfully reported."