API reference
Enrich one descriptor
POST/v1/enrich
Reads the descriptor and identifies the merchant behind it. source says how the answer was reached.
When nothing can be determined the response is still 200, with merchant: null and confidence: 0. A merchant found by the AI is read from the descriptor itself: it has source: ai, verified: false and a confidence of at most 0.85 until our team reviews it.
Request body
| Field | Type | Description |
|---|---|---|
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 |
|---|---|---|
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 | |
request_idrequired |
string | Unique ID of this request. |
Status codes
-
200
Enrichment result.
-
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