Currency by IP
This method returns a currency by player’s IP address, generally used before Registration to determine which currency to display to player upon registration.
Request (GET)
/gateway/currencies/{version}/currencyByIP/{brand_id}
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| version | path | string | true | The API version to use. |
| brand_id | path | int | true | The ID of the casino. If a brand_id is not provided, all message formats will be fetched from default storage. |
Response
Status 200
{
"status": "success",
"data": {
"isoCountryCode": "IL",
"isoCurrencyCode": "USD",
"symbol": "$"
}
}Status 400
{
"errMsg": "invalid input - invalid brand id"
}Status 400
{
"status": "failed",
"data": "currency not found, reason: reason"
}Status 500
{
"result": "internal server error"
}Response Parameters:
| Name | Description |
|---|---|
| status | indication if request was successful or not. |
| data.isoCountryCode | ISO2 country code, will be fetch from X-Forwarded-For header. |
| data.isoCurrencyCode | ISO3 currency code for this country. |
| data.symbol | currency symbol. |