> ## 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 a merchant QR poster

> Upload a Fonepay merchant QR poster (PDF or image) and get the merchant back — terminal, name, MCC, category, and city. We read the printed terminal and, for images, decode the QR. FULL scope; bills 1 unit per call. Max 10 MB.



## OpenAPI

````yaml /openapi.json post /v1/merchants/qr
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/qr:
    post:
      tags:
        - Merchants
      summary: Resolve a merchant QR poster
      description: >-
        Upload a Fonepay merchant QR poster (PDF or image) and get the merchant
        back — terminal, name, MCC, category, and city. We read the printed
        terminal and, for images, decode the QR. FULL scope; bills 1 unit per
        call. Max 10 MB.
      operationId: resolveMerchantQr
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
                  description: 'A Fonepay QR poster: PDF, JPEG, or PNG.'
      responses:
        '200':
          description: Resolved merchant
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      found:
                        type: boolean
                      method:
                        type: string
                        enum:
                          - qr
                          - text
                        nullable: true
                      source:
                        type: string
                        enum:
                          - pdf
                          - image
                      terminal:
                        type: string
                        nullable: true
                      resolution:
                        $ref: '#/components/schemas/Merchant'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          description: No Fonepay terminal found, or unsupported file format
components:
  schemas:
    Merchant:
      type: object
      properties:
        merchant:
          type: string
          example: Example Cafe
        mcc:
          type: string
          example: '5814'
        category:
          type: string
          example: dining
        city:
          type: string
          example: Kathmandu
        terminal:
          type: string
          example: '2222000000000000'
    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_...`.

````