DescriptorAPI Enrichment API

Turn descriptors into merchant data.

GitHub OpenAPI

Operations 2

POST /v1/enrich Enrich one descriptor #
POST /v1/enrich/batch Enrich up to 100 descriptors #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/descriptorapi-com:descriptorapi-com-enrichment-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

descriptorapi-com-enrichment-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Descriptorapi Com Enrichment API
  version: 1.0.0
  contact:
    url: https://descriptorapi.com/contact
  license:
    name: Proprietary
    url: https://descriptorapi.com/terms
  description: 'Operations tagged Enrichment across 2 of this provider''s published API definitions: descriptorapi-com-openapi.yml, descriptorapi-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.descriptorapi.com
security:
- bearerAuth: []
- apiKeyHeader: []
tags:
- name: Enrichment
  description: Turn descriptors into merchant data.
paths:
  /v1/enrich:
    post:
      tags:
      - Enrichment
      operationId: enrich
      summary: Enrich one descriptor
      description: '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.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnrichRequest'
            example:
              descriptor: POS 4521 CAREEM*RIDE DXB AE
              country: AE
              mcc: '4121'
              amount: 23.5
              currency: AED
      responses:
        '200':
          description: Enrichment result.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/EnrichResult'
                - type: object
                  required:
                  - request_id
                  properties:
                    request_id:
                      $ref: '#/components/schemas/RequestID'
              example:
                request_id: req_01JABCDEF0123456789ABCDEFG
                descriptor: POS 4521 CAREEM*RIDE DXB AE
                normalized: CAREEM RIDE
                merchant:
                  id: mer_01JABCDEF0123456789ABCDEFG
                  name: Careem
                  legal_name: null
                  website: https://www.careem.com
                  logo_url: https://cdn.descriptorapi.com/logos/careem.png
                  category: transportation
                  subcategory: ride_hailing
                  mcc: '4121'
                location:
                  city: Dubai
                  country: AE
                processor: null
                is_subscription: false
                confidence: 0.97
                source: cache
                verified: true
                kind: purchase
                related: null
        '400':
          $ref: '#/components/responses/InvalidRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/QuotaExceeded'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
    servers:
    - url: https://api.descriptorapi.com
  /v1/enrich/batch:
    post:
      tags:
      - Enrichment
      operationId: enrichBatch
      summary: Enrich up to 100 descriptors
      description: '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`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - items
              properties:
                items:
                  type: array
                  minItems: 1
                  maxItems: 100
                  items:
                    $ref: '#/components/schemas/EnrichRequest'
            example:
              items:
              - descriptor: POS 4521 CAREEM*RIDE DXB AE
              - descriptor: PAYPAL *NETFLIX 4029357733
                country: AE
      responses:
        '200':
          description: One result or error per item, in input order.
          content:
            application/json:
              schema:
                type: object
                required:
                - request_id
                - results
                properties:
                  request_id:
                    $ref: '#/components/schemas/RequestID'
                  results:
                    type: array
                    items:
                      oneOf:
                      - $ref: '#/components/schemas/EnrichResult'
                      - $ref: '#/components/schemas/ItemError'
        '400':
          $ref: '#/components/responses/InvalidRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/QuotaExceeded'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
    servers:
    - url: https://api.descriptorapi.com
