Appearance
Adjust Bets POST
Sometimes the provider need to adjust the wagered amount. If you got this request, you can use the value inside the body to adjust player's balance.
Adjust bet = (Member Balance + Old Bet Amount) - New Bet Amount
Start Balance = 10000
Bet Amount = 10
Balance = 9990
Adjust Bet = 20
Balance = 9980
calculate Balance = 9990 + 10 - 20
HTTP Request
POST {{ YOUR_API_URL }}/adjustBets
Content Type
Type: application/json
Parameter Description
Property | Type | Required | Description |
---|---|---|---|
id | string | Required | Request id |
timestampMillis | number | Required | Requesting time |
productId | string | Required | Product id associated with the request Product |
currency | string | Required | Player's currency code in ISO 4217 (Example: "THB" ) |
username | string | Required | User id on agent system |
txns | Txn[] | Required | Transaction Id on agent system |
Adjust Bet transaction parameters (txns
)
Property | Type | Required | Description |
---|---|---|---|
id | string | Required | Transaction ID |
status | string | Required | Bet status (Always OPEN ) |
roundId | string | Required | Round id |
gameCode | string | Required | Game code |
playInfo | string | Required | Information regarding the player was chosen. If Live-casino game this should be the position that player wager on that round if system can identified the position (e.g. player , banker ). Other games, the value should be the game name, if we can't identified game name or game code, we will send 'UNKNOWN' into this value. |
betAmount | number | Required | The value that system need to adjust the wagering amount. |
txnId | string | Optional | Transaction ID (Usually send the same value as id ) |
Response Description
Property | Type | Required | Description |
---|---|---|---|
id | string | Required | Request id |
statusCode | number | Required | Status from StatusCode |
timestampMillis | number | Required | Responding time |
productId | string | Required | Product id associated with the request Product |
currency | string | Required | Player's currency codein ISO 4217 (Example: "THB" ) |
balanceBefore | number | Required | Player's balance before unsettle |
balanceAfter | number | Required | Player's balance after unsettle |
username | string | Required | User id on agent system |
Request Example
Request Body
json
{
"id": "2a561272-df13-4c1e-99d4-06eb7f061fe2",
"productId": "{{ Product ID }}",
"username": "foobar",
"currency": "THB",
"timestampMillis": 1724047571704,
"txns": [
{
"id": "285110bjm7rjvo",
"status": "OPEN",
"roundId": "2rj3byk76ks4yn",
"betAmount": 20,
"gameCode": "d5qfgs4amfxf6",
"playInfo": "Respin Mania"
}
]
}
JSON Response Body
json
{
"id": "eb62c4bf-32e4-402e-8dc0-a714456bb904",
"statusCode": 0,
"productId": "{{ Product ID }}",
"timestampMillis": 1712768088100,
"username": "foobar",
"currency": "THB",
"balanceBefore": 10000,
"balanceAfter": 9980
}
JSON response Fail example:
json
{
"id": "c7197ce4-5a50-4397-a903-d78b135ade4c",
"statusCode": 10001,
"productId": "{{ Product ID }}",
"timestampMillis": 1631599542878
}