Seamless
Seamless Wallet API
Functions
Action 11: Cancel Bet

Action 11: Cancel Bet

Function Description

  • This action is called by JDB after 1 minute when the Bet (Action 9) request failed.
  • 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 12 hours until status 0000.
seamless wallet cancel bet flow chart

Request Parameter

ParameterFormatDescription
actionInteger11
tsLongCurrent system time
transferIdLongTransfer ID can not 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 canceled, and also can be referred to Action 9's transferId
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": 11,
  "ts": 1664522589182,
  "transferId": 251919,
  "uid": "testpl",
  "currency": "RM",
  "amount": 5000.0,
  "refTransferIds": [
    251916
  ],
  "gameRoundSeqNo": "1975826710",
  "gType": 0,
  "mType": 8001
}

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": ""
}