Skip to main content
Back to API Reference
POST/api/v1/payouts

Automated Managed-Queue Payouts (POST /v1/payouts)

ENDPOINT OVERVIEW

POST /api/v1/payouts enforces unique merchant_ref_id idempotency keys to stop double disbursements on network retries, executes via a 24-hour managed queue, and remains queryable anytime via GET /api/v1/payouts/{id}.

Protocol Rules

  • Always supply a unique merchant_ref_id and reuse that exact reference when retrying timed-out calls.
  • Standard THB payout range: 100 – 45,000 THB per transaction; 1.0% fee applies strictly to completed transfers.
  • Read individual payout status anytime via GET /api/v1/payouts/{id}.

Request Examples

curl -X POST https://api.example.com/api/v1/payouts \
  -H "Content-Type: application/json" \
  -H "X-API-Key: <your-api-key>" \
  -H "X-Timestamp: <unix-timestamp>" \
  -H "X-Signature: <hmac-sha256-of-path>" \
  -d '{
    "merchant_ref_id": "unique-payout-ref-2025009",
    "currency_code": "THB",
    "request_amount": 5000,
    "customer_id": "0198cbc6-fd02-7459-a671-78c306d0a1ad",
    "customer_account_id": "0198cbc7-35ec-7c8c-8994-d3ac3e7f5255"
  }'

Sample JSON Response

{
  "id": "0198cc12-84a1-7e10-b311-91d42a7701c2",
  "merchant_ref_id": "unique-payout-ref-2025009",
  "status": "processing",
  "currency_code": "THB",
  "request_amount": 5000,
  "fee_amount": 50
}