POST
/
batches
/
transactions
/
cards
/
enrich
curl --request POST \
  --url https://east.sandbox.spade.com/batches/transactions/cards/enrich \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "transactions": [
    {
      "merchantName": "Amazon",
      "userId": "user_id_123456789",
      "cardId": "card_id_123456789",
      "cardFirstSix": "123456",
      "cardLastFour": "7890",
      "transactionId": "transaction_id_123456789",
      "acquirerId": "000000000123456",
      "amount": "25.23",
      "currencyCode": "USD",
      "occurredAt": "2022-06-15 18:27:51Z",
      "categoryCode": "5812",
      "categoryType": "MCC",
      "location": {
        "address": "1234 W 5th Ave Suite 100",
        "city": "New York",
        "region": "NY",
        "country": "USA",
        "postalCode": "10001",
        "latitude": 45,
        "longitude": 120
      },
      "customAttributes": {
        "custom_attribute_1": "value_1",
        "custom_attribute_2": "value_2"
      }
    }
  ],
  "callbackUrl": "https://example.com/callback"
}'
{
  "batchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "pending",
  "batchSize": 1,
  "submittedAt": "2024-11-21T20:07:20.213660Z"
}

Authorizations

X-Api-Key
string
header
required

Body

application/json

Response

200
application/json

Successful operation

The response is of type object.