API reference
Enrich up to 100 descriptors
POST/v1/enrich/batch
Same as /v1/enrich for up to 100 items, processed concurrently. Results come back in the same order as the items. An invalid item gets an error object in its place without failing the rest of the batch. If your remaining quota is smaller than the batch, the whole batch is rejected with quota_exceeded.
Request body
| Field | Type | Description |
|---|---|---|
itemsrequired |
object[] | |
descriptorrequired |
string | The raw statement line, exactly as your bank or processor provides it. |
country |
string | Optional ISO 3166-1 alpha-2 code of the card or account country. Improves accuracy. A country named in the descriptor comes first, and a currency used by one country comes before this, because a card can be used abroad. |
mcc |
string | Optional merchant category code from the card network. |
amount |
number | Optional. Accepted and validated; not used for matching yet. |
currency |
string | Optional ISO 4217 code of the currency the transaction was paid in. It tells us where the card was used when the descriptor does not say: a currency used by one country (AED, EGP, GBP) points to that country, EUR and other shared currencies to their region (or to your country, when it uses that currency), and USD is ignored because it is spent everywhere. Improves accuracy. |
Response
| Field | Type | Description |
|---|---|---|
request_idrequired |
string | Unique ID of this request. |
resultsrequired |
object | object[] | |
descriptorrequired |
string | The descriptor you sent. |
normalizedrequired |
string | The cleaned merchant part of the descriptor. Empty when the text names no merchant to look up (an advert, a code message, a fragment of a sentence). Not empty with |
merchantrequired |
object | null | |
idrequired |
string | null | Merchant ID, or null for an AI suggestion that has not been reviewed yet. |
namerequired |
string | |
legal_namerequired |
string | null | The registered company. A brand can trade through a different company in each country: this is the one where the transaction happened (the country in the descriptor, else the currency's, else your country hint), or the brand's own when we do not know that one. |
websiterequired |
string | null | The brand's website for that same country (lidl.ch in Switzerland), else its main one. |
logo_urlrequired |
string | null | |
categoryrequired |
string | Top-level category ID, see /v1/categories. |
subcategoryrequired |
string | null | |
mccrequired |
string | null | |
locationrequired |
object | null | Where the transaction happened, from the descriptor, else the currency. When neither says, a merchant with one site or one country of business gives its own country (a card used abroad); otherwise your country hint. |
cityrequired |
string | null | |
countryrequired |
string | null | ISO 3166-1 alpha-2. |
processorrequired |
string | null | Aggregator or wallet detected in the descriptor (PayPal, Square, Apple Pay, Tabby, ...). May also be present on a transfer or bank line; it does not imply a merchant purchase. |
is_subscriptionrequired |
boolean | |
confidencerequired |
number | 0 when nothing was found. |
sourcerequired |
string | null | How the merchant was resolved; null when nothing was found. One of: |
verifiedrequired |
boolean | True only when the merchant record has been approved by our team. |
kindrequired |
string | What the descriptor is. |
relatedrequired |
object | null | For a |
normalizedrequired |
string | |
merchantrequired |
object | null | |
idrequired |
string | null | Merchant ID, or null for an AI suggestion that has not been reviewed yet. |
namerequired |
string | |
legal_namerequired |
string | null | The registered company. A brand can trade through a different company in each country: this is the one where the transaction happened (the country in the descriptor, else the currency's, else your country hint), or the brand's own when we do not know that one. |
websiterequired |
string | null | The brand's website for that same country (lidl.ch in Switzerland), else its main one. |
logo_urlrequired |
string | null | |
categoryrequired |
string | Top-level category ID, see /v1/categories. |
subcategoryrequired |
string | null | |
mccrequired |
string | null |
Status codes
-
200
One result or error per item, in input order.
-
400
The request is malformed or a field is invalid.
Error code
invalid_request -
401
Missing, invalid or revoked API key, or a suspended account.
Error code
unauthorized -
402
HTTP 402. The monthly quota of your plan is used up (or a batch is larger than what is left). Quotas reset at the start of each UTC month.
Error code
quota_exceeded -
429
Too many requests per second. Retry after the number of seconds in
Retry-After.Error code
rate_limited -
500
Something went wrong on our side.
Error code
internal_error