GetAccount
GetAccount
Returns player details, such as unique ID, currency, and language.
Responsibilities of the casino platform
The casino platform must confirm the validity of incoming game sessions and account IDs and return the user data relevant for the session. If a retry or rollback request is sent regarding a request that the casino already responded to, the account ID that is returned must be unique per player, and identical.
Request Parameters
| Parameter | Data Type | Mandatory | Description |
|---|---|---|---|
accountid |
String(60) [0-9a-zA-Z] | Required | Account ID Example: 5179068 |
apiversion |
String | Required | The API version that will be used Example: 1.2 |
device |
String | Required | The device currently used by the player Valid values: desktop or mobile |
gamesessionid |
String(64) | Required | The game session id from the start game Example: 11_99d71938-c2d9-4844-b950-d598c2es |
request |
String | Required | Request method name Example: getaccount |
Request Example
/groove?request=getaccount&gamesessionid=123_jdhdujdk&accountid=111&device=desktop&apiversion=1.2Response Parameters
| Parameter | Data Type | Mandatory | Description |
|---|---|---|---|
accountid |
String | Required | Account ID generated by the casino Example: 5179068 |
apiversion |
String | Required | The version of the API being used Example: 1.2 |
bonus_balance |
Decimal (32,10) | Optional | The player’s bonus balance Example: 50.0 |
city |
String(32) | Required | The city where the player logged in Examples: London, Tel Aviv |
code |
Integer | Required | Response code (See Appendix) Example: 200 |
country |
String | Required | Country code (ISO 3166-1 alpha-2) Examples: IL, UK, US |
currency |
String | Required | Currency code (ISO) Example: EUR |
game_mode |
Integer | Optional* | Combined real and bonus modes 1 = Real mode 2 = Bonus mode *Required for CMA-compliant games |
gamesessionid |
String(64) | Required | The ID for the game session Example: 11_99d71938-c2d9-4844-b950-d598c2es |
order |
String | Optional* | The type of order Valid values: cash_money, bonus_money*Required for CMA-compliant games |
real_balance |
Decimal (32,10) | Required | The player’s real balance Example: 100.0 |
status |
String | Required | The status of the response Example: Success |
Info
For Fugaso GP, the following cryptocurrencies are available: BTC, LTC, DOG, ETH, BCH
Response Example
Success Response
{
"code": 200,
"status": "Success",
"accountid": 8877,
"city": "aaa",
"country": "IL",
"currency": "EUR",
"gamesessionid": "aaaaa",
"real_balance": 100,
"bonus_balance": 50,
"game_mode": 1,
"order": "cash_money, bonus_money",
"apiversion": "1.2"
}Error Codes
| Code | Status | Message |
|---|---|---|
| 1 | Technical error | Technical error |
| 1000 | Not logged on | Not logged on |
| 1003 | Authentication failed | Authentication failed |