Skip to content
DescriptorAPI

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

FieldTypeDescription
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

FieldTypeDescription
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 merchant null: the line was read, and that merchant is not in the database yet.

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: cache, rules, fuzzy, ai.

verifiedrequired boolean

True only when the merchant record has been approved by our team.

kindrequired string

What the descriptor is. purchase: a payment to a merchant, also when the merchant is not identified. refund: money back from a merchant; merchant is the merchant that refunded. declined: a payment that did not go through, so no money moved; merchant is where it was tried. otp: a one-time code message sent before a payment ("Your OTP for purchase of AED 350 at NOON is 482911"), so no money moved yet; merchant is where the payment is being made. A refund that failed is declined too. notice: a message where no money moved, such as a card limit changed, a card frozen, replaced or added to a phone wallet, a PIN changed, points earned, a payment due, a subscription about to renew, repriced or cancelled, a dispute opened or a fraud alert; merchant is the merchant it is about, when it names one. preauth: an amount held on the card, such as a hotel or car hire deposit; it is settled later, often for a different amount, so do not count it as spending; merchant is who holds it. release: a hold released, so the amount held is free again and nothing was charged; do not count it as spending or as a refund; merchant is who held it. transfer: money between people or accounts (wallet top-ups included), salary, money received from anyone (an insurance claim paid out included), a payout or settlement paid into the account by a business, or money sent abroad through a remittance house or app, whose name is in processor. bank: a line the bank or wallet writes itself, such as a fee, interest, cashback, a cash withdrawal, a card payment, a loan paid out or an instalment paid to a lender or pay-later provider, or a purchase turned into instalments; related names the merchant or lender it is about. promo: an advert sent in place of a transaction, so no money moved; normalized is empty and merchant is null. The AI is never asked about transfer, bank and promo lines. refund, declined, otp, preauth, release and notice lines name a merchant too, so decide what counts as spending from kind, not from whether merchant is set. One of: purchase, refund, declined, otp, preauth, release, notice, transfer, bank, promo.

relatedrequired object | null

For a bank line that names a merchant, the merchant it is about: "Rs.6 cashback for your Dunzo order" is about Dunzo, "Loan EMI of Rs. 12,000 paid to Bajaj Finance" is about the lender Bajaj Finance. A card's own EMI names no one: that is the bank itself. A salary paid by a company names the employer here too; a name that may be a person's is left out. merchant is null when we do not know that merchant yet. Null when the line names no merchant.

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

Try it

Runs through the playground, no key needed