NOTE: In InApi 1.7, this call does not support “multiple withdraws in one game round” scenario. Use Withdraw for that scenario.
Required parameters of data:
- token — identifies player
- transactionId — unique key, in order to identify the single financial transaction.
- roundId — identifies game cycle (can be null)
- gameId — identifies game
- currencyId — ISO currency code
- betAmount — amount to debit
- winAmount — amount to credit
- betInfo - (can be used if the additional data should be send)
Response parameter:
- result — request result (true if success and false if failed)
- err_desc — error description (if “result” is false)
- err_code — error code (if “result” is false)
- transactionId — unique key which identifies single financial transaction(RGS transaction ID)
- balance — player balance after transaction
Note:
- This call ends the round.
WithdrawDeposit request example:
Endpoint: https://staging.tomhorngames.com/api/TomHorn/WithdrawDeposit
{
"time": "04-02-2021 14:56:35",
"hash": "D162146329991FF636C6591506A91CA5",
"data": {
"token": "136275",
"transactionId": "16928505367480413126",
"roundId": "12346",
"gameId": "racingbet",
"currencyId": "EUR",
"betAmount": "1",
"winAmount": "2",
"betInfo": "test"
}
}
Error codes
erro_code | Description |
4 | Wrong Bet Amount |
7 | Wrong Game ID |
8 | Invalid Hash |
21 | Not Enough Money |
29 | Player Is Blocked |
34 | Wrong Currency |
63 | Wrong Win Amount |
84 | Game is Blocked |
104 | Transaction already exist |
106 | Token Expired |
114 | Token not Found |
130 | General Error |
200 | Incorrect Parameters Passed |
Comments
0 comments
Article is closed for comments.