Enrich a batch of universal transactions
Submit a batch of universal transactions for enrichment. This endpoint will return a batchId which can be used in the /batches/{batchId} and /batches/{batchId}/results endpoints to check the status of the batch job and retrieve the results.
You can pass ?synchronous=true to enrich smaller sets of transactions synchronously. See the Microbatch enrichment guide for details.
Note that we impose a rate limit on the number of batch requests made in a rolling 12 hour window. Please reach out to sales@spade.com with any questions.
Request
- Base URLhttps://east.sandbox.spade.com
- URLhttps://east.sandbox.spade.com/batches/transactions/universal/enrich
- AuthAPI key in header X-Api-Key
Query parameters
When true, returns enriched results inline in the response instead of a batchId. Microbatches are capped to ensure timely processing. See the Microbatch enrichment guide for details.
Request body
Example request
{
"transactions": [
{
"organizationId": "organization_id_123",
"userId": "user_id_123456789",
"accountId": "account_id_123456789",
"transactionId": "transaction_id_123456789",
"description": "AMAZON CORP SYF PAYMNT",
"currencyCode": "USD",
"occurredAt": "2022-06-15 18:27:51Z",
"direction": "CREDIT",
"billingProfile": "standard",
"customAttributes": {
"custom_attribute_1": "value_1",
"custom_attribute_2": "value_2"
}
}
],
"callbackUrl": "https://example.com/callback"
}Response
Successful operation
Example response
{
"batchSize": 1,
"submittedAt": "2024-11-21T20:07:20.213660Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.