{"uid":"cap_qw9O52RG3isOVrEpiRxeh","slug":"thaikit-promptpay-qr-code-generator-5a97c333","name":"ThaiKit PromptPay QR Code Generator","description":"Thai PromptPay QR code as a ready-to-send image: PNG (base64 data URL, for LINE, Telegram, email) and SVG, plus the payload text. For a mobile number, 13-digit national ID or tax ID, or e-wallet ID, with an optional amount in baht; any Thai banking app can scan and pay it. Query: ?id=0812345678&amount=150 (optional &size=128-1024 px, default 512)","url":"https://api.thaikit.dev/promptpay-qr?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"},"size":{"type":"string","description":"Optional image width in pixels, 128-1024 (default 512)"},"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PRseukkmDIz2Mn3X2pB9U","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a Thai PromptPay QR code as a PNG (base64 data URL), SVG, and raw payload text for a given Thai mobile number, national ID, tax ID, or e-wallet ID, with an optional payment amount in baht.","exampleAgentPrompt":"Generate a PromptPay QR code for Thai mobile number 0812345678 for exactly 150 baht — give me both the PNG image and SVG so I can send it on LINE.","exampleUseCases":[{"title":"Invoice payment QR for freelancer","prompt":"Make a PromptPay QR code for my national ID 1234567890123 for 2500 baht that I can attach as a PNG to my invoice email."},{"title":"Reusable shop counter QR code","prompt":"Generate a reusable PromptPay QR code (no fixed amount) for my mobile number 0891234567 as a large 800-pixel PNG I can print and stick at my checkout counter."},{"title":"Telegram bot payment request","prompt":"I need to send a payment request in my Telegram group — generate a PromptPay QR code for e-wallet ID 123456789012345 for 75.50 baht as a base64 PNG image."}],"resultDescription":"Returns a JSON object containing: a PNG image as a base64 data URL (ready to embed in HTML, LINE, Telegram, or email), an SVG string, and the raw PromptPay payload text that any Thai banking app can scan to initiate payment.","failureModes":["Invalid or unrecognized PromptPay ID format returns an error","Amount exceeding 2 decimal places may be rejected or rounded","Size parameter outside 128–1024 range may return an error or be clamped","Missing required 'id' query parameter returns a 400-level error","Malformed mobile number (wrong digit count) returns a validation error"],"whenToPreferThis":"Use this endpoint when you need to programmatically generate a Thai PromptPay QR code for any standard Thai payment identifier (mobile, national ID, tax ID, or e-wallet) and need the result as a ready-to-send image (PNG base64 or SVG) rather than just a raw payload string — especially when delivering payment requests via messaging apps like LINE or Telegram, or embedding them in emails or invoices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-03T18:38:05.981Z","isFirstParty":false,"canonicalSlug":"thaikit-promptpay-qr-code-generator-5a97c333"}