Documentation · Query payout

Query payout

POST /api/v1/payout/query

Cashier and Direct share this query endpoint. The platform checks for a formal order first and returns a Cashier session only when no formal order has been created.

Field Type Required Description
platform_order_no string Conditional Platform order number. Provide at least one of the two order numbers.
merchant_order_no string Conditional Merchant order number. When both order numbers are provided, they must identify the same session or order.
sync_provider boolean No Defaults to false. When a formal order is in processing status, set this field to true to fetch the latest status. This field participates in signing.

Request example:

{
  "api_key": "<PAYOUT_API_KEY>",
  "merchant_id": "merchant_1001",
  "merchant_order_no": "OUT202609160001",
  "timestamp": "1789516800",
  "nonce": "query-payout-001",
  "sign": "<64位小写HMAC-SHA256>",
  "sync_provider": false
}

Session 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",
    "expired_at": "2026-09-16T15:30:00Z"
  },
  "request_id": "req_01JEXAMPLE"
}

A formal order returns its order numbers, amount, currency, status, audit_status, channel_code, fee_amount, net_amount, frozen_amount, and created_at, together with a masked receiver. net_amount = amount + fee_amount, representing the total order debit, is the same as frozen_amount. For example, when amount=30.00 and fee_amount=0.45, net_amount=30.45. On success, this amount is actually debited; on failure, it is unfrozen. channel_order_no and completed_at are returned when applicable. The full beneficiary account number and name are not returned.

Formal order status Description Terminal
reviewing Under review No
processing Processing No
success Payout succeeded Yes
failed Payout failed Yes
cancelled Cancelled Yes

Existing orders remain queryable while the channel is in maintenance, and a processing order may still use sync_provider=true to try to synchronize the latest status. After a timeout or indeterminate result, the order may remain processing. Wait for a query result or notification; do not treat it as failed or create another order.

Search docs