Send cross-border bank payouts from your IDR balance with the Global Payout API.
The Global Payout API lets you send cross-border payouts. Durianpay debits your IDR balance and pays the beneficiary's bank account in the destination currency.
The statuses and the endpoints of the API are the same for every corridor.
Every payout follows the same four steps:
- Select a corridor (a destination country and currency pair) from the corridor list. Then call the Fetch Corridor Requirements API to get its requirements.
- Register the beneficiary and its payment account. If your merchant account has a setup with customers, register the customer too. Durianpay sets your customer setup during onboarding. See Key terms.
- Create a quote. The quote shows the exchange rate (
rate), the fixed fee, the destination amount and the total IDR debit. - Create the payout and follow its status.
HTTP 200 does not mean that the beneficiary is paidWhen you create a payout and get HTTP 200, Durianpay has accepted the request. The result of a payout comes later, as a status change in a webhook event. See Payout Object.
Environments
| Environment | Host | API prefix | Token endpoint |
|---|---|---|---|
| Production | https://api.durianpay.id | /v1.0/global | POST /v1.0/access-token/b2b |
| Sandbox | https://api-sandbox.durianpay.id | /v1.0/global | POST /v1.0/access-token/b2b |
The API uses SNAP authentication. SNAP (Standar Nasional Open API Pembayaran) is the Bank Indonesia standard for payment APIs. The token endpoint is on the same host as the API. Use the SNAP credentials of the environment that you call. See Authentication.
The paths on these pages include the full prefix. To get the URL, add the path to the host. For example:
https://api.durianpay.id/v1.0/global/quoteshttps://api.durianpay.id/v1.0/global/payoutshttps://api.durianpay.id/v1.0/global/beneficiarieshttps://api.durianpay.id/v1.0/global/corridors/US/USD/requirements?beneficiaryType=business&payoutRail=ACH
V1 is version 1 of this API, with the path prefix /v1.0/global.
Requests
Call the API over HTTPS. Every call sends a SNAP access token and an HMAC signature, except two calls: the token request, and the file upload to an uploadUrl (step 2 of the Upload Document API). When the call has a JSON request body, also send Content-Type: application/json:
Authorization: Bearer <accessToken>
X-PARTNER-ID: <client key>
X-TIMESTAMP: 2026-06-10T10:22:10+07:00
X-SIGNATURE: <base64 HMAC-SHA512 signature>
CHANNEL-ID: 95221
X-EXTERNAL-ID: <unique ID of this request>
Content-Type: application/jsonAuthentication explains how to get the token and how to sign each call.
- Calls with no request body: every
GETcall and everyDELETEcall. - Field names: request bodies, response bodies, query parameters and webhook events use camelCase, as in SNAP, for example
partnerReferenceNo. The one exception isadditionalInfo.trace_idin an authentication error. - Request fields: send only the fields that the endpoint documents.
- IP allowlist: if your merchant account has an IP allowlist, call the API from an IP on the list. See IP Whitelisting.
Merchant scope
Your client key (X-PARTNER-ID) selects your merchant account. Each referenceNo and partnerReferenceNo belongs to that merchant account. When you ask for a resource that does not exist, or for a resource of another merchant account, the API returns the same code: RESOURCE_NOT_FOUND (4040001).
Feature access
Durianpay must enable the Global Payout API feature for your merchant account. This rule applies to every Global Payout endpoint (/v1.0/global/...). A feature change takes effect within 60 seconds.
While the feature is disabled:
- Every Global Payout endpoint returns
FEATURE_NOT_ENABLED(4030001). - The token endpoint still works.
- Payouts that already exist continue, and webhook deliveries continue.
Response format
Every response body has responseCode and responseMessage. The fields of the resource are at the top level, next to these two fields. Responses have the header Content-Type: application/json.
Response code
responseCode has 7 digits:
| Part | Digits | Value |
|---|---|---|
| HTTP status | 3 | For example 200, 403 or 404 |
| Service code | 2 | Always 00 |
| Case code | 2 | The case, for example 14 |
For example, when you create a payout and your balance is too low, the API refuses the request with 4030014: HTTP 403, service code 00 and case 14. A success is HTTP 200 with 2000000 (Successful).
Use additionalInfo.code in your error handlingEach
additionalInfo.codehas its ownresponseCode. Build your error handling onadditionalInfo.code. See Response Code Handling.
The token request (POST /v1.0/access-token/b2b) is the exception. It uses the response codes of the Durianpay token endpoint, such as 2007300 with the service code 73. See Authentication.
Fields in the response
- The response for a beneficiary or a customer has every field that you sent.
- A field with no value is left out of the response. It is never
null. For example, the last page of a list has nonextCursor. false,0and an empty list[]are values, so the response includes them. For example, the last page has"hasMore": false, and a payout with no documents has"documents": []. The one exception isretriable: it is present only in a retriable error.- If you send the same create request again, the API can return the existing resource with HTTP 200 and
additionalInfo.replayed: true. See Handling Errors.
Value formats
| Value | Format |
|---|---|
| Amount | An object {value, currency}, as in SNAP. value is a decimal string in major units. IDR: {"value": "160000000.00", "currency": "IDR"}. USD: {"value": "9876.54", "currency": "USD"}. JSON numbers are not valid for money. |
| IDR precision | Send IDR amounts in whole rupiah. If you send a fractional part, it must be zero. |
| Response amounts | value has two decimals. Zero can also be "0", so compare amounts as numbers, not as strings. Amounts have no sign. |
| Rate | A decimal string with two decimals: IDR per one unit of the destination currency, such as "16200.00". A rate is not an amount object. |
| Request amount syntax | value has digits and an optional decimal fraction of at most two digits. If you send more than two fraction digits, the API returns FIELD_INVALID. Do not send a sign, an exponent, spaces or a thousands separator. |
| Rounding | rate rounds up to two decimal places. Destination amounts round down to two decimal places. IDR amounts and fees round up to the whole rupiah. |
| Country | Uppercase ISO 3166-1 alpha-2 code, for example US. Every country field uses this format. |
| Currency | Uppercase ISO 4217 code, for example IDR or USD. |
| Date | YYYY-MM-DD. |
| Timestamp | ISO 8601 UTC, for example 2026-06-10T03:21:00Z. The X-TIMESTAMP header is different: it is RFC 3339 with an offset. See Authentication. |
Enum values, enum type names and codes keep their own spelling. They are not camelCase. Keep the casing that you receive:
- Upper case: the codes of
GET /v1.0/global/enum/{type}, the error codes inadditionalInfo.codeand inadditionalInfo.errors, failure codes and payout rails. Examples areOTHERS,QUOTE_EXPIRED,FIELD_MISSINGandACH. - Lower case: other enum values, such as
source_amountinamountModeandneed_actioninstatus. Enum type names, such aspurpose_of_transaction.
Pagination
The list endpoints take cursor and limit. limit is 1–100, and the default is 25.
A collection response has data and hasMore, next to responseCode and responseMessage. While hasMore is true, the response also has nextCursor. Send the nextCursor value, unchanged, as cursor in your next request. The last page has no nextCursor.
The enum and rates endpoints work differently. Each one returns every item in data in one response, with no cursor and no pagination fields.
Compatibility
Build your client to accept:
- new response fields;
- new enum values, where the pages say so;
- unknown webhook events.
Ignore response fields and events that you do not know. Durianpay can add failure codes. If your client does not know a failure.code, the payout is failed and final. Do not create a new payout automatically. Contact Durianpay support. See Response Code Handling. A breaking change gets a new version prefix.
Endpoints
The API has no endpoint for webhook URLs. Register your URLs in the Durianpay dashboard. See Handling Webhooks.
Authentication
| Method | Path | Page |
|---|---|---|
| POST | /v1.0/access-token/b2b | Authentication |
Corridors, enums and rates
| Method | Path | Page |
|---|---|---|
| GET | /v1.0/global/corridors | List Corridors API |
| GET | /v1.0/global/corridors/{country}/{currency}/requirements | Fetch Corridor Requirements API |
| GET | /v1.0/global/enum/{type} | Fetch Enum Codes API |
| GET | /v1.0/global/rates | Fetch Indicative Rates API |
Account validation
| Method | Path | Page |
|---|---|---|
| POST | /v1.0/global/account-validation | Validate Account API |
Beneficiaries
| Method | Path | Page |
|---|---|---|
| POST | /v1.0/global/beneficiaries | Create Beneficiary API |
| GET | /v1.0/global/beneficiaries/{referenceNo} | Fetch Beneficiary by ID API |
| GET | /v1.0/global/beneficiaries | Fetch Beneficiaries API |
| PUT | /v1.0/global/beneficiaries/{referenceNo} | Update Beneficiary API |
Payment accounts
| Method | Path | Page |
|---|---|---|
| POST | /v1.0/global/payment-accounts | Create Payment Account API |
| GET | /v1.0/global/payment-accounts/{referenceNo} | Fetch Payment Account by ID API |
| GET | /v1.0/global/payment-accounts | Fetch Payment Accounts API |
Customers
| Method | Path | Page |
|---|---|---|
| POST | /v1.0/global/customers | Create Customer API |
| GET | /v1.0/global/customers/{referenceNo} | Fetch Customer by ID API |
Quotes
| Method | Path | Page |
|---|---|---|
| POST | /v1.0/global/quotes | Create Quote API |
| GET | /v1.0/global/quotes/{referenceNo} | Fetch Quote by ID API |
Documents
| Method | Path | Page |
|---|---|---|
| POST | /v1.0/global/documents | Upload Document API, step 1 |
| PUT | /v1.0/global/documents/{referenceNo}/content | Upload Document API, step 2: the uploadUrl |
| GET | /v1.0/global/documents | Fetch Documents API |
Payouts
| Method | Path | Page |
|---|---|---|
| POST | /v1.0/global/payouts | Create Payout API |
| GET | /v1.0/global/payouts/{referenceNo} | Fetch Payout by ID API |
| GET | /v1.0/global/payouts/reference/{partnerReferenceNo} | Fetch Payout by Reference API |
| GET | /v1.0/global/payouts | Fetch Payouts API |
Sandbox
| Method | Path | Page |
|---|---|---|
| POST | /v1.0/global/sandbox/beneficiaries/{referenceNo}/status | Force Beneficiary Status API |
| POST | /v1.0/global/sandbox/customers/{referenceNo}/status | Force Customer Status API |
