Hotel Code List API
Bu yöntem, search ve hotel-detail isteklerinde kullanılabilen otel kodlarını döndürür.
📍 Endpoint
GET {BaseURL}/common/hotel/hotel-code-list
| Özellik | Değer |
|---|---|
| URI | {BaseURL}/common/hotel/hotel-code-list |
| Method | GET |
| Content-Type | application/json |
🔐 Yetkilendirme
Basic Auth zorunludur. MescoMg tarafından sağlanan API kimlik bilgilerini kullanın.
📋 Query Parametreleri
| Parametre | Tip | Açıklama |
|---|---|---|
countryId | String | Otel kodlarını filtrelemek için opsiyonel ülke tanımlayıcısı (CountryID) |
Request body gerekmez.
Yanıt bir HotelCodes dizisi içerir. Boş dizi, eşleşen otel kodu bulunmadığını gösterir.
📥 Örnek Response
{
"HotelCodes": [23416, 23417, 23418, 23419]
}