4.2 Place Bet (下注) (由运营商实现)
Description (说明)
This function is to send bet information to single wallet site
此功能用于下注

Notice (注意)
若确认该次下注失败,code请返回8001,若返回其他非0000的code则会触发4.3 取消下注。
URL (网址)
{callbackURL}/place_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 |
| gameType | String | Y | Game Type <= 10 characters 游戏类型
|
| gameCode | String | Y | Game Code <= 20 characters 游戏代码
|
| userId | String | Y | User ID <= 50 characters 玩家帐号 |
| roundId | String | Y | Round ID <= 20 characters 局编号 |
| txId | String | Y | Transaction ID <= 20 characters 注单号 |
| tableId | String | Y | Table ID 桌号 |
| betTime | String | Y | Place bet time fixed 28 characters 下注时间
format 格式 yyyy-MM-dd'T'HH:mm:ss.SSSZ timezone 时区 GMT+8 |
| betAmount | String | Y | How much did user bet decimal places <= 4 下注金额
If fee-type game, this field includes the fee amount. 若为 手续费类型游戏,此栏位包含手续费金额 |
| category | String | Y | Bet type <= 20 characters 下注类型
|
{
"ts": "2022-10-14T23:00:00.000+0800",
"userId": "hrgpl0001",
"txId": "AAA-251916",
"betTime": "2022-10-14T22:59:59.920+0800",
"gameType": "LIVE",
"gameCode": "BACCARAT",
"betAmount": "50.0",
"roundId": "RND-08310057",
"category": "Player",
"tableId": "1"
}
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 bet. (real credit plus free credit) decimal places <= 4 下注后帐户余额 (现金码余额 + 泥碼余额) |
| realCredit | String | N | Real credit after 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 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
|
| realCreditDeduction | String | N | The deduction in real credit for this 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
|
| freeCreditDeduction | String | N | The deduction in free credit for this 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",
"realCreditDeduction": "10.0",
"freeCreditDeduction": "40.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"
}