4.3 Cancel Bet (取消下注) (由运营商实现)
Description (说明)
This function is used to send cancel bet information to single wallet site
此功能用于取消下注

Notice (注意)
Please return Http code 200 in the following special circumstances, and the code is 0000 to inform us that the bet has been successfully cancelled.
- Your company has known that the cancellation of the same bet was successful, and you have received another bet cancellation request from our company for the same bet number.
- Your company has known that the same bet has failed, and you have received another bet cancellation request from our company for the same bet number.
以下特殊情形请返回Http code 200,且code为0000,以告知我司已取消下注成功
- 同笔注单贵司已知取消成功,且再次收到我司发起针对相同注单号的取消下注请求
- 同笔注单贵司已知下注失败,且再次收到我司发起针对相同注单号的取消下注请求
Please refer to 5.9 Retry Mechanism for the retry mechanism of cancel bet.
有关取消下注失败重试机制,请参阅 5.9 重试机制
When the operator performs maintenance, we suggest refer to 2.3 Operator Maintenance Flow
當運營商進行維護時,建議參閱 2.3 营运商维护流程
URL (网址)
{callbackURL}/cancel_bet
Request Method
POST
Request Parameters (请求参数)
Field (栏位) | Type (型态) | Required (必要) | Description (说明) |
|---|
| ts | String | Y | Current system time fixed 28 characters 当前系统时间
format 格式 yyyy-MM-dd'T'HH:mm:ss.SSSZ timezone 时区 GMT+8 |
| reason | String | Y | Reason for cancelling the bet,please refer to reason sheet below <= 30 characters 取消下注的原因,請參考下方取消下注原因表格 |
| userId | String | Y | User ID <= 50 characters 玩家帐号 |
| txId | String | Y | Transaction ID <= 20 characters 注单号 |
| gameType | String | Y | Game Type <= 10 characters 游戏类型
|
| gameCode | String | Y | Game Code <= 20 characters 游戏代码
|
Reason (取消下注原因)
Reason (原因) | Description (说明) |
|---|
| BET_REQUEST_TIME_OUT | Bet request timed out 下注请求超时 |
| BET_FAILED | Bet failed 下注失败 |
| VOID_ROUND | Void round 无效局 |
{
"ts": "2022-10-14T23:00:00.000+0800",
"reason": "BET_FAILED",
"userId": "hrgpl0001",
"txId": "AAA-251916",
"gameType": "LIVE",
"gameCode": "BACCARAT"
}
Return Result (返回结果)
Field (栏位) | Type (型态) | Required (必要) | Description (说明) |
|---|
| code | String | Y | Status Code fixed 4 characters 状态码
Please refer to 5.4 Status Code to find the appropriate status code to return. If there is no relevant status code, please respond to 9999. 詳見 5.4 状态代码,请参考状态码列表,找寻适当的状态码回传,如果没有相关状态码才请回应9999 |
| balanceTs | String | Y | Account balance update time fixed 28 characters 帐户余额更新时间
please return the player account balance update completion time. 请回传玩家帐号余额更新完成时间
format 格式 yyyy-MM-dd'T'HH:mm:ss.SSSZ timezone 时区 GMT+8 |
| balance | String | Y | Account balance after cancel bet. (real credit plus free credit) decimal places <= 4 取消下注后帐户余额 (现金码余额 + 泥碼余额) |
| realCredit | String | N | Real credit after cancel bet. decimal places <= 4 取消下注后现金码余额
if your company has not enabled the free credit function, then no need to return this attribute 若贵司未开启泥码功能,则不须回传此属性
v24.3.2 update
|
| freeCredit | String | N | Free credit after cancel bet. decimal places <= 4 取消下注后泥碼余额
if your company has not enabled the free credit function, then no need to return this attribute 若贵司未开启泥码功能,则不须回传此属性
v24.3.2 update
|
| desc | String | N | If code is not 0000 then return description for this failure. 描述错误原因,当code非0000时需填入 |
Scenario 1 (范例 1)
Not enabled the free credit function. 未开启泥码功能
{
"code": "0000",
"balance": "100.0",
"balanceTs": "2022-10-14T23:00:00.000+0800",
"desc": ""
}
Scenario 2 (范例 2)
Enabled the free credit function. 开启泥码功能
{
"code": "0000",
"balance": "100.0",
"realCredit": "90.0",
"freeCredit": "10.0",
"balanceTs": "2022-10-14T23:00:00.000+0800",
"desc": ""
}
Field (栏位) | Type (型态) | Required (必要) | Description (说明) |
|---|
| code | String | Y | Status Code fixed 4 characters 状态码
Please refer to 5.4 Status Code to find the appropriate status code to return. If there is no relevant status code, please respond to 9999. 詳見 5.4 状态代码,请参考状态码列表,找寻适当的状态码回传,如果没有相关状态码才请回应9999 |
| desc | String | Y | If code is not 0000 then return description for this failure. 描述错误原因,当code非0000时需填入 |
Scenario 1 (范例 1)
{
"code": "9999",
"desc": "unknown error"
}