Introduction

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:

  1. Select a corridor (a destination country and currency pair) from the corridor list. Then call the Fetch Corridor Requirements API to get its requirements.
  2. 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.
  3. Create a quote. The quote shows the exchange rate (rate), the fixed fee, the destination amount and the total IDR debit.
  4. Create the payout and follow its status.
📘

HTTP 200 does not mean that the beneficiary is paid

When 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

EnvironmentHostAPI prefixToken endpoint
Productionhttps://api.durianpay.id/v1.0/globalPOST /v1.0/access-token/b2b
Sandboxhttps://api-sandbox.durianpay.id/v1.0/globalPOST /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/quotes
  • https://api.durianpay.id/v1.0/global/payouts
  • https://api.durianpay.id/v1.0/global/beneficiaries
  • https://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/json

Authentication explains how to get the token and how to sign each call.

  • Calls with no request body: every GET call and every DELETE call.
  • Field names: request bodies, response bodies, query parameters and webhook events use camelCase, as in SNAP, for example partnerReferenceNo. The one exception is additionalInfo.trace_id in 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:

PartDigitsValue
HTTP status3For example 200, 403 or 404
Service code2Always 00
Case code2The 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 handling

Each additionalInfo.code has its own responseCode. Build your error handling on additionalInfo.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 no nextCursor.
  • false, 0 and 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 is retriable: 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

ValueFormat
AmountAn 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 precisionSend IDR amounts in whole rupiah. If you send a fractional part, it must be zero.
Response amountsvalue has two decimals. Zero can also be "0", so compare amounts as numbers, not as strings. Amounts have no sign.
RateA 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 syntaxvalue 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.
Roundingrate rounds up to two decimal places. Destination amounts round down to two decimal places. IDR amounts and fees round up to the whole rupiah.
CountryUppercase ISO 3166-1 alpha-2 code, for example US. Every country field uses this format.
CurrencyUppercase ISO 4217 code, for example IDR or USD.
DateYYYY-MM-DD.
TimestampISO 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 in additionalInfo.code and in additionalInfo.errors, failure codes and payout rails. Examples are OTHERS, QUOTE_EXPIRED, FIELD_MISSING and ACH.
  • Lower case: other enum values, such as source_amount in amountMode and need_action in status. Enum type names, such as purpose_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

MethodPathPage
POST/v1.0/access-token/b2bAuthentication

Corridors, enums and rates

MethodPathPage
GET/v1.0/global/corridorsList Corridors API
GET/v1.0/global/corridors/{country}/{currency}/requirementsFetch Corridor Requirements API
GET/v1.0/global/enum/{type}Fetch Enum Codes API
GET/v1.0/global/ratesFetch Indicative Rates API

Account validation

MethodPathPage
POST/v1.0/global/account-validationValidate Account API

Beneficiaries

MethodPathPage
POST/v1.0/global/beneficiariesCreate Beneficiary API
GET/v1.0/global/beneficiaries/{referenceNo}Fetch Beneficiary by ID API
GET/v1.0/global/beneficiariesFetch Beneficiaries API
PUT/v1.0/global/beneficiaries/{referenceNo}Update Beneficiary API

Payment accounts

MethodPathPage
POST/v1.0/global/payment-accountsCreate Payment Account API
GET/v1.0/global/payment-accounts/{referenceNo}Fetch Payment Account by ID API
GET/v1.0/global/payment-accountsFetch Payment Accounts API

Customers

MethodPathPage
POST/v1.0/global/customersCreate Customer API
GET/v1.0/global/customers/{referenceNo}Fetch Customer by ID API

Quotes

MethodPathPage
POST/v1.0/global/quotesCreate Quote API
GET/v1.0/global/quotes/{referenceNo}Fetch Quote by ID API

Documents

MethodPathPage
POST/v1.0/global/documentsUpload Document API, step 1
PUT/v1.0/global/documents/{referenceNo}/contentUpload Document API, step 2: the uploadUrl
GET/v1.0/global/documentsFetch Documents API

Payouts

MethodPathPage
POST/v1.0/global/payoutsCreate 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/payoutsFetch Payouts API

Sandbox

MethodPathPage
POST/v1.0/global/sandbox/beneficiaries/{referenceNo}/statusForce Beneficiary Status API
POST/v1.0/global/sandbox/customers/{referenceNo}/statusForce Customer Status API