1. Services
  2. Payment QR

Payment QR decoder API (QRIS, PromptPay, DuitNow, PayNow, VietQR)

Paste the text inside a merchant payment QR and get the scheme, merchant, currency, amount and a CRC check. Works with QRIS, PromptPay, DuitNow, SGQR and PayNow, VietQR and any other EMVCo merchant-presented code.

POST /v1/payment-qr/decode1 creditAbout $0.001

Try it

POST/v1/payment-qr/decode
curl -X POST 'https://api.apifor.dev/v1/payment-qr/decode' \
  -H 'content-type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{"payload":"00020101021138570010A00000072701270006970436011300110012345670208QRIBFTTA5204581253037045802VN5908Demo Pho6006Ha Noi6304E36C"}'
Example response · 200
{
  "success": true,
  "data": {
    "valid": true,
    "crc": {
      "valid": true,
      "expected": "E36C",
      "actual": "E36C"
    },
    "scheme": {
      "id": "vietqr",
      "name": "VietQR"
    },
    "schemes": [
      "vietqr"
    ],
    "payload_format": "01",
    "point_of_initiation": "static",
    "merchant": {
      "name": "Demo Pho",
      "city": "Ha Noi",
      "postal_code": null,
      "country": "VN",
      "category_code": "5812",
      "alternate": null
    },
    "transaction": {
      "currency": "VND",
      "currency_numeric": "704",
      "amount": null,
      "tip": null
    },
    "merchant_accounts": [
      {
        "tag": "38",
        "guid": "A000000727",
        "scheme": "vietqr",
        "fields": {
          "00": "A000000727",
          "01": "000697043601130011001234567",
          "02": "QRIBFTTA"
        },
        "details": {
          "bank_bin": "970436",
          "account_or_card": "0011001234567",
          "service_code": "QRIBFTTA",
          "service": "transfer_to_account"
        }
      }
    ],
    "card_networks": [],
    "additional_data": null,
    "tags": [
      {
        "tag": "00",
        "name": "payload_format_indicator",
        "length": 2,
        "value": "01"
      },
      {
        "tag": "01",
        "name": "point_of_initiation_method",
        "length": 2,
        "value": "11"
      }
    ],
    "warnings": []
  }
}

A real response from our OpenAPI file, with long lists and strings shortened.

Endpoints and price

EndpointCreditsAbout
POST /v1/payment-qr/decode1 credit$0.001
POST /v1/payment-qr/to-dynamic1 credit$0.001
GET /v1/payment-qr/coverage (Free)Free$0

USD at Starter pack prices ($5 for 5,000 credits). Calls that fail before work starts are refunded.

Coverage today

Works for any country. Country-specific data: Indonesia, Malaysia, Singapore, Thailand and Vietnam.

Sources, row counts and country-only fields per country: GET /v1/payment-qr/coverage, free with your API key. How coverage works

Limits

  • Payloads up to 512 characters, starting with 000201.
  • to-dynamic works for QRIS and VietQR. Other schemes answer 422.
  • A wrong CRC is not an error: you get 200 with valid: false. Broken TLV structure is a 400.
  • We do not store payloads.

Questions

Can I add an amount to a static code?

Yes, for QRIS and VietQR. POST the payload and a whole-number amount to /v1/payment-qr/to-dynamic for a new payload with a fresh CRC.

Does it read QR images?

No. Send the text encoded in the QR, which any scanner library gives you.

Related services

All services