跳至主要内容

查詢已發放代金券

HTTP 請求

POST /v5/broker/award/distribution-record

請求參數

參數是否必需類型說明
accountIdtruestring用戶ID
awardIdtruestring代金券ID
specCodetruestring自定義標識碼
withUsedAmountfalseboolean是否返回用戶已使用金額
  • true
  • false (默認)

響應參數

參數類型說明
accountIdstring用戶ID
awardIdstring代金券ID
specCodestring自定義標識碼
amountstring代金券金額
isClaimedboolean是否已領取true, false
startAtstring可領取開始時間 (秒級時間戳)
endAtstring可領取結束始時間 (秒級時間戳)
effectiveAtstring領取後生效時間 (秒級時間戳)
ineffectiveAtstring領取後失效時間 (秒級時間戳)
usedAmountstring用戶已使用金額

請求示例

POST /v5/broker/award/distribution-record HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1726112099846
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
Content-Length: 111

{
"accountId": "5714139",
"awardId": "189528",
"specCode": "demo000",
"withUsedAmount": false
}

響應示例

{
"retCode": 0,
"retMsg": "",
"result": {
"accountId": "5714139",
"awardId": "189528",
"specCode": "demo000",
"amount": "1",
"isClaimed": true,
"startAt": "1725926400",
"endAt": "1733788800",
"effectiveAt": "1726531200",
"ineffectiveAt": "1733817600",
"usedAmount": "",
}
}