CheckSellingStatus - Saba-sports/OddsDirectAPI_CN GitHub Wiki

该API用于获取兑现票据的状态。 呼叫/SellBack后,需等待2秒再呼叫/CheckSellingStatus

Request

GET  /cashout/{version}/CheckSellingStatus?transId=123456
Accept: application/json
Authorization: Bearer {JWT token}
Parameter Format Mandatory Description
transId long Yes 注单号码

Response

{    
    "transId": long,
    "sellingStatus": int,
    "soldStake": decimal,
    "paid":decimal,
} 
Parameter Format Description
transId long 注单号码
sellingStatus int 兑现票据的状态1:Waiting, 2:Accept, 3:Reject
soldStake decimal 兑现的注额
paid decimal 兑现的金额

ErrorCode Enumeration

Error Code Message Description
E001 Internal Server Error 服务器发生非预期错误
E002 Invalid parameter input 参数输入无效或不支援
B019 Transaction Id Not Found 找不到对应注单编号