Seamless
Seamless Wallet API
Functions
Action 9: Bet

Action 9: Bet

Function Description

  • JDB will call the API when player bet, and inform this bet information.
  • Without any correct response, JDB will call Cancel Bet (Action 11) after 1 minute.
  • Please use amount to confirm whether the player's balance is sufficient, and after deducting with amount, return the remaining balance to the player.
seamless wallet bet flow chart

Request Parameter

ParameterFormatDescription
actionInteger9
tsLongCurrent system time
transferIdLongTransfer ID can not be referred to game history
uidString(50)Player ID
currencyString(10)Please refer to: Currency Code
amountDoubleBet amount (always be positive)
gameRoundSeqNoString(100)Game round sequence number
gTypeIntegerGame types
See Game Provider
mTypeIntegerMachine Type
systemSessionIdString(150)System Session ID, will be different in each login when using action 21 get game launch url.

Game Type supports range: ARCADE(9), 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": 9,
  "ts": 1700029138004,
  "transferId": 272016,
  "uid": "john",
  "currency": "XX",
  "amount": 0.2,
  "gameRoundSeqNo": "5250228497993",
  "gType": 0,
  "mType": 8001
}

Response Parameter

ParameterFormatDescription
statusString(4)Success: 0000
Error: 6006 - Player balance is insufficient
It would be considered as failure if the status is not 0000, and you can describe in err_text.
balanceStringBalance
err_textString(255)Error message

Response Example

{
  "status": "0000",
  "balance": "12345.67",
  "err_text": ""
}