Payout Direct
POST /api/v1/payout/create
Direct is the direct integration mode. The merchant server submits the complete beneficiary data in one request, and the platform immediately creates a formal payout order and submits it to the Provider. The API does not return payment_url.
Direct and Cashier use the same endpoint path. The platform selects the mode from the merchant configuration; callers cannot switch it temporarily through a request field.
Integration requirements
- Use a
payoutAPI key of typemerchant_channelthat is bound to a fixed channel. Direct mode does not accept amerchant_globalkey. - The fixed API key determines the channel; do not use
channel_codeto select another channel. bank_code,account_no,account_name, andrecipient_emailmust all be submitted in the same request.return_urlis for Cashier only and is not used by Direct.
Create a Direct payout
| Field | Type | Required | Description |
|---|---|---|---|
merchant_order_no | string | Yes | Merchant-unique payout order number, up to 128 characters. |
amount | string | Yes | Decimal payout amount. |
currency | string | Yes | Uppercase currency code; it must match the currency authorized for the API key. |
bank_code | string | Yes | Platform bank or e-wallet code, up to 64 characters and identified together with currency. |
account_no | string | Yes | Beneficiary account number, up to 128 characters. |
account_name | string | Yes | Beneficiary name, up to 128 characters. |
recipient_email | string | Yes | Valid email address, up to 254 characters. |
notify_url | string | No | Asynchronous notification URL. If omitted, the merchant's default notification URL is used. Production must use HTTPS. |
Request example:
{
"api_key": "<PAYOUT_CHANNEL_API_KEY>",
"merchant_id": "merchant_1001",
"merchant_order_no": "OUT202609160002",
"amount": "100.00",
"currency": "MYR",
"bank_code": "MBB",
"account_no": "1234567890",
"account_name": "Alice Tan",
"recipient_email": "alice@example.com",
"timestamp": "1789516800",
"nonce": "direct-payout-001",
"sign": "<HMAC_SHA256_HEX>"
}
Response example:
{
"code": 0,
"message": "OK",
"data": {
"checkout_mode": "direct",
"platform_order_no": "W202609160002",
"merchant_order_no": "OUT202609160002",
"channel_order_no": "provider_928431",
"channel_code": "payout_myr_01",
"amount": "100.00",
"currency": "MYR",
"status": "processing",
"audit_status": "approved",
"fee_amount": "1.50",
"net_amount": "101.50",
"frozen_amount": "101.50",
"receiver": {
"type": "bank",
"bank_code": "MBB",
"account_mask": "******7890",
"account_name_masked": "A****",
"recipient_email_masked": "a***@example.com",
"payload_format": "aes-256-gcm:v1"
},
"created_at": "2026-09-16T15:00:00Z"
},
"request_id": "req_01JEXAMPLE"
}
checkout_mode=direct means a formal order has been created; it does not mean the payout succeeded. A successful creation does not return payment_url or expired_at. Use the order query or asynchronous notification as the final result.
Query a Direct payout
POST /api/v1/payout/query
Query the formal order with platform_order_no or merchant_order_no. When the order is processing, you may send sync_provider=true to try to synchronize the latest Provider status; this field participates in signing.
The query response keeps checkout_mode=direct and returns the formal-order status, fees, frozen amount, and masked beneficiary data. After a timeout or indeterminate result, continue querying with the original order number; do not create a duplicate with a new order number. For complete fields and statuses, see shared payout query.