Home › Blog › Payin and Payout API Explained: Collections, Withdrawals and Settlement in Asia

Payin and Payout API Explained: Collections, Withdrawals and Settlement in Asia

2026-11-24 · BestPay24

Payin and payout API explained in one sentence: the payin API lets you collect money from customers through local payment methods, and the payout API lets you send money back to them, both through one integration and one set of statuses. For operators in Asia, where UPI, bKash, GCash and PromptPay replace cards, understanding how these two APIs behave is the difference between a cashier that works and a stream of support tickets. This guide walks through the money flow, the order lifecycle, callbacks, settlement and the questions to ask a provider before you write a line of code.

Talk to sales on Telegram: @Bestpay24SalesSupport

How the payin API works

A payin is money coming in from your customer. With a payin API, your server creates an order, the provider returns a way to pay, the customer completes the payment in a banking or wallet app, and the provider tells you the result. The method differs by country, for example a UPI intent link or QR code in India, a wallet prompt in Bangladesh or a bank transfer reference elsewhere, but the shape of the integration is the same.

When you create an order you normally send your own unique order reference, the amount, the currency, a customer identifier and the URL where the provider should deliver callbacks. The provider returns its own transaction reference and the payment instruction. Store both references from the first moment, because every later step, from support to reconciliation, depends on them.

  • You send: your order reference, amount, currency, customer identifier, callback URL and return URL.
  • You get back: the provider transaction reference, a payment link, QR code or bank details, and an expiry time.
  • You never do: credit the customer because the browser returned to your site. Credit only when a verified callback or a status check says the payment succeeded.

How the payout API works

A payout is money going out: a withdrawal, a refund, winnings or a payment to a partner. The payout API takes a unique reference, the amount, the currency and the beneficiary details, which are a bank account and bank code or a wallet number depending on the country. The provider checks the request, sends the transfer over a local rail and reports the result.

Payouts need more care than payins because the money leaves your balance. The most expensive mistake in this area is retrying a payout that was only pending, which sends the funds twice. A safe integration treats every payout request as idempotent: one reference, one transfer, however many times you ask. Our withdrawal checklist for high risk providers goes deeper on beneficiary checks, funding and failure handling.

Order lifecycle and order status values

Both APIs move an order through a small set of statuses. The names differ between providers, so map them to your own states early.

Status Payin meaning Payout meaning
Created The order exists and the customer has not paid The request is accepted and not yet sent
Pending Waiting for the bank or wallet Transfer in progress at the bank
Success Money received, safe to credit Beneficiary credited
Failed Payment declined or abandoned Transfer rejected, funds stay with you
Expired The payment window closed Not applicable
Returned Not applicable The bank sent the money back

Treat success, failed and expired as final for a payin, and success, failed and returned as final for a payout. Everything else means wait. Show the customer a clear pending message rather than a failure, and never let an order move backwards, so that a late pending message cannot overwrite a success.

Webhook callbacks and status checks

The provider tells you about status changes through webhook callbacks, which are HTTP requests to the URL you registered. A callback is fast, but it can arrive late, twice or not at all. Verify the signature on every callback, check that the amount and reference match your order, and answer with a success response only after you have stored the result.

Pair callbacks with a status check: your server asks the provider for the current state of an order by your own reference. Use it when a callback is missing, when an order has stayed pending longer than your rule allows and before you act on a large amount. We compare the confirmation signals in more detail in webhook vs status polling vs settlement file.

Settlement report and reconciliation

Collecting money is not the same as receiving it. Settlement is the step where the provider pays the collected funds to you, and the settlement report lists every transaction behind that transfer with amounts, fees, references and final status. Collection and payouts happen in the local currency of each country, and the settlement currency is agreed in your offer.

Reconciliation means matching three records: your own ledger, the callbacks you received and the settlement report. Any line that does not match is an exception to investigate before the next payout run. If you want the full process, read our guide to payment reconciliation for high risk merchants in Asia.

Example flows: one deposit and one withdrawal

A deposit usually runs like this:

  1. Your server creates an order with the reference DEP-1001 for the amount and currency of the method the player chose.
  2. The provider returns a payment link or QR code and its own transaction reference.
  3. The player pays in their banking or wallet app.
  4. The provider sends a signed callback with the status success. You verify the signature, match the amount and the reference, and credit the player.
  5. The transaction appears in the next settlement report, where you match it to your ledger.

A withdrawal needs more checkpoints:

  1. The player requests a withdrawal and your system reserves the amount against their balance.
  2. Your server calls the payout API once with the reference WD-2001 and the beneficiary details.
  3. The provider answers with the status pending, and you show the withdrawal as in progress.
  4. A callback or a status check returns success or failed. On success you mark it paid. On failed you release the reserved amount.
  5. If neither arrives within your review threshold, an operator checks the status before anything is resent.

What to ask a provider before you integrate

A short list of questions saves weeks of rework. Put them to every provider you compare:

  • Is there one API for payins and payouts across every country and method you need?
  • Which statuses exist for each direction, and which of them are final?
  • Are callbacks signed, and how many times are they retried?
  • Is there a status endpoint that accepts your own reference?
  • How are payouts funded, and what happens when the balance is too low?
  • Can you get a settlement report every day in a format your accountant can use?
  • Is a hosted checkout available if you prefer not to build the integration? We compare the options in hosted page vs direct API vs payment links.

Get the answers in writing and test with small transactions in a sandbox before real traffic arrives. Rules about which activities are allowed differ by country and by industry, so confirm that your business is permitted in each market before you go live.

FAQ

What is the difference between a payin API and a payout API? A payin API collects money from customers and a payout API sends money to them. They usually share authentication, callbacks and reporting, but a payout needs extra care because the funds leave your balance.

Do I need webhook callbacks for both? Yes. Callbacks are the fastest signal in both directions. Keep a status check as a safety net for the cases where a callback does not arrive.

Can I retry a payout that is still pending? No. Wait for a final status. Resending a pending payout is how the same money gets sent twice.

How is money from a payin settled to the merchant? The provider pays the collected funds to you on a schedule agreed in your offer and supplies a settlement report that lists every transaction behind the transfer.

Working with BestPay24

BestPay24 offers one API for collections and payouts across twelve Asian countries, with hosted checkout if you prefer not to integrate, daily settlement and reconciliation reports, no setup fee and no prepayment. See how onboarding works on our how it works page, read about our iGaming payment gateway for Asia, or talk to us directly. Talk to sales on Telegram: @Bestpay24SalesSupport

Need local rails in these markets?

BestPay24 collects and pays out in twelve Asian countries for betting, casino, forex and digital merchants. No setup fee.

Message @Bestpay24SalesSupport

More articles

Ready to accept local payments in Asia?

Tell us your vertical, countries and volume. You get an offer with rates and settlement terms, usually the same day.

Chat on Telegram