Check Room Rates
The Check Room Rates API allows you to verify if the `moreResults` parameter is set to `true` in the Room Rates Results API's response. This API helps you retrieve the list of rooms for a specific hotel, along with their rates.
Check Room Rates Request
Method | URL |
---|---|
POST | https://das.hotel.demircode.net/HotelAPI/get_rate_rules |
Check Room Rates Elements
Element | Format | Description | Required |
---|---|---|---|
tokenId | String | Use the TokenId that was returned in the Hotel Search Results API's response. | REQUIRED |
productId | String | Use the productId that was returned in the Hotel Search Results API's response. | REQUIRED |
sessionId | String | Use the sessionId that was returned in the Hotel Search Results API's response. | REQUIRED |
rateBasisId | String | Unique room ID that identifies a specific room for which you want to proceed with the booking. | REQUIRED |
Sample Check Room Rates Request – Per Room Rate
{ "sessionId": "TVRVNE1Ua3lNVE15TWw4M05UVmZNVEkxTGprNUxqSTBNUzR5TkE9PV84NQ==", "productId": "trx102", "tokenId": "MjAyMDAzMTFfMV8yXzBfMTA0XzFjZWI3OTY5ZmEzYjRlZTJiYWI5ZDQ3OTljYjYyN2FjXzE1ODE5MjEzMjY=", "rateBasisId": "MTE=" }
Sample Check Room Rates Response – Per Book Rate
{ "sessionId": "TVRVNE1qSTJOelEzTVY4ME5UZGZNVEkxTGprNUxqSTBNUzR5TkE9PV8w", "hotelId": "882885", "tokenId": "HTB0zd1QyPEeR3oIpmVn", "roomRates": { "perBookingRates": [ { "productId": "trx101", "roomType": "STANDARD ROOM", "description": "STANDARD ROOM", "roomCode": "116574885", "fareType": "", "rateBasisId": "MTU3", "currency": "INR", "netPrice": "9961.28", "boardType": "Room Only", "maxOccupancyPerRoom": "4", "inventoryType": "prepaid", "cancellationPolicy": "If Cancellation done from 2020-04-16 17:30:01 Cancellation charge would be INR 8558.16|t|If Cancellation done from 2020-04-17 01:30:01 Cancellation charge would be INR 0", "roomImages": [], "facilities": [ "Wi-Fi", "Room Service", "Telephone", "Attached Bathroom", "Internet Access" ] } ] } }
Check Room Rates Response Elements
Element | Description |
---|---|
sessionId | Indicates the session ID for which the search results were requested. You must use this session ID for the next API request. |
tokenId | Use the TokenId that was returned in the Hotel Search Results API's response. |
hotelId | Unique hotel ID that identifies a specific hotel. This ID is assigned to the hotel. |
roomType | Name of this room as provided by the supplier. |
description | Description of this room as provided by the supplier. |
roomCode | Unique identifier provided by the supplier to identify the room. |
fareType | Indicates whether the room booking is Refundable or Non-Refundable. |
rateBasisId | Unique identifier provided by the supplier to identify the room. |
perBookingRates | Contains information about the rates applicable for a per booking pricing model from the supplier. This means the rates are based on the entire booking rather than a per room basis. |
productId | Unique ID of the supplier who returned the room rates. |
currency | A 3-character ISO code that indicates the currency in which the rate is returned by the supplier. |
netPrice | Total cost of the room after considering the base rate, discount amount, and taxes and fees. |
cancellation_policy | Contains a list of applicable cancellation penalties, including details about the penalty period and the penalties incurred for cancellations. |
boardBasis | Indicates the board type of the room. |
inventoryType | Specifies whether the payment is made at the web or at the hotel. |
roomImages | Contains all images related to the room. |
facilities | Lists the facilities available in the room. |
maxOccupancyPerRoom | Maximum occupancy of the room. |
Oda Fiyatlarını Kontrol Et
Oda Fiyatlarını Kontrol Et API'si, Oda Fiyatları Sonuçları API'sinin yanıtındaki `moreResults` parametresinin `true` olarak ayarlanıp ayarlanmadığını doğrulamanıza olanak tanır. Bu API, belirli bir otel için odaların listesini ve bunların fiyatlarını almanıza yardımcı olur.
Oda Fiyatlarını Kontrol Et İsteği
Yöntem | URL |
---|---|
POST | https://das.hotel.demircode.net/HotelAPI/get_rate_rules |
Oda Fiyatlarını Kontrol Et Elemanları
Eleman | Format | Açıklama | Gerekli |
---|---|---|---|
tokenId | String | Otel Arama Sonuçları API'sinin yanıtında döndürülen TokenId'yi kullanın. | GEREKLİ |
productId | String | Otel Arama Sonuçları API'sinin yanıtında döndürülen productId'yi kullanın. | GEREKLİ |
sessionId | String | Otel Arama Sonuçları API'sinin yanıtında döndürülen sessionId'yi kullanın | GEREKLİ |
rateBasisId | String | Belirli bir oda için rezervasyona devam etmek istediğinizde odayı tanımlayan benzersiz oda kimliği. | GEREKLİ |
Örnek Kontrol Oda Fiyatları Talebi - Oda Başına Ücret
{ "sessionId": "TVRVNE1Ua3lNVE15TWw4M05UVmZNVEkxTGprNUxqSTBNUzR5TkE9PV84NQ==", "productId": "trx102", "tokenId": "MjAyMDAzMTFfMV8yXzBfMTA0XzFjZWI3OTY5ZmEzYjRlZTJiYWI5ZDQ3OTljYjYyN2FjXzE1ODE5MjEzMjY=", "rateBasisId": "MTE=" }
Örnek Kontrol Oda Fiyatları Yanıtı - Kitap Başına Fiyat
{ "sessionId": "TVRVNE1qSTJOelEzTVY4ME5UZGZNVEkxTGprNUxqSTBNUzR5TkE9PV8w", "hotelId": "882885", "tokenId": "HTB0zd1QyPEeR3oIpmVn", "roomRates": { "perBookingRates": [ { "productId": "trx101", "roomType": "STANDARD ROOM", "description": "STANDARD ROOM", "roomCode": "116574885", "fareType": "", "rateBasisId": "MTU3", "currency": "INR", "netPrice": "9961.28", "boardType": "Room Only", "maxOccupancyPerRoom": "4", "inventoryType": "prepaid", "cancellationPolicy": "If Cancellation done from 2020-04-16 17:30:01 Cancellation charge would be INR 8558.16|t|If Cancellation done from 2020-04-17 01:30:01 Cancellation charge would be INR 0", "roomImages": [], "facilities": [ "Wi-Fi", "Room Service", "Telephone", "Attached Bathroom", "Internet Access" ] } ] } }
Oda Fiyatlarını Kontrol Et Yanıt Elemanları
Eleman | Açıklama |
---|---|
sessionId | Arama sonuçlarının istendiği oturum kimliğini belirtir. Bir sonraki API isteği için bu oturum kimliğini kullanmalısınız. |
tokenId | Otel Arama Sonuçları API'sinin yanıtında döndürülen TokenId'yi kullanın. |
hotelId | Belirli bir oteli tanımlayan benzersiz otel kimliği. Bu kimlik otele atanmıştır. |
roomType | Tedarikçi tarafından sağlanan bu odanın adı. |
description | Tedarikçi tarafından sağlanan bu odanın açıklaması. |
roomCode | Odayı tanımlamak için tedarikçi tarafından sağlanan benzersiz kimlik |
fareType | Oda rezervasyonunun İade Edilebilir/İade Edilemez olduğunu belirtir |
rateBasisId | Odayı tanımlamak için tedarikçi tarafından sağlanan benzersiz kimlik. |
perBookingRates | Tedarikçiden gelen bir rezervasyon başına fiyatlandırma modeli için geçerli olan fiyatlar hakkında bilgi içerir. Bu, fiyatların bir oda başına yerine, tüm rezervasyon için temel alındığı anlamına gelir. |
productId | Oda fiyatlarını döndüren tedarikçinin benzersiz kimliği. |
currency | Tedarikçi tarafından döndürülen fiyatın hangi para biriminde olduğunu belirten 3 karakterli ISO kodu. |
netPrice | Taban fiyat, indirim miktarı ve vergiler ve ücretler dikkate alındıktan sonraki toplam oda maliyeti. |
cancellation_policy | İptal cezaları hakkında bilgi içeren bir listeyi içerir, ceza dönemi ve iptaller için uygulanan cezalar hakkında ayrıntılar da dahil. |
boardBasis | Odanın yiyecek tipi belirtir. |
inventoryType | Ödemenin webde mi yoksa otelde mi yapıldığını belirtir. |
roomImages | Oda ile ilgili tüm resimleri içerir. |
facilities | Odada mevcut olan olanakların listesini içerir. |
maxOccupancyPerRoom | Odanın maksimum kapasitesi. |