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.
Batch merchant enrichment is not enabled by default. To request access, please
contact us at sales@spade.com
Overview
Batch merchant enrichment allows you to enrich a large volume of merchants with industry classification, predicted Merchant Category Code (MCC), and payment acceptance details in a single request. You can submit up to50,000 merchants per batch. Given a merchant name and either a website or location details, Spade returns:
- Predicted MCC: A list of the most likely Merchant Category Codes for the merchant.
- Industry classification: A hierarchical industry taxonomy, from broadest category to most specific.
- Payment acceptance signals: Whether the merchant accepts cards, processes transactions online or in-person, and payment platforms/technologies used by the merchant.
batchId to check status and retrieve results once processing is complete. This endpoint also supports microbatching for small batches (up to 50 merchants); see the Microbatch enrichment guide.
Request Schema
The request body wraps your merchants in amerchants array.
levelfield: Use"corporation"when you want brand-level information (e.g. Costco in general) or"location"when you want information about a specific physical location (e.g. one specific Costco location). Defaults to"location"if not specified.
Sending the Request
Asynchronous Response (default)
By default, the response returns abatchId you can use to check status and retrieve results.
Store the
batchId — you’ll need it to retrieve results.callbackUrl in your submission. For full details on callbacks and polling, refer to the Batch Enrichment Guide. Both batch endpoints use the same callback mechanism.
Retrieving Results
Once the batch status iscompleted, retrieve results via the /batches/{batchId}/results endpoint.
The
/batches/{batchId}/results endpoint returns a 202 status code if the
batch is not yet complete. Poll until you receive a 200.Response Breakdown
predictedMcc
ThepredictedMcc field contains a list of relevant merchant category codes for the merchant.
| Field | Description |
|---|---|
code | The predicted MCC code (4-digit string). |
description | Human-readable description of the MCC code. |
industry
Theindustry field contains a list of categories ordered from broadest to most specific.
| Field | Description |
|---|---|
id | Category identifier (e.g., “011-000-000-000”). |
name | Human-readable category name (e.g., “Gas Stations”). |
icon | URL to the category icon. |
Payment acceptance fields
| Field | Description |
|---|---|
isActivelyProcessingCardTransactions | Whether the merchant is actively processing card transactions. |
isCardAccepting | Whether the merchant accepts card payments. |
acceptsOnlinePayment | Whether the merchant accepts online/e-commerce payments. |
acceptsBrickAndMortarPayment | Whether the merchant accepts in-person payments. |
knownTechnologies | An array of payment technologies used by the merchant. |
Error Handling
Invalid merchants are not rejected outright — they appear in theresults array with a statusCode of 400 and an errors object describing what went wrong. Valid merchants in the same batch are still processed normally.
Implementation Notes
- Content-Type must be
application/json. - 400 errors on the batch submission itself indicate a malformed request (e.g., no merchants provided, duplicate
idvalues, or exceeding the 50,000 merchant limit). - 403 errors — Invalid or missing API key.
- 500 errors — Spade infrastructure issue. Exponential back-off is recommended before resubmitting.

