POST/api/v1/settlements
按需機構結算與跨機構劃轉 (POST /v1/settlements)
ENDPOINT OVERVIEW
POST /api/v1/settlements 支援隨時將平台可用餘額提現至商戶自有賬戶,無 T+1/T+2 固定批次等待;提交前可透過 /me/balances 與 /me/limits 核對額度,提交後憑 settlement id 即時追蹤(後台 USDT TRC20 窗口為每日 14:00 – 22:00 UTC+7)。
Protocol Rules
- 同時支援提現至自有銀行賬戶 (/v1/settlements) 及同一組織樹內的跨機構劃轉(按機構代碼解析並雙向記賬)。
- 提交前可呼叫 GET /api/me/balances 與 GET /api/me/limits 校驗各幣種餘額與限額。
- 商戶後台 USDT (TRC20) 結算處理窗口為每日 14:00 – 22:00 (UTC+7)。
Request Examples
curl -X POST https://api.example.com/api/v1/settlements \
-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": "stl-20251204-001",
"currency_code": "THB",
"request_amount": 500000
}'Sample JSON Response
{
"id": "0198cc40-19b2-7a04-8f21-33c81042e9aa",
"merchant_ref_id": "stl-20251204-001",
"status": "queued",
"currency_code": "THB",
"request_amount": 500000
}