Skip to main content
Back to API Reference
POST/api/v1/customers/{id}/accounts

Bind Customer Bank Account (Sender Verification)

ENDPOINT OVERVIEW

Registering a customer's bank account returns a UUIDv7 customer_account_id referenced in both POST /api/v2/payins and POST /api/v1/payouts — enforcing sender-to-order matching and blocking third-party transfers.

Protocol Rules

  • Supports all 18 connected Thai banks and 12 Hong Kong FPS banks.
  • Pass the returned UUIDv7 id as customer_account_id in payin and payout requests.

Request Examples

curl -X POST https://api.example.com/api/v1/customers/0198cbc6-fd02-7459-a671-78c306d0a1ad/accounts \
  -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 '{
    "bank_code": "SCB",
    "account_number": "4091234567",
    "account_name": "SOMCHAI TEST"
  }'

Sample JSON Response

{
  "id": "0198cbc7-35ec-7c8c-8994-d3ac3e7f5255",
  "customer_id": "0198cbc6-fd02-7459-a671-78c306d0a1ad",
  "bank_code": "SCB",
  "status": "verified"
}