API Name CancelBet
Notes
  • In case of -1 and 406 place bet wallet errors or after a successfully placeBet request but a game error a cancel bet process will be triggered asynchronously to refund the bet amount to the player.
Path <WalletUrl>/account/cancelBet
Method POST
Request Format URL
Return Format JSON
Header Content-Type: application/json
Request Parameters
  • amount : Double (Required) - Amount of the bet
  • gameid : Integer (Required) - Unique identifier for a game
  • roundid : String (Required) - Unique identifier for a round in the game
  • currency : String (Required) - Player Currency Code
  • transactionid : String (Required) - Transaction unique identifier
  • txnreferenceid : String (Required) - Transaction identifier of the bet transaction to cancel
  • membercode : String (Required) - Login
  • token : String (Optional) - Game token
  • freegame : Bit (Required) - Free game identifier (1=true; 0=false)
  • gameroundend : Bit (Required) - Last game identifier (1=true; 0=false)
  • sessionid : Integer (Required) - Session Id
  • platformid : Integer (Optional) - Game platform that is currently running
  • gamenum : Integer (Optional) - Unique identifier for a gameplay detail
  • bonusamount : Double (Optional) - Bonus amount of the bet
  • bonusroundid : String (Optional) - Unique identifier for a bonus round in the game
  • bonuscode : String (Optional) - Code used to identify the specific bonus/coupon
  • bonusplaythrough : Double (Optional) - Amount required to wager by the player to complete the coupon/bonus requirements
  • bonusplaythroughbalance : Double (Optional) - Current balance corresponding to player wagers made so far
  • bonusbalance : Double (Optional) - Current player's bonus balance
  • transactiondate : String (Optional) - The date and time when the transaction was created, expressed as "YYYY-MM-DDThh:mm:ss.SSS+hh:mm"
  • utctransactiondate : String (Optional) - The date and time when the transaction was created in UTC, expressed as "YYYY-MM-DDThh:mm:ss.SSS+00:00"
Request Example { "amount": -1, "gameid": 458761, "roundid": "-9223372036854774281", "currency": "USD", "transactionid": "RTGS_-9223372036854774253", "txnreferenceid": "RTGS_-9223372036854774251", "membercode": "mapuy4", "token": "", "freegame": false, "gameroundend": false, "sessionid": 20090, "platformid": 3, "gamenum": 0, "bonusamount": 0, "bonusroundid": "", "bonuscode": "", "bonusplaythrough": 0, "bonusplaythroughbalance": 0, "bonusbalance": 0, "transactiondate": "2022-03-29T14:49:36.000Z", "utctransactiondate": "2022-03-29T14:49:36.000+00:00" }
Success Response Example { "code": 0, "message": "success", "balance": 9999.99, "bonusbalance": 999.99, "status": "" }
Error Codes
  • 0: No error
  • 53: The transaction belongs to another player and has already been canceled.
  • 100: Required field cannot be empty or null.
  • 104: Invalid amount format.
  • 105: Invalid external transaction id, its length cannot be more than 100 characters.
  • 404: No player found that matches this transaction.
  • 405: The transaction has already been canceled.
  • 406: "Invalid Cancel Request"
  • -1: Internal Server Error or any other error