跳至正文內容
Back to API Reference
POST/api/v1/customers/{id}/accounts

綁定客戶銀行賬戶取得 customer_account_id

ENDPOINT OVERVIEW

預先登記客戶銀行卡將返回 UUIDv7 格式的 customer_account_id,在 POST /api/v2/payins 與 POST /api/v1/payouts 中統一引用,實現同名付款核驗並攔截第三方資金。

Protocol Rules

  • 支援全部 18 間泰國直連銀行與 12 間香港 FPS 銀行。
  • 將返回的 UUIDv7 填入代收與代付請求的 customer_account_id 欄位。

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"
}