Guides

PromptPay API: Integration Guide

TransFi Team
Published
November 27, 2026
Share

For many Thai shoppers, paying means scanning a QR code with their banking app. That is PromptPay, Thailand's government-backed instant payment system, and if you sell to Thai customers, you want to accept it. A PromptPay API lets your software create those payments, track them and reconcile them, so nobody has to check a bank statement by hand.

So how do you accept PromptPay via API? In short: you connect to the API, create an order for each payment, let the customer scan the QR code, and wait for a message that confirms the money arrived. That is how to accept PromptPay payments programmatically. TransFi covers it through one API, and international businesses can use it without a Thai bank account or PromptPay registration.

This PromptPay API guide works as a PromptPay API integration guide for developers and the business owners beside them. It covers how to integrate PromptPay with TransFi, from the first call to settlement. Where a detail depends on your setup, TransFi's team can confirm it.

What is the PromptPay API?

Think of a PromptPay API as a way for your software to talk to PromptPay. Instead of someone watching bank notifications and matching them to orders, your system creates the payment, hears back when it is paid and keeps its own records. A PromptPay payment API like this means you deal in orders and statuses, not bank files.

TransFi offers PromptPay, ThaiQR and Thai bank transfers through one API, so it works as a PromptPay API for business use by overseas merchants. The PromptPay API documentation lives in TransFi's developer hub, with quickstart guides, an API reference and a changelog.

How do businesses integrate the PromptPay API?

Here is how to integrate the PromptPay API with TransFi, in the order you will meet each step:

  1. Get your credentials. You connect with your credentials plus a merchant ID, which tells TransFi which business each request is for.
  2. Check that they work. TransFi's payout API reference starts with one simple call that lists your merchant IDs. Make it first: if it comes back fine, your credentials work and you have the ID you need.
  3. Give every order its own reference. Create a unique reference of your own and store it before you place the order. If a request times out and you send it again with the same reference, TransFi returns the original order instead of creating a duplicate.
  4. Create the order. Each payment is one order.
  5. Wait for confirmation. Wait until the order shows as settled (the status is called fund_settled) before you deliver what the customer paid for.

If TransFi tells you that you are sending requests too fast, wait one second, then two, then four before trying again.

How do businesses generate a PromptPay QR via API?

You don't need to build the QR code yourself. If you are searching for a generate PromptPay QR API, TransFi does that part. It generates dynamic PromptPay QR codes at checkout, and its ThaiQR-compliant codes can be scanned by any Thai banking app or e-wallet.

Here is how to generate a PromptPay QR via API: create your customer in TransFi, create a payin order for the payment, and send the customer to the payment link you get back. That is the PromptPay QR API in practice. For the PromptPay-specific details of each request, talk to TransFi's team.

How do PromptPay webhooks work?

A webhook is a message TransFi sends to your system the moment something changes, such as an order being paid. It saves you from asking "has it been paid yet?" over and over. A PromptPay webhook arrives in real time as a short JSON message carrying the current status. For PromptPay API with webhook notifications, three habits keep things safe:

  • Check the signature. Every message is signed with a secret that only you and TransFi know (tech support gives it to you), so you can confirm it came from TransFi. Check it against the raw message exactly as it arrived.
  • Reply with a 200 straight away. Acknowledge first, then do the work.
  • Expect repeats. Retries are on by default, so the same message can arrive more than once. Make sure handling it twice does no harm.

How do businesses test the PromptPay API before going live?

TransFi gives you a sandbox, a practice version of the system. For PromptPay API sandbox and testing, you create orders there and then tell the sandbox which status you want each one to have, such as settled or failed, so you can watch how your system reacts. The same webhooks fire as in production, and you can ask for a webhook to be sent again.

Before you go live, run through this short list:

  • Switch to the live address, and keep your live credentials in settings rather than in your code.
  • Check signatures and handle repeat messages.
  • Remove the testing shortcuts, because they don't exist in production.

Can the API handle dynamic QR codes?

Yes. TransFi supports ThaiQR static codes, which carry a fixed amount, and dynamic codes, which are generated fresh for each transaction. It generates dynamic PromptPay QR codes at checkout and confirms payment within seconds.

For PromptPay dynamic QR API integration, plan on one order per payment. TransFi also provides itemised reconciliation reports that match each transaction to your order references.

How does settlement work via the API?

PromptPay and ThaiQR payments settle to your TransFi balance typically within one business day, so confirm the timing for your account when you set up.

The PromptPay settlement API covers moving that money on to your own bank account. You set up a settlement account once, and the first one you add becomes your default. TransFi then groups your settled payments into batches and pays them out on a schedule agreed with your account manager. Each batch lists its amount, currency and destination, so you can match it to your bank statement.

Can businesses use PromptPay for both collections and payouts?

Yes. TransFi handles ThaiQR collections and PromptPay payouts through one API, with unified reconciliation across both flows. That is a PromptPay payout and collection API in one place.

A payout takes five steps: ask TransFi which details the recipient needs, create the recipient, check your balance covers the payout, create the payout order, then follow its status: initiated, processing, settled or failed. If a payout fails, don't retry it. Create a new order with a new reference.

TransFi's Thai payout rails cover PromptPay IDs, bank accounts and e-wallets, and PromptPay payouts typically credit within minutes, 24 hours a day.

Building a PromptPay integration? Talk to TransFi's team about your setup.

Conclusion

A PromptPay integration comes down to a few habits: test your credentials first, give each payment its own order, trust only signed webhooks and keep an eye on settlement. TransFi brings collections and payouts into one API, so overseas businesses can accept PromptPay without a Thai bank account.

FAQs

1. Is a Thai bank account needed to use the PromptPay API?

No. International merchants don't need a Thai bank account or PromptPay registration to use TransFi.

2. How can duplicate orders be avoided?

Store a unique reference before each order, and reuse it only to retry a request that timed out.

3. How can a TransFi webhook be checked?

Check the signature, made with a secret from TransFi's tech support, against the raw message before you trust it.

4. How fast are PromptPay payouts?

They typically credit within minutes, 24 hours a day, including weekends and Thai public holidays.

This content is for educational and informational purposes only and does not constitute financial or investment advice. Availability, fees, and limits vary by provider and verification level. Always verify details with the relevant provider before transacting.
On this page
Start free
One Platform for all Your Global Payments
Payouts, collections, checkout, on/off-ramps and more — built on stablecoin rails across 100+ countries and 250+ local payment methods.
Get started
Trending guides

Ready to simplify global payments?

New guides and adoption stories a couple of times a month — no noise.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Dengan mengklik”Terima Semua Cookie“, Anda menyetujui penyimpanan cookie di perangkat Anda untuk meningkatkan navigasi situs, menganalisis penggunaan situs, dan membantu upaya pemasaran kami. Lihat Kebijakan Privasi kami untuk informasi lebih lanjut.

One platform for every global payment need

From payouts and collections to checkout, treasury, and stablecoin rails - TransFi powers it all through a single integration.

Built for however you move money

BizPay, Checkout, Ramp, Corporate Treasury, and more - pick the products that fit your business, scale as you grow.
One platform for every global payment need!
From payouts and collections to checkout, treasury, and stablecoin rails - TransFi powers it all through a single integration.
Create free account