Seamless
Seamless Wallet API
Functions
Action 10: Settle

Action 10: Settle

Function Description

  • JDB will call the API when game is in settle, and inform the game result.
  • After using amount for payout, return the player's latest balance.
  • If the request is received and has already been successfully processed, please return 0000.
  • If call the API failed, JDB will retry every minutes for 1 hour until status 0000.
seamless wallet settle flow chart

Request Parameter

ParameterFormatDescription
actionInteger10
tsLongCurrent system time
transferIdLongTransfer ID can be referred to game history
uidString(50)Player ID
currencyString(10)Please refer to: Currency Code
amountDoubleAmount that should be transferred to player balance.
It will always be positive.
refTransferIdsArray of LongWhich bets would be settled, and also can be referred to Action 9's transferId
gameRoundSeqNoString(100)Game round sequence number
historyIdString(100)Game History ID
See Explanation of historyId
gTypeIntegerGame types, please refer to: Game Provider
mTypeIntegerMachine Type
reportDateString(10)Report Date (dd-MM-yyyy)
gameDateString(19)Game Date (dd-MM-yyyy HH:mm:ss)
lastModifyTimeString(19)Last Modified Time (dd-MM-yyyy HH:mm:ss)
betDoubleBet Amount
validBetDoubleValid Bet
winDoubleGame Win (Include bet amount)
netWinDoubleTotal Net Win
taxDoubleTax
commissionDoubleRebate
sessionNoString(50)Session No. , will be different in each game. Recommend when the JDB lobby is not in use.
This is not included by default, contact JDB service if needed.
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.
roundClosedBooleanis round finished.
true: round is finished.
false: round is not finished, have another action 10.

More data fields are vary by gType, listed in the following table:

Request Example

{
  "action": 10,
  "ts": 1700029145035,
  "transferId": 272017,
  "uid": "john",
  "currency": "XX",
  "amount": 0.1,
  "refTransferIds": [272016],
  "gameRoundSeqNo": "5250228497993",
  "historyId": "1944036707",
  "reportDate": "15-11-2023",
  "gameDate": "15-11-2023 14:18:57",
  "lastModifyTime": "15-11-2023 14:19:04",
  "win": 0.1,
  "bet": 0.2,
  "validBet": 0.2,
  "netWin": -0.1,
  "tax": 0,
  "commission": 0,
  "gType": 58,
  "mType": 58016,
  "roundClosed": true
}

Response Parameter

ParameterFormatDescription
statusString(4)Success: 0000
It would be considered as failure if the status is not 0000, and trigger resend mechanism.
balanceStringBalance
err_textString(255)Error message

Response Example

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