Skip to content

Settle Bets POST

The product calls the operator on this path.

Product Single State ​

These products can settle in one callback, with no separate place-bet call.

Product IDProduct Name
PGSOFTPG Soft
BOOMINGBooming
I8I8
AFB1188_SLOTAFB1188 (Slot)
FACHAIFachai
759GAMING759 Gaming
ASKMEBETAskmebet
MINILUCKMiniluck
BOOONGOBooongo
KAGAMEKA Gaming

HTTP Request ​

Method and path below. {API_URL} is a host from the Authentication page. {YOUR_API_URL} is the operator callback host.

text
POST {YOUR_API_URL}/settleBets

Content Type ​

Use Content-Type: application/json.

Parameter Description ​

Field name, type, and whether the caller must send it.

PropertyTypeRequiredDescription
idstringRequiredTransaction id
timestampMillisnumberRequiredUnix time in milliseconds
productIdstringRequiredProduct id from the API reference
currencystringRequiredCurrency code such as THB
usernamestringRequiredPlayer login name
txnsTxn[]RequiredList of transactions in this callback
json
{
  "id": "txn-1",
  "timestampMillis": 1700000000000,
  "productId": "EXAMPLE",
  "currency": "THB",
  "username": "player01",
  "txns": []
}

Settle Bet transaction parameters ( txns ) ​

Field name, type, and whether the caller must send it.

PropertyTypeRequiredDescription
idstringRequiredTransaction id
statusstringRequiredStatus text for this call. values include SETTLED
roundIdstringRequiredround Id
betAmountnumberRequiredbet Amount. paths /placeBets
payoutAmountnumberRequiredpayout Amount
gameCodestringRequiredGame code from the list-games call
playInfostringRequiredplay Info
turnOvernumberRequiredturn Over defaults to 0
isSingleStatebooleanRequiredis Single State. values include OPEN; paths /settleBets, /placeBets
transactionTypestringRequiredtransaction Type values include BY_TRANSACTION values include BY_ROUND
isEndRoundbooleanOptionalis End Round. defaults to false
isFeaturebooleanOptionalis Feature defaults to false
isFeatureBuybooleanOptionalis Feature Buy. defaults to false
skipBalanceUpdatebooleanOptionalskip Balance Update values include SPORT defaults to false
json
{
  "id": "txn-1",
  "status": "example",
  "roundId": "example",
  "betAmount": "1.00",
  "payoutAmount": "1.00",
  "gameCode": "example",
  "playInfo": "example",
  "turnOver": 0,
  "isSingleState": false,
  "transactionType": "example",
  "isEndRound": false,
  "isFeature": false,
  "isFeatureBuy": false,
  "skipBalanceUpdate": "1.00"
}

Response Description ​

Fields in a successful JSON body.

PropertyTypeRequiredDescription
idstringRequiredTransaction id
statusCodenumberRequiredCallback status code
timestampMillisnumberRequiredUnix time in milliseconds
productIdstringRequiredProduct id from the API reference
currencystringRequiredCurrency code such as THB
balanceBeforenumberRequiredbalance Before
balanceAfternumberRequiredbalance After
usernamestringRequiredPlayer login name
json
{
  "id": "txn-1",
  "statusCode": 0,
  "timestampMillis": 1700000000000,
  "productId": "EXAMPLE",
  "currency": "THB",
  "balanceBefore": "1.00",
  "balanceAfter": "1.00",
  "username": "player01"
}

Request Example ​

Placeholder values only. Do not send these as real credentials.

Request Example (BY_TRANSACTION) ​

Placeholder values only. Do not send these as real credentials.

Request Example (BY_ROUND) ​

Placeholder values only. Do not send these as real credentials.

Local editable copy. Not the official AMBSuperAPI documentation.