Action 4: Cancel BetNSettle
Function Description
- If JDB received status
6101
from your service, JDB will recover the game history corresponding to the original BetNSettle (Action 8) request. - If the request is received and has already been successfully processed, please return
0000
. - If JDB received status
9017
from your service, JDB will resend Cancel BetNSettle (Action 4) after 1 minute for 1 hour until received status is not9017
. - When BetNSettle (Action 8) times out or does not receive a correctly formatted response (please refer to the image below), this API will be called after one minute.

Request Parameter
Parameter | Format | Description |
---|---|---|
action | Integer | 4 |
ts | Long | Current system time |
transferId | Long | Transfer ID |
historyId | String(100) | Game History ID See Explanation of historyId. The system is scheduled to update the field to String(200) in the test environment on Aug 21, 2025, and will be gradually rolled out to the production environment on Aug 26, 2025 |
uid | String(50) | Player ID, Only allow a-z & 0-9 and underscores (_) and hyphens (-) |
currency | String(10) | Please refer to: Currency Code |
gType | Integer | Game types See Game Provider |
mType | Integer | Machine Type |
systemSessionId | String(150) | System Session ID, will be different in each login when using action 21 get game launch url. Game Type supports range: SLOT(0), FISH(7), ARCADE(9), LOTTERY(12), CARD(18) This is not included by default, contact JDB service if needed. |
More data fields are vary by gType, listed in the following table:
Request Example
{
"action": 4,
"ts": 1447452951820,
"transferId": 123456789,
"historyId": "5250145705663",
"uid": "testpl01",
"currency": "RB",
"gType": 0,
"mType": 8001
}
Response Parameter
Parameter | Format | Description |
---|---|---|
status | String(4) | 0000:Cancel successfully 6101:Can not cancel, transaction need to be settled 9017:Work in process, please try again later It would be considered as success if the status is not 6101 or 9017, and you can describe in err_text. |
balance | String | Balance |
err_text | String(255) | Error message |
Response Example
{
"status": "0000",
"balance": "12345.67",
"err_text": ""
}