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
| Property | Value |
|---|---|
| URI | {BaseURL}/common/hotel/hotel-code-list |
| Method | GET |
| Content-Type | application/json |
π Authorizationβ
Basic Auth is required. Use the API credentials provided by MescoMg.
π Query Parametersβ
| Parameter | Type | Description |
|---|---|---|
countryId | String | Optional 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
]
}