Skip to main content

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 to 50,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.
By default, all batches are processed asynchronously — you’ll receive a 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 a merchants array.
level field: 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 a batchId you can use to check status and retrieve results.
Store the batchId — you’ll need it to retrieve results.
To receive a notification when processing completes, include a 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 is completed, 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

The predictedMcc field contains a list of relevant merchant category codes for the merchant.

industry

The industry field contains a list of categories ordered from broadest to most specific.

Payment acceptance fields


Error Handling

Invalid merchants are not rejected outright — they appear in the results 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 id values, 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.