Request parameters of data:
- token — identifies the player
- transactionId — unique key, in order to identify the single financial transaction
- roundId — identifies game cycle
- gameId — identifies the game
- currencyId — ISO currency code
- winAmount — amount to the credit
- betInfo - (can be used if the additional data should be sent)
Response parameters:
- result — request result (true if successful and false if failed)
- err_desc — error description (if “result” is false)
- err_code — error code (if “result” is false)
- transactionId — a unique key that identifies a single financial transaction(RGS transaction ID)
- balance - player balance after the transaction
Note:
- The deposit call ends the round unless the round has multiple withdrawals
- For a non-winning round, a deposit call with a zero-win amount is required.
Deposit request example:
Endpoint: https://example.tomhorngames.com/api/TomHorn/Deposit
{
"time": "04-02-2021 14:55:58",
"hash": "43FAD61D3A20D0B3337829FF6F755B8C",
"data": {
"token": "136275",
"transactionId": "16928505367480413125",
"roundId": "12345",
"gameId": "racingbet",
"currencyId": "EUR",
"winAmount": "0.5",
"betInfo": ""
}
}
Error codes
err_code | Description | Retry |
7 | Wrong Game ID | No |
8 | Invalid Hash | Yes |
34 | Wrong Currency | No |
63 | Wrong Win Amount | No |
84 | Game is Blocked | No |
104 | Transaction already exist | No |
114 | Token not Found | Yes |
130 | General Error | Yes |
200 | Incorrect Parameters Passed | Yes |
Comments
0 comments
Article is closed for comments.