---
title: "Payment QR decoder API (QRIS, PromptPay, DuitNow, PayNow, VietQR) | APIFor"
description: "Paste the text inside a merchant payment QR and get the scheme, merchant, currency, amount and a CRC check. 1 credit per call, REST and MCP, one API key."
canonical: "https://apifor.dev/services/payment-qr/"
---

1. [Services](https://apifor.dev/services/)
2. [Payment QR](https://apifor.dev/services/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/decode 1 credit About $0.001

[Get a free API key](https://app.apifor.dev/register) [Endpoint reference](https://apifor.dev/docs/reference/payment-qr/)

## Try it

POST /v1/payment-qr/decode

```bash
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

```json
{
  "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

| Endpoint | Credits | About |
| --- | --- | --- |
| POST `/v1/payment-qr/decode` | 1 credit | $0.001 |
| POST `/v1/payment-qr/to-dynamic` | 1 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`](https://apifor.dev/docs/reference/payment-qr/#get-payment-qr-coverage), free with your API key. [How coverage works](https://apifor.dev/docs/coverage/)

## 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.

## Sources and licences

- **[EMV QR Code Specification (Merchant-Presented Mode)](https://www.emvco.com/emv-technologies/qr-codes/)**: Public specification, implemented independently

## Also on MCP

Connect `https://mcp.apifor.dev/mcp` and your agent gets a tool for this service, billed the same way.

[MCP setup](https://apifor.dev/docs/mcp/)

## 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](https://apifor.dev/services/)

- [Exchange rates and currency conversion API](https://apifor.dev/services/exchange-rates/)
- [Food price API](https://apifor.dev/services/food-prices/)
- [Fuel price API](https://apifor.dev/services/fuel-prices/)
- [Statistics API](https://apifor.dev/services/statistics/)
- [Central bank policy rates API](https://apifor.dev/services/policy-rates/)
- [Property transactions API](https://apifor.dev/services/property-transactions/)
