Game restrictions info
Request
URI: /gameRestrictionsInfo
Example usage: https://{back_url}/gameRestrictionsInfo?{parameters}
The request is executed using the GET
method.
This method is used to obtain data related to country and currency restrictions.
Response parameters
Name | Type | Required | Description |
---|---|---|---|
data | array | Yes | Data on blocked, restricted countries and available currencies |
data.gameId | integer | Yes | Game ID |
data.blockedCountries | array | Yes | List of countries where the game is blocked in ISO 3166-2 |
data.restrictedCountries | array | Yes | List of countries in which the game is restricted in ISO 3166-2 |
data.availableCurrencies | array | Yes | List of available currencies for the game in ISO 4217 |
errors | object | No | Description of errors in case status = false |
errors.error | string | No | Error description |
Example of a successful response
Response: /gameRestrictionsInfo
{
"data": [
{
"gameId": 123,
"blockedCountries": ["IT", "US", "FR",],
"restrictedCountries": ["IT", "US", "FR",],
"availableCurrencies": ["USD", "EUR", "CAD",]
},
{
"gameId": 1242,
"blockedCountries": ["IT", "US", "FR",],
"restrictedCountries": ["IT", "US", "FR",],
"availableCurrencies": ["USD", "EUR", "CAD",]
}
]
}
Example of an unsuccessful response
Response: /gameRestrictionsInfo
{
"errors": {
"error": "Description"
}
}