# ThaiKit PromptPay QR Payload Generator

> ThaiKit PromptPay QR Payload Generator 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).

Generates a Thai PromptPay EMVCo QR payment payload (with CRC checksum) for a mobile number, national/tax ID, or e-wallet ID, with an optional baht amount, and renders it as a scannable QR code.

## Facts

- Endpoint: GET https://api.thaikit.dev/promptpay?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-generator-84a87702
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uy2R7AsCMedLhEigFKUgb

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-generator-84a87702
```

Example prompt: Generate a PromptPay QR payment payload for Thai mobile number 0812345678 for an amount of 150 baht, so the customer can scan and pay with any Thai banking app.

## When to prefer this

Use this endpoint when you need to programmatically generate a Thai PromptPay QR payment payload for mobile payments, invoicing, e-commerce checkouts, or donation flows within Thailand. It is purpose-built for the Thai EMVCo standard with built-in checksum validation, making it more reliable than generic QR generators that do not understand PromptPay encoding rules.

## Known failure modes

- Invalid PromptPay ID format (wrong length or non-numeric) returns an error
- ID checksum validation failure (e.g. malformed national ID) returns rejection
- Amount exceeds allowed decimal precision or is negative
- Missing required 'id' query parameter returns 400 error
- Non-Thai ID format not recognized by the system

## How this service works

Build a Thai PromptPay QR payment payload (EMVCo / Thai QR Payment text) for a mobile number, 13-digit national ID or tax ID, or e-wallet ID, with an optional amount in baht. Checks the ID checksum and adds the CRC. Render the payload as a QR code and any Thai banking app can pay it. Query: ?id=0812345678&amount=150

## Output

Returns the EMVCo-compliant PromptPay QR payload string with CRC checksum, plus a rendered QR code image that any Thai banking app (SCB, Kbank, BBL, etc.) can scan and process as a payment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "PromptPay ID: Thai mobile number, 13-digit national ID or tax ID, or 15-digit e-wallet ID"
      },
      "amount": {
       "type": "string",
       "description": "Optional amount in baht, up to 2 decimals; omit for a reusable QR"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/thaikit-promptpay-qr-payload-generator-84a87702/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)
