Documentation · Payout Cashier

Payout Cashier

POST /api/v1/payout/create

Cashier is the hosted cashier mode. A successful creation first returns a cashier link, where the user selects a channel and completes or confirms the beneficiary data.

Channels under maintenance are excluded when creating or confirming a new order. Existing formal orders continue on their original channel without freezing funds again. A session that has not produced a formal order may choose another eligible active channel. See Channel maintenance.

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.
bank_code string No Platform bank or e-wallet code, up to 64 characters and identified together with currency. If omitted, the user selects a mapped option.
account_no string No Optional prefilled beneficiary account number, up to 128 characters. If omitted, the user enters it.
account_name string No Optional prefilled beneficiary name, up to 128 characters. If omitted, the user enters it.
recipient_email string No Optional valid prefilled beneficiary email, up to 254 characters. If omitted, only channels that require an email ask the user to complete it.
channel_code string No Optional. When provided, limits the cashier choices to this channel, which must still satisfy the current merchant, currency, payment type, and limit requirements.
notify_url string No Asynchronous notification URL. If omitted, the merchant's default notification URL is used. Production must use HTTPS.
return_url string No Manual return URL for the payout cashier. It must be an absolute HTTP(S) URL up to 2048 bytes. If omitted or empty, no return URL is used; the merchant default is not applied.

Beneficiary data rules:

Stage Rule
Create session bank_code, account_no, account_name, and recipient_email may be partially provided or all omitted; amount and currency are required. Provided data must pass format validation and participates in the signature and creation idempotency fingerprint. The cashier displays the full account number and name, which the user cannot edit.
Cashier confirmation After a channel is selected, only fields required by that channel and not already provided are shown. The bank code, account number, and name must be complete before confirmation; recipient_email is completed only when the channel requires it. The formal order is created only after confirmation, which locks the channel and beneficiary data. Repeated submissions reuse the original selection.

After channel matching and the balance pre-check pass, payment_url is still returned when all beneficiary data is omitted. The creation response does not return a bank list; the user selects a payment method and verified bank in the cashier, then enters the data. Creating a session does not mean the payout has been credited.

Before returning a link, the platform checks 可用余额 >= amount + 商户手续费 against the matched channel. An exactly sufficient balance is allowed; a missing balance record is treated as insufficient. When channel_code is specified, only that channel is checked, and a lower fee from another channel cannot be used. Bank matching may call the channel bank API; a query failure does not create a session. Successful session creation does not freeze funds, and validation runs again when the user confirms and when the formal order is created. A creation retry without a formal order repeats the pre-check; an existing formal order is returned without freezing funds again.

Request example with beneficiary data omitted:

{
  "api_key": "<PAYOUT_API_KEY>",
  "merchant_id": "merchant_1001",
  "merchant_order_no": "OUT202609160001",
  "amount": "50.00",
  "currency": "MYR",
  "return_url": "https://merchant.example.com/payout/result",
  "timestamp": "1789516800",
  "nonce": "fc687af8-5915-4db0-95ee-c21b09ec3553",
  "sign": "<64位小写HMAC-SHA256>"
}

Response example:

{
  "code": 0,
  "message": "OK",
  "data": {
    "checkout_mode": "cashier",
    "platform_order_no": "W202609160001",
    "merchant_order_no": "OUT202609160001",
    "amount": "50.00",
    "currency": "MYR",
    "status": "awaiting_payment_method",
    "payment_url": "https://cashier.example.com/#/cashier/<opaque-token>",
    "expired_at": "2026-09-16T15:30:00Z"
  },
  "request_id": "req_01JEXAMPLE"
}

If no channel is selected and no submission occurs, the session expires at expired_at. After a channel is selected and submission begins, the formal order status is authoritative.

Query a Cashier session

POST /api/v1/payout/query

Before a formal order is created, the query returns checkout_mode=cashier and the session status, but not payment_url. After the user confirms and a formal order is created, the query prioritizes the formal-order result with checkout_mode=direct. For complete fields and statuses, see shared payout query.

Search docs