Skip to main content

Hotel Code List API

This method returns the hotel codes available for search and hotel-detail requests.

πŸ“ Endpoint​

GET {BaseURL}/common/hotel/hotel-code-list
PropertyValue
URI{BaseURL}/common/hotel/hotel-code-list
MethodGET
Content-Typeapplication/json

πŸ” Authorization​

Basic Auth is required. Use the API credentials provided by MescoMg.

πŸ“‹ Query Parameters​

ParameterTypeDescription
countryIdStringOptional country identifier (CountryID) used to filter hotel codes

No request body is required.

The response contains a HotelCodes array. An empty array means that no matching hotel code was found.

πŸ“₯ Example Response​

{
"HotelCodes": [
23416,
23417,
23418,
23419
]
}