Countries

This method retrieves a list of countries that includes the country name, telephone code, and short country name in ISO3166-1 alpha2 and ISO3166-1 alpha3 formats. use gateway.[msdomain]

Please note, there is different response between versions, old version is deprecated and will be removed soon.

Request (GET)

/gateway/site-management/{version}/{brand_id}/countries

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 (if version below 1.29.15)

    [
  {
    "name": "Israel",
    "alfa2": "IL",
    "alfa3": "ISR",
    "phoneCode": "972"
  }
]

Status 200 (version 1.29.15 and above)

    {
  "country_list": [
    {
      "name": "Israel",
      "alfa2": "IL",
      "alfa3": "ISR",
      "phoneCode": "972"
    }
  ],
  "current_country": "IL"
}

Status 400

{
  "errMsg": "invalid input - invalid brand id"
}

Status 500

{
  "result": "internal server error"
}

Response Parameters:

Name Description
current_country ISO2 country code, will be taken from X-Forwarded-For header.
country_list.name Country full name.
country_list.alfa2 Country ISO2 representation.
country_list.alfa3 Country ISO3 representation.
country_list.phoneCode Country phone prefix.