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