GetBalance() API
Operator needs to make gameLaunch() API request to RGS API to get the launch URL. During this process our API system will send getSession() API request to you to validate the session ID.
POST /get-balance
JSON
Host: https://test-api.netgaming.com/v1/
{
"token": "b6ef88a8054e328f4459b6",
"game_id": 6,
"player_id": "1436"
}
Request Body
Parameters | Type | Description |
token | String | Token(session ID) created created for the player during login |
game_id | Integer | Game ID provided by the provider |
player_id | String | ID of the player |
Response Example
{
"status": 1,
"player_id": "125917",
"country": "US",
"token": "3c2ef39d02581e2db3ddf6c713e83e05",
"currency": "USD",
"balance": 1200,
"bonus_amount": 123
}
Parameters | Type | Description |
---|---|---|
status | Integer | 0 Indicates fail, 1 indicates success response |
player_id | String | Id of the player |
country | String | Country of the player |
token | String | Unique string assigned to each player(session ID) |
currency | String | Currency of the player |
balance | Integer | Should be in Cents format(balance = amount x 100) |
bonus_amount | Integer | Should be in Cents format(balance = amount x 100) |