Skip to content

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

PropertyTypeRequiredDescription
idstringRequiredRequest id
timestampMillisnumberRequiredRequesting time
productIdstringRequiredProduct id associated with the request Product
currencystringRequiredPlayer's currency code in ISO 4217 (Example: "THB")
usernamestringRequiredUser id on agent system
txnsTxn[]RequiredTransaction Id on agent system

Adjust Bet transaction parameters (txns)

PropertyTypeRequiredDescription
idstringRequiredTransaction ID
statusstringRequiredBet status (Always OPEN)
roundIdstringRequiredRound id
gameCodestringRequiredGame code
playInfostringRequiredInformation 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.
betAmountnumberRequiredThe value that system need to adjust the wagering amount.
txnIdstringOptionalTransaction ID (Usually send the same value as id)

Response Description

PropertyTypeRequiredDescription
idstringRequiredRequest id
statusCodenumberRequiredStatus from StatusCode
timestampMillisnumberRequiredResponding time
productIdstringRequiredProduct id associated with the request Product
currencystringRequiredPlayer's currency codein ISO 4217 (Example: "THB")
balanceBeforenumberRequiredPlayer's balance before unsettle
balanceAfternumberRequiredPlayer's balance after unsettle
usernamestringRequiredUser 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
}