API_integration_document_BetConstruct
API_integration_document_BetConstruct
07
Revision History
1
1.01 12/10 Inputs proofreading. Document creating. E. Igor
/2017 Mkrtchyan Mouhsian
1.02 17/04 Ch. 6 modified, § 6.1 added, Ch. 7 FSDeposit added, Ch. E. A. Korkotyan
/2019 8 Front End added, Ch.9 Free Spins added Mkrtchyan
1.05 2Aug, Contents were shifted. Ch 8 JackpotDeposit and §8.1 Error A. I. Mukhsiyan
2019 Codes inserted. Harutyunyan
1.07 15/02 The Table of Contents was changed and added in 2.2 and Lilit Marina
/2022 2.4: Hayrapetyan Manucharova
err_code description
127 Player Limit Exceeded
Contents
Revision History
Introduction
1 Front End
2 Backend
2.1 GetPlayerInfo
2.2 Withdraw
2.3 Deposit
2.4 Withdraw/Deposit
2.5 Rollback Transaction
2.6 FSWithdraw
2.7 FSDeposit
2.8 JackpotDeposit
3 Free Spins
3.1 Free Spin Creation
Table of Contents
Introduction
This API documentation contains a description of parameters used for third-party games integration into
Remote Gaming Server (RGS).
The HTTPS POST method is used for all requests. The Content-Type of request is application/JSON. The
following parameters are general for all requests
2
time — request time, datetime string, with "DD-MM-YYYY HH:MM:SS" format
data — JSON-encoded data, requested API method parameters
hash — MD5 checks the sum of concatenated string, which consists of PrivateKey (given to partner) time
and data.
1 Front End
Game Launch URLs for demo and real modes.
Demo mode
https://YOUR-DOMAIN.COM/xxxxxxxxx?mode=demo&gameID=YOUR_GAME_ID&language=eng
Real mode
https://YOUR-DOMAIN.COM/xxxxxxxxx?
mode=real_play&gameID=YOUR_GAME_ID&token=PLAYER_TOKEN&language=eng
2 Backend
2.1 GetPlayerInfo
Response parameters:
err_code Description
8 Authentication Failed
34 Wrong Currency
84 Game is Blocked
3
2.2 Withdraw
Response parameters:
err_code Description
7 Wrong Game ID
8 Authentication Failed
29 Player Is Blocked
34 Wrong Currency
84 Game is Blocked
2.3 Deposit
4
Request parameters of data:
Response parameters:
err_code Description
7 Wrong Game ID
8 Authentication Failed
34 Wrong Currency
84 Game is Blocked
2.4 Withdraw/Deposit
5
Response parameters:
err_code Description
7 Wrong Game ID
8 Authentication Failed
29 Player Is Blocked
34 Wrong Currency
84 Game is Blocked
Response parameters:
6
err_code — error code (if the "result" is false)
transactionId — unique key which identifies a single financial transaction (RGS transaction ID)
balance — player balance after the transaction
err_code Description
8 Authentication Failed
34 Wrong Currency
Request Parameters
Parameter Type
time string
hash string
token string
transactionId string
roundId string
gameId string
currencyId string
betAmount decimal
winAmount decimal
betInfo string
Parameter Type
currencyId string
7
totalBalance decimal
nickName string
gender int
country string
userID int
transactionId long
balance decimal
2.6 FSWithdraw
The request should be implemented for Free Spin if the withdraw is mandatory on the Provider side during Free
Spins.
Required parameters of data:
Response parameters:
err_code Description
7 Wrong Game ID
8 Authentication Failed
29 Player is Blocked
34 Wrong Currency
84 Game is Blocked
8
104 Transaction already exists
2.7 FSDeposit
The request is mandatory for Free Spin. The total win of Free Spins should be sent by this request.
Request parameters of data:
Response parameters:
err_code Description
7 Wrong Game ID
8 Authentication Failed
34 Wrong Currency
84 Game is Blocked
9
2.8 JackpotDeposit
The request is mandatory for Jackpot wins. By this request should be sent the Jackpot wins.
Response parameters:
err_code Description
8 Authentication Failed
34 Wrong Currency
84 Game is Blocked
3 Free Spins
Free Spins Bonus is a promotional tool, which allows the player to play a specified number of free rounds in a
game. Free Spins are always played with a minimal bet specified for each game and currency and maximal
lines. During Free Spins gameplay, bets are not deducted from the player's balance, but all wins, based on the
wagering factor, are collected for the Free Spins in the Provider's system.
After all free spins are played, including wagering, if any, the Provider should send the request for adding
money to the player's balance.
The implementation of the Free Spin Bonus consists of two parts:
2.
10
2. Adding new methods for sending Free Spin win and Free Spin bets, if bets are mandatory on the
provider side.
The provider should implement a method for creating Free Spin according to the model below and provide the
endpoint.
The HTTP POST method is used for Free Spin creating requests. The Content-Type of request is application
/JSON. The following parameters are general for this request.
Response parameters:
11