跳至正文內容
Back to API Reference
GET/api/me/balances · /me/limits · /me/issues

餘額查詢、限額查詢、取消掛單與工單追蹤

ENDPOINT OVERVIEW

平台為財務與後台系統提供完整的運維接口:GET /api/me/balances(按幣種查詢餘額)、GET /api/me/limits(查詢交易與結算限額)、POST /api/v2/payins/{id}/cancel(取消未支付訂單)以及 /api/me/issues(提交並追蹤異常工單)。

Protocol Rules

  • 所有接口呼叫均需附帶 X-API-Key、X-Timestamp 與剝離 /api 前綴後的 X-Signature(例如對 /me/balances 簽名)。
  • POST /api/v2/payins/{id}/cancel 僅可取消仍處於 pending 狀態的未付款訂單。
  • 透過 /api/me/issues 建立的工單將直接關聯交易 ID,便於 API 與專屬客服群同步跟進。

Request Examples

# Read balances per currency (sign stripped path: /me/balances)
curl -X GET https://api.example.com/api/me/balances \
  -H "X-API-Key: <your-api-key>" \
  -H "X-Timestamp: <unix-timestamp>" \
  -H "X-Signature: <hmac-sha256-of-path>"

Sample JSON Response

{
  "balances": [
    { "currency_code": "THB", "available_amount": 1726925, "pending_amount": 45000 },
    { "currency_code": "HKD", "available_amount": 284500, "pending_amount": 0 }
  ]
}