countries

Returns a list of available countries,

Country represents the highest level in our location tree. While we don't allow searches by country, this information is included for organizational purposes (to group destinations) and the country codes are used in other API operations, such as defining the sourceMarket, Nationality in the Availability function of the Hotel Booking API.

Countries API

GET /api/v1/hotel/content-api/locations/countries

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <Access token>

Accept-Encoding

gzip

Query Params

Name
Type
Description

syncId

string

<syncId>

Response

{
    "success": true,
    "data": {
        "syncId": "56f0073c97cbfb66578b006f909b7a4bf26067d9964d8e9c9dd4ef08f9bbcfee",
        "total": 221,
        "from": 1,
        "to": 221,
        "countries": [
            {
                "countryId": 100001,
                "countryName": "jordan",
                "isocode": "ZW",
                "phonecode": "+263"
            },
            {
                "countryId": 100002,
                "countryName": "nepal",
                "isocode": "NP",
                "phonecode": "+977"
            },
            {
                "countryId": 100004,
                "countryName": "France",
                "isocode": "FR",
                "phonecode": "+435"
            },
            {
                "countryId": 100005,
                "countryName": "morocco",
                "isocode": "MA",
                "phonecode": "+212"
            }
		]
	}
}	

Last updated