Documentation Index
Fetch the complete documentation index at: https://docs.spade.com/llms.txt
Use this file to discover all available pages before exploring further.
Microbatching is not enabled by default. To request access, please contact us
at sales@spade.com.
Overview
Microbatching lets you submit a small batch to one of Spade’s batch enrichment endpoints and receive the enriched results inline in the response, instead of receiving abatchId and polling for results once asynchronous processing finishes.
Choosing a batch mode
-
Microbatch (
?synchronous=true): Processes records synchronously and returns results inline in the response.- Limited to each endpoint’s
synchronousMax. - Use when you have a small number of items (more than one, fewer than a few hundred) and need results back quickly.
- Limited to each endpoint’s
-
Asynchronous (default): Returns a
batchIdimmediately and processes records in the background.- Supports each endpoint’s full async batch size limit and supports
callbackUrlfor completion notifications. - Use when you need to process thousands of records and you need to optimize for overall throughput.
- Supports each endpoint’s full async batch size limit and supports
Enabling microbatching
Append?synchronous=true to any supported batch endpoint. The request schema is identical for synchronous and asynchronous processing.
callbackUrl is ignored when synchronous=true, as the response is returned
inline.Per-endpoint limits
Microbatch sizes are capped per endpoint. Submitting more items than the cap returns a400.
| Endpoint | synchronousMax |
|---|---|
POST /batches/merchants/enrich | 50 |
POST /batches/transactions/cards/enrich | 100 |
POST /batches/transactions/cards/enrich/parse | 100 |
POST /batches/transactions/transfers/enrich | 100 |
POST /batches/transactions/universal/enrich | 100 |
OPTIONS response includes a synchronousMax field with the current value.
Synchronous response shape
Whensynchronous=true is set, the response returns a results array. Each entry contains the same per-item shape that the endpoint’s asynchronous /results endpoint would return — a statusCode plus either the enriched payload (for 200) or an errors object (for 400).
- Card enrichment guide
- Transfer enrichment
- Universal data enrichment guide
- Batch merchant enrichment guide
Errors
- 400 on the submission itself — the request is malformed (no items, duplicate IDs) or exceeds the endpoint’s
synchronousMaxlimit. - 400 per item — invalid items appear in the
resultsarray withstatusCode: 400and anerrorsobject describing what went wrong. Valid items in the same submission are still processed normally. - 403 — invalid or missing API key, or microbatching is not enabled on your account.
- 500 — Spade infrastructure issue. Retry with exponential back-off before resubmitting.

