Integration Overview

Send cross-border bank payouts from your IDR balance. Get a signed event for each status change of a payout.

The Global Payout API sends cross-border bank payouts. Durianpay debits your IDR balance. Then it pays the beneficiary's bank account in the destination currency.

A payout has a sender and a receiver. The beneficiary is the receiver. In a setup with customers, the customer is the sender: your end customer. In a setup without customers, your business is the sender.

A corridor is a destination country and currency, for example US / USD. Each corridor can need different fields. The statuses and the endpoints are the same for every corridor.

📘

Sample values

The examples use sample data. For the current corridors, requirements, rates, fees and limits, use the API responses.

How a payout works

  1. Choose a corridor. Call the List Corridors API and pick a corridor from the list. Get its requirements from the Fetch Corridor Requirements API. See Preparation.
  2. Register the beneficiary. Create it with the Create Beneficiary API. Then add its bank account with the Create Payment Account API. In a setup with customers, also create the customer (the sender) with the Create Customer API. Durianpay screens each beneficiary and customer.
  3. Create a quote. The Create Quote API returns the price. The quote gives the rate (rate) and the fixed fee (fees). It also gives the destination amount (destination) and the total IDR debit (totalDebit). The quote is valid until its expiresAt. The lifetime varies, so read expiresAt in each quote.
  4. Create the payout. Call the Create Payout API. Send the referenceNo of the quote in quoteReferenceNo. Send the referenceNo of the payment account in paymentAccountReferenceNo. In a setup with customers, also send customerReferenceNo. Use a unique partnerReferenceNo for each payout.
  5. Durianpay sends the payout. Durianpay screens the payout and debits your IDR balance. Then it sends the payout to the receiving bank. To stop a payout before Durianpay sends it, cancel it with the Payout Action API (coming soon).
  6. Track the status. Durianpay sends a signed event for every status change. If an event does not come, call the Fetch Payout by ID API. See Webhooks.
🚧

HTTP 200 does not mean that the beneficiary is paid

HTTP 200 on a create request means that Durianpay accepted your request. For a payout, it does not mean that the beneficiary has the funds. The result comes later, as a status change in an event.

If you need an internal approval before you pay, get it before you create the quote. A quote can expire while you wait. If you get the approval after you create the quote, create a new quote.

Payout statuses

A payout starts in processing. On the normal path, it then becomes completed.

Payout lifecycle
StatusWhat it means for you
processingDurianpay screens or reviews the payout, debits your balance, or sends the payout. Wait for the outcome.
need_actionFor a payout that needs an action from you: a request for information (RFI) or a requote. This feature is coming soon.
completedThe beneficiary is paid. The payout can still become refunded if the funds come back.
failedThe payout cannot complete. A payout that you cancel also becomes failed. The failure object gives the cause. If Durianpay debited your balance, Durianpay already returned the debit to your available balance.
refundedThe funds came back after payment. Durianpay returns the full totalDebit, fee included, to your balance.

failed and refunded are final statuses. A completed payout can change only to refunded.

Durianpay sends global.payout.updated when the status of a payout changes. The events for beneficiaries and customers are global.beneficiary.updated and global.customer.updated. Durianpay sends no event when you create a payout. The create response gives the first status, processing.

For your next step in each status, see Status Definition.

Resources and IDs

ResourceWhat it isExample referenceNo
BeneficiaryThe receiver of a payout.par_7pq3m
Payment accountA bank account of a beneficiary. A payout uses one payment account.ppy_4kd9wq
CustomerThe sender of a payout, in a setup with customers.cus_1abc9k
QuoteThe price of one payout. See Quote Object.orm_2m9x4h
DocumentA supporting file for one payout. You send the details first, then the file.doc_4fj2k9
PayoutA payment to one beneficiary. It has the same referenceNo as its quote.orm_2m9x4h
IDSet byHow to use it
referenceNoDurianpayThe Durianpay ID. Do not parse it. Store it and copy it exactly, with its prefix, such as orm_.
partnerReferenceNoYouYour own reference, 1–64 characters, on a beneficiary, customer, document or payout. Use a unique value for each payout. Use the same value again for the same beneficiary or customer.
  • If you send a create request again with the same partnerReferenceNo and body, you get the existing resource. The response has additionalInfo.replayed: true.
  • If the body is different, the API returns PARTNER_REFERENCE_NO_CONFLICT (4090001). See Idempotency and repeated requests.
  • To get a payout by your own reference, call the Fetch Payout by Reference API.
  • Each ID belongs to the merchant account of your client key (X-PARTNER-ID). For an unknown resource or a resource of another merchant account, the API returns RESOURCE_NOT_FOUND (4040001).

Key terms

TermMeaning for your integration
CustomerYour end customer who sends the payout: the sender, also called the originator. A payout has a customer only in a setup with customers.
BeneficiaryThe individual or business that receives the payout.
CorridorA destination country and currency, for example US / USD.
Payout railThe payment network that pays the account, for example ACH (the US Automated Clearing House). Each corridor lists its payout rails in supportedPayoutRails.
Beneficiary typebusiness or individual. You send it in beneficiaryType. The price of a quote comes from the beneficiary type.
Customer typeThe type of your customer: individual or business. You send it in customerType when you read the requirements and when you create the customer.
Use caseb2b, b2c, c2b or c2c. The first letter is the sender: b for your business or a business customer, c for an individual customer. The second letter is the beneficiary: b for a business, c for an individual. You do not send it: the beneficiary type and the customer type (in a setup with customers) set it. It selects the required fields, and the corridor must support it.
Customer setupA setup with customers or a setup without customers. Durianpay sets it during onboarding. It decides if a payout has a customer (customerReferenceNo).
RequirementsThe fields that a corridor needs for the beneficiary, payment account, customer and payout. They depend on the payout rail, beneficiary type and customer type. See Preparation.
Screening and reviewChecks that Durianpay runs on a beneficiary, customer or payout. Review is a further check. The status stays processing during both.
FX windowThe time from the creation of the payout's quote until its expiresAt. The payout uses the rate of the quote during this time. See Payout Object.

Where to go next

You want toGo to
Set up credentials, webhooks, funds and a corridorPreparation
Send your first payoutIntegration Steps
Handle events, errors and lost responsesWebhooks and Errors
Test outcomes in the sandboxTesting in the Sandbox
Find an endpoint, an object or a statusAPI Reference

Did this page help you?