Hotel Detail API
Bu yöntem, bir veya daha fazla otelin public statik detaylarını döndürür.
📍 Endpoint
GET {BaseURL}/common/hotel/hotel-detail
| Özellik | Değer |
|---|---|
| URI | {BaseURL}/common/hotel/hotel-detail?hotelCodes={hotelCodes} |
| 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 |
|---|---|---|
hotelCodes | String | Virgülle ayrılmış MescoGo otel kodları |
Request body gerekmez. Query parametresinde tam olarak küçük harfli hotelCodes adını kullanın.
İstenen otel kodlarının hiçbiri eşleşmezse başarılı yanıt aynı yapıyı boş HotelDetails dizisiyle korur:
{
"Status": {
"Code": "200",
"Description": "Successful"
},
"HotelDetails": []
}
📥 Örnek Response
{
"Status": {
"Code": "200",
"Description": "Successful"
},
"HotelDetails": [
{
"HotelCode": 26090,
"HotelName": "Certification Property",
"Description": "",
"HotelFacilities": [
"Express Check-in/Check-out",
"Nightclub/DJ",
"Outdoor pool",
"Restaurant",
"Room service",
"Safe",
"Sauna",
"Shoeshine",
"Bar",
"Laundry",
"Breakfast",
"Street parking",
"Private Check-in/Check-out"
],
"Attractions": "",
"Images": [],
"Address": "1 Example Street, Sample City",
"PinCode": "",
"CityId": "148",
"CountryName": "Turkey",
"PhoneNumber": "+10000000000",
"FaxNumber": "",
"Map": "0.00000|0.00000",
"HotelRating": 5,
"CityName": "Istanbul",
"CountryCode": "TR",
"CheckInTime": "",
"CheckOutTime": ""
}
]
}
Örnek veri notu: Yukarıdaki adres, telefon ve harita değerleri sentetik ve açıklama amaçlıdır. Bunları canlı tesis verisi olarak değerlendirmeyin.