Traveller's Choice Hotel API
  • 🚩Getting Started with Hotel API
  • πŸ•ΈοΈUnderstanding the API structure
  • πŸ”‘Authentication API
    • Access token
  • πŸ“šHotel Content API
    • Content API
      • Hotels Master
        • Hotels API
        • Hotel detail API
      • Location Master
        • countries
        • States
        • Cities
        • Areas
      • Types Master
        • Room Types Master
          • Room Types API
          • Room Types Detail API
        • Board Type Master
          • Board Types API
          • Board Types Detail API
        • Accommodation Type Master
          • Accommodation Types API
          • Accommodation Type Detail API
        • Chains Master
          • Chains API
          • Chain Detail API
        • Amenities Master
          • Amenities API
          • Amenity Detail API
        • Amenity Group Master
          • Amenity group API
          • Amenity Group Detail API
      • πŸ”„Sync Id
  • 🏨Hotel Booking API
    • Booking API
      • Availability APIs
        • MinRate Availability API
        • Availability API
      • Check Rate API
      • Booking APIs
        • Create a Booking - API
        • Booking Details API
        • Cancel Booking API
  • πŸ•΅οΈTest cases
    • Booking API
  • Webhook
  • Errors
    • Token Error
Powered by GitBook
On this page
  1. Hotel Content API
  2. Content API
  3. Location Master

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"
            }
		]
	}
}	

PreviousLocation Master NextStates

Last updated 7 months ago

πŸ“š