Create a payout
Send money from your PAYJN balance to a customer's bank account or e-wallet, for withdrawals, earnings or seller settlements. The destination is set by bankCode; see the country pages for codes.
POST /api-pay/payout/order/create
Request headers
| Field | Type | Required | Description |
|---|---|---|---|
Content-Type | String | Yes | application/json |
sign | String | Yes | Request signature. See Authentication. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
merchantCode | String(6) | Yes | Your merchant code, issued by PAYJN after onboarding. |
countryCode | String | Yes | Country code of the market, for example IDN for Indonesia. See the country pages. |
amount | Integer | Yes | Payout amount in local currency. |
merchantOrderId | String(50) | Yes | Your own order number. Letters and digits, up to 50 characters, unique in your system. Used for queries and to prevent duplicates. |
bankCode | String | Yes | Destination bank or e-wallet code, for example DANA or a bank code. See the country pages. |
bankAccountNo | String | Yes | Recipient's account number, or the wallet's registered phone number or account ID. |
bankId | String | No | India only: the 11-character IFSC code when bankCode is IFSC. |
merchantNotifyUrl | String | Yes | Your server URL that receives the asynchronous result notification for this order. |
remark | String | No | Free text, returned unchanged in the response. |
customer | Object | Yes | Recipient information. |
customer.name | String | Yes | Recipient's name, as registered on the account. |
customer.phone | String | Yes | Customer's mobile number in the local format of the country. |
customer.email | String | Yes | Customer's email address, in a valid email format. |
{
"merchantCode": "100001",
"amount": 30000,
"countryCode": "IDN",
"merchantOrderId": "PAYOUT20261129001",
"bankCode": "DANA",
"bankAccountNo": "081234567890",
"merchantNotifyUrl": "https://merchant.example.com/payjn/payout-notify",
"customer": {
"name": "Recipient Name",
"email": "recipient@example.com",
"phone": "081234567890"
}
}
Response
| Field | Type | Description |
|---|---|---|
code | Integer | 200 means the request was accepted. Any other value is an error; see msg. |
msg | String | Error message when code is not 200. |
data | Object | Result object, returned when code is 200. |
data.merchantCode | String | Your merchant code. |
data.countryCode | String | Country code of the order. |
data.platformOrderId | String(32) | PAYJN order number. |
data.merchantOrderId | String(50) | Your order number. |
data.amount | String | Order amount in local currency. |
data.status | String | SUCCESS, FAILURE, PROCESSING or CANCELLED. See Order status. |
data.bankCode | String | Destination code. |
data.transFeeRate | String | Fee rate applied to the order, as agreed for your merchant account. |
data.transFee | String | Fee for this transaction. |
data.totalTransFee | String | Total fee for the order. |
data.desc | String | Result description. |
data.createTime | String | Creation time, local time. |
data.successTime | String | Success time, local time. |
Notes
- If the request times out, query the payout with the same merchantOrderId before trying again. Create a new payout only after the original is confirmed as FAILURE.
- Payouts are paid from your withdrawable balance; see Query balance.
Get API access
Full integration documentation, your API host, merchant code and keys are provided after onboarding. Review is usually completed on the same day, and a test mode is switched on for your account before launch.