Ana içeriğe geç

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
ÖzellikDeğer
URI{BaseURL}/common/hotel/hotel-code-list
MethodGET
Content-Typeapplication/json

🔐 Yetkilendirme​

Basic Auth zorunludur. MescoMg tarafından sağlanan API kimlik bilgilerini kullanın.

📋 Query Parametreleri​

ParametreTipAçıklama
countryIdStringOtel 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]
}