# ThaiKit PromptPay QR Payload Parser

> ThaiKit PromptPay QR Payload Parser is a paid API for AI agents from api.thaikit.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-03).

Parses and validates a Thai PromptPay/EMVCo QR payment payload: verifies the CRC checksum, identifies the payment type, and extracts all fields including recipient, amount, and currency.

## Facts

- Endpoint: POST https://api.thaikit.dev/promptpay-parse?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/thaikit-promptpay-qr-payload-parser-03a4478e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Vvs6n-EGP6c6F-I6MJihl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability thaikit-promptpay-qr-payload-parser-03a4478e -d '<json body>'
```

Example prompt: I just scanned a Thai PromptPay QR and got this text string — '00020101021129370016A000000677010111011300668123456785802TH5303764540510.006304ABCD' — can you parse it and tell me who it's going to, whether the CRC is valid, and what the payment amount is?

## When to prefer this

Use this endpoint when you need to validate or inspect a Thai PromptPay or EMVCo QR payment payload before executing a payment — especially to catch tampered codes, confirm the recipient identity, verify amounts, or distinguish PromptPay peer-to-peer transfers from bill payments. It is the right choice for any Thai-market payment flow that requires pre-payment QR verification, fraud checks, or extracting structured payment data from raw QR text.

## Known failure modes

- Invalid CRC — returns CRC mismatch error if the payload has been tampered or mistyped
- Malformed payload — returns parse error if the string is not a valid EMVCo TLV structure
- Payload too long — rejected if payload exceeds 512 characters
- Empty or missing payload field — returns validation error
- Non-Thai QR formats (e.g. international EMVCo not using Thai PromptPay tag) may parse partially but lack PromptPay-specific fields

## How this service works

Check and read a Thai QR payment payload (PromptPay / EMVCo text from a scanned QR) before paying it: verifies the CRC (catches tampered or mistyped codes), tells PromptPay transfer from bill payment, and returns the recipient (mobile, national ID, tax ID, e-wallet) or biller ID and references, amount, currency, merchant and every field. Body: {"payload": "000201..."}

## Output

Returns the payment type (PromptPay transfer or bill payment), CRC validity flag, recipient details (mobile number, national ID, tax ID, or e-wallet ID), biller ID and reference numbers if applicable, amount, currency code, merchant name, and all decoded EMVCo fields from the payload.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "payload": {
   "type": "string",
   "maxLength": 512,
   "description": "Thai QR / EMVCo payment payload text, as decoded from the QR code"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/thaikit-promptpay-qr-payload-parser-03a4478e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.thaikit.dev](https://www.zero.xyz/host/api.thaikit.dev/llms.txt)