components:
  schemas:
    ItemError:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              $ref: '#/components/schemas/ErrorCode'
            message:
              type: string
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - request_id
          properties:
            code:
              $ref: '#/components/schemas/ErrorCode'
            message:
              type: string
            request_id:
              $ref: '#/components/schemas/RequestID'
    RequestID:
      type: string
      description: Unique ID of this request.
      examples:
      - req_01JABCDEF0123456789ABCDEFG
    EnrichResult:
      type: object
      required:
      - descriptor
      - normalized
      - merchant
      - location
      - processor
      - is_subscription
      - confidence
      - source
      - verified
      - kind
      - related
      properties:
        descriptor:
          type: string
          description: The descriptor you sent.
        normalized:
          type: string
          description: The cleaned merchant part of the descriptor.
          examples:
          - CAREEM RIDE
        merchant:
          oneOf:
          - $ref: '#/components/schemas/Merchant'
          - type: 'null'
        location:
          description: 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.
          oneOf:
          - type: object
            required:
            - city
            - country
            properties:
              city:
                type:
                - string
                - 'null'
              country:
                type:
                - string
                - 'null'
                description: ISO 3166-1 alpha-2.
          - type: 'null'
        processor:
          type:
          - string
          - 'null'
          description: 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_subscription:
          type: boolean
        confidence:
          type: number
          minimum: 0
          maximum: 1
          description: 0 when nothing was found.
        source:
          type:
          - string
          - 'null'
          enum:
          - cache
          - rules
          - fuzzy
          - ai
          - null
          description: How the merchant was resolved; null when nothing was found.
        verified:
          type: boolean
          description: True only when the merchant record has been approved by our team.
        kind:
          type: string
          enum:
          - purchase
          - refund
          - declined
          - transfer
          - bank
          - promo
          description: '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. `transfer`: money between people or accounts (wallet top-ups included),

            or salary.

            `bank`: a line the bank or wallet writes itself, such as a fee, interest, cashback,

            a cash withdrawal or a card payment. `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.

            '
        related:
          description: '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.

            `merchant` is null when we do not know that merchant yet. Null when the line names

            no merchant.

            '
          oneOf:
          - type: object
            required:
            - normalized
            - merchant
            properties:
              normalized:
                type: string
                examples:
                - DUNZO
              merchant:
                oneOf:
                - $ref: '#/components/schemas/Merchant'
                - type: 'null'
          - type: 'null'
    Merchant:
      type: object
      required:
      - id
      - name
      - legal_name
      - website
      - logo_url
      - category
      - subcategory
      - mcc
      properties:
        id:
          type:
          - string
          - 'null'
          description: Merchant ID, or null for an AI suggestion that has not been reviewed yet.
        name:
          type: string
        legal_name:
          type:
          - string
          - 'null'
          description: '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.'
        website:
          type:
          - string
          - 'null'
          format: uri
          description: The brand's website for that same country (lidl.ch in Switzerland), else its main one.
        logo_url:
          type:
          - string
          - 'null'
          format: uri
        category:
          type: string
          description: Top-level category ID, see /v1/categories.
        subcategory:
          type:
          - string
          - 'null'
        mcc:
          type:
          - string
          - 'null'
    ErrorCode:
      type: string
      enum:
      - invalid_request
      - unauthorized
      - not_found
      - quota_exceeded
      - rate_limited
      - internal_error
    EnrichRequest:
      type: object
      required:
      - descriptor
      properties:
        descriptor:
          type: string
          minLength: 1
          maxLength: 256
          description: The raw statement line, exactly as your bank or processor provides it.
        country:
          type: string
          pattern: ^[A-Za-z]{2}$
          description: 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:
          type: string
          pattern: ^[0-9]{4}$
          description: Optional merchant category code from the card network.
        amount:
          type: number
          minimum: 0
          description: Optional. Accepted and validated; not used for matching yet.
        currency:
          type: string
          pattern: ^[A-Za-z]{3}$
          description: '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.'
  responses:
    Unauthorized:
      description: Missing, invalid or revoked API key, or a suspended account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Something went wrong on our side.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    QuotaExceeded:
      description: '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.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InvalidRequest:
      description: The request is malformed or a field is invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request
              message: descriptor is required.
              request_id: req_01JABCDEF0123456789ABCDEFG
    RateLimited:
      description: Too many requests per second. Retry after the number of seconds in `Retry-After`.
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: '`Authorization: Bearer dk_live_...`'
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
x-refined-from:
- descriptorapi-com-openapi.yml
- descriptorapi-com-openapi.yml