> ## Documentation Index
> Fetch the complete documentation index at: https://docs.swippee.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve merchants

> Turn raw Fonepay terminal PANs and merchant-name strings into clean merchant data — name, MCC, spend category, and city. FULL scope; bills 1 unit per call (batch up to 1000 lookups).



## OpenAPI

````yaml /openapi.json post /v1/merchants/resolve
openapi: 3.1.0
info:
  title: Swippee API
  version: 1.0.0
  description: >-
    Convert Nepali bank statement PDFs into structured financial data, derive
    lending products from a parse, and read Nepal's public-sector financial
    datasets — over one REST API.
servers:
  - url: https://api.swippee.com
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/merchants/resolve:
    post:
      tags:
        - Merchants
      summary: Resolve merchants
      description: >-
        Turn raw Fonepay terminal PANs and merchant-name strings into clean
        merchant data — name, MCC, spend category, and city. FULL scope; bills 1
        unit per call (batch up to 1000 lookups).
      operationId: resolveMerchants
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                terminals:
                  type: array
                  items:
                    type: string
                  example:
                    - '2222000000000000'
                names:
                  type: array
                  items:
                    type: string
                  example:
                    - Example Cafe
      responses:
        '200':
          description: Resolved merchants
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MerchantResolveResult'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    MerchantResolveResult:
      type: object
      properties:
        data:
          type: object
          properties:
            count:
              type: integer
            matched:
              type: integer
            results:
              type: array
              items:
                type: object
                properties:
                  input:
                    type: string
                  type:
                    type: string
                    enum:
                      - terminal
                      - name
                  matched:
                    type: boolean
                  merchant:
                    type:
                      - string
                      - 'null'
                  mcc:
                    type:
                      - string
                      - 'null'
                  category:
                    type:
                      - string
                      - 'null'
                  city:
                    type:
                      - string
                      - 'null'
                  terminal:
                    type:
                      - string
                      - 'null'
        meta:
          type: object
          properties:
            source:
              type: string
    Error:
      type: object
      description: >-
        Flat, industry-standard error envelope. Branch on error_code, not the
        HTTP status.
      properties:
        error_type:
          type: string
          example: AUTHENTICATION_ERROR
        error_code:
          type: string
          example: INVALID_API_KEY
        error_message:
          type: string
          example: Unknown API key.
        display_message:
          type: string
          nullable: true
          example: null
        request_id:
          type: string
          example: req_8f3c9b2e4a1d4f7c9e0b1a2c3d4e5f60
        documentation_url:
          type: string
          example: https://docs.swippee.com/concepts/errors#invalid_api_key
        suggested_action:
          type: string
          example: Check your API key in the Authorization header.
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your API key from the dashboard, sent as `Authorization: Bearer
        swippee_sk_live_...`.

````