x
D E M İ R C O D E

Room Rates

The Room Rates API allows you to retrieve a list of rooms for a specific hotel along with their respective rates.

Room Rates Request

Method URL
POST https://das.hotel.demircode.net/HotelAPI/get_room_rates

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
hotelId String Unique hotel ID that identifies a specific hotel for which you want to obtain the list of room options along with their room rates. You can obtain the hotel ID from the `hotelId` field in the Hotel Search Results API's response. REQUIRED

Sample Room Rates Request

{
  "sessionId":"TVRVNE1qSTJOVEExTlY4ek1URmZNVEkxTGprNUxqSTBNUzR5TkE9PV8w",
  "productId":"trx101",
  "tokenId":"IP8Z2AeBKGrnVvi6Hdbq",
  "hotelId":"882885"
}
        

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.

Sample Room Rates Response

{
  "sessionId": "TVRVNE1qSTJOVEExTlY4ek1URmZNVEkxTGprNUxqSTBNUzR5TkE9PV8w",
  "hotelId": "882885",
  "tokenId": "IP8Z2AeBKGrnVvi6Hdbq",
  "roomRates": {
    "perBookingRates": [
      {
        "productId": "trx101",
        "roomType": "STANDARD ROOM",
        "description": "STANDARD ROOM",
        "roomCode": "4686615",
        "fareType": "Non-Refundable",
        "rateBasisId": "MTA1",
        "currency": "INR",
        "netPrice": "1834.3",
        "boardType": "Room Only",
        "maxOccupancyPerRoom": "4",
        "inventoryType": "prepaid",
        "cancellationPolicy": "Cancellation will not be possible from 2020-02-21 11:50:43|t|If Cancellation done from 2020-04-19 01:30:00 Cancellation charge would be INR 1834.3",
        "roomImages": [],
        "facilities": [
          "Wi-Fi",
          "Room Service",
          "Telephone",
          "Attached Bathroom",
          "Internet Access"
        ]
      },
      {
        "productId": "trx101",
        "roomType": "STANDARD ROOM",
        "description": "STANDARD ROOM",
        "roomCode": "4686615",
        "fareType": "Non-Refundable",
        "rateBasisId": "MTA2",
        "currency": "INR",
        "netPrice": "2055.58",
        "boardType": "Room Only",
        "maxOccupancyPerRoom": "4",
        "inventoryType": "prepaid",
        "cancellationPolicy": "If Cancellation done between Current date and 2020-04-18 01:29:59 Cancellation charge would be INR 2055.58|t|Cancellation will not be possible from 2020-04-18 01:30:00|t|If Cancellation done from 2020-04-19 01:30:00 Cancellation charge would be INR 2055.58",
        "roomImages": [],
        "facilities": [
          "Wi-Fi",
          "Room Service",
          "Telephone",
          "Attached Bathroom",
          "Internet Access"
        ]
      },
      {
        "productId": "trx101",
        "roomType": "STANDARD ROOM",
        "description": "STANDARD ROOM",
        "roomCode": "4686615",
        "fareType": "Non-Refundable",
        "rateBasisId": "MTA3",
        "currency": "INR",
        "netPrice": "2445.49",
        "boardType": "Breakfast",
        "maxOccupancyPerRoom": "4",
        "inventoryType": "prepaid",
        "cancellationPolicy": "Cancellation will not be possible from 2020-02-21 11:50:43|t|If Cancellation done from 2020-04-19 01:30:00 Cancellation charge would be INR 2445.49",
        "roomImages": [],
        "facilities": [
          "Wi-Fi",
          "Room Service",
          "Telephone",
          "Attached Bathroom",
          "Internet Access"
        ]
      },
      {
        "productId": "trx101",
        "roomType": "STANDARD ROOM",
        "description": "STANDARD ROOM",
        "roomCode": "4686615",
        "fareType": "Non-Refundable",
        "rateBasisId": "MTA4",
        "currency": "INR",
        "netPrice": "2740.06",
        "boardType": "Breakfast",
        "maxOccupancyPerRoom": "4",
        "inventoryType": "prepaid",
        "cancellationPolicy": "If Cancellation done between Current date and 2020-04-18 01:29:59 Cancellation charge would be INR 2740.06|t|Cancellation will not be possible from 2020-04-18 01:30:00|t|If Cancellation done from 2020-04-19 01:30:00 Cancellation charge would be INR 2740.06",
        "roomImages": [],
        "facilities": [
          "Wi-Fi",
          "Room Service",
          "Telephone",
          "Attached Bathroom",
          "Internet Access"
        ]
      },
      {
        "productId": "trx101",
        "roomType": "Room Standard",
        "description": "Room Standard",
        "roomCode": "131376885",
        "fareType": "Non-Refundable",
        "rateBasisId": "MTA5",
        "currency": "INR",
        "netPrice": "2348.73",
        "boardType": "Room Only",
        "maxOccupancyPerRoom": "2",
        "inventoryType": "prepaid",
        "cancellationPolicy": "If Cancellation done from 2020-03-18 21:30:01 Cancellation charge would be INR 2348.73",
        "roomImages": [],
        "facilities": [
          "Wi-Fi",
          "Room Service",
          "Telephone",
          "Attached Bathroom",
          "Internet Access"
        ]
      }
    ]
  }
}
        

Oda Fiyatları

Oda Fiyatları API'si, belirli bir otel için odaların listesini ve bunların fiyatlarını almanızı sağlar..

Oda Fiyatları İsteği

Method URL
POST https://das.hotel.demircode.net/HotelAPI/get_room_rates

Oda Fiyatları 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İ
hotelId String Belirli bir oteli tanımlayan benzersiz otel kimliği. Oda seçenekleri ve oda fiyatları listesini almak istediğiniz oteli tanımlar. Otel kimliğini Otel Arama Sonuçları API'sinin yanıtındaki `hotelId` alanından alabilirsiniz GEREKLİ

Örnek Oda Fiyatları Talebi

{
  "sessionId":"TVRVNE1qSTJOVEExTlY4ek1URmZNVEkxTGprNUxqSTBNUzR5TkE9PV8w",
  "productId":"trx101",
  "tokenId":"IP8Z2AeBKGrnVvi6Hdbq",
  "hotelId":"882885"
}
        

Oda Fiyatları 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.

Örnek Oda Fiyatları Yanıtı

{
  "sessionId": "TVRVNE1qSTJOVEExTlY4ek1URmZNVEkxTGprNUxqSTBNUzR5TkE9PV8w",
  "hotelId": "882885",
  "tokenId": "IP8Z2AeBKGrnVvi6Hdbq",
  "roomRates": {
    "perBookingRates": [
      {
        "productId": "trx101",
        "roomType": "STANDARD ROOM",
        "description": "STANDARD ROOM",
        "roomCode": "4686615",
        "fareType": "Non-Refundable",
        "rateBasisId": "MTA1",
        "currency": "INR",
        "netPrice": "1834.3",
        "boardType": "Room Only",
        "maxOccupancyPerRoom": "4",
        "inventoryType": "prepaid",
        "cancellationPolicy": "Cancellation will not be possible from 2020-02-21 11:50:43|t|If Cancellation done from 2020-04-19 01:30:00 Cancellation charge would be INR 1834.3",
        "roomImages": [],
        "facilities": [
          "Wi-Fi",
          "Room Service",
          "Telephone",
          "Attached Bathroom",
          "Internet Access"
        ]
      },
      {
        "productId": "trx101",
        "roomType": "STANDARD ROOM",
        "description": "STANDARD ROOM",
        "roomCode": "4686615",
        "fareType": "Non-Refundable",
        "rateBasisId": "MTA2",
        "currency": "INR",
        "netPrice": "2055.58",
        "boardType": "Room Only",
        "maxOccupancyPerRoom": "4",
        "inventoryType": "prepaid",
        "cancellationPolicy": "If Cancellation done between Current date and 2020-04-18 01:29:59 Cancellation charge would be INR 2055.58|t|Cancellation will not be possible from 2020-04-18 01:30:00|t|If Cancellation done from 2020-04-19 01:30:00 Cancellation charge would be INR 2055.58",
        "roomImages": [],
        "facilities": [
          "Wi-Fi",
          "Room Service",
          "Telephone",
          "Attached Bathroom",
          "Internet Access"
        ]
      },
      {
        "productId": "trx101",
        "roomType": "STANDARD ROOM",
        "description": "STANDARD ROOM",
        "roomCode": "4686615",
        "fareType": "Non-Refundable",
        "rateBasisId": "MTA3",
        "currency": "INR",
        "netPrice": "2445.49",
        "boardType": "Breakfast",
        "maxOccupancyPerRoom": "4",
        "inventoryType": "prepaid",
        "cancellationPolicy": "Cancellation will not be possible from 2020-02-21 11:50:43|t|If Cancellation done from 2020-04-19 01:30:00 Cancellation charge would be INR 2445.49",
        "roomImages": [],
        "facilities": [
          "Wi-Fi",
          "Room Service",
          "Telephone",
          "Attached Bathroom",
          "Internet Access"
        ]
      },
      {
        "productId": "trx101",
        "roomType": "STANDARD ROOM",
        "description": "STANDARD ROOM",
        "roomCode": "4686615",
        "fareType": "Non-Refundable",
        "rateBasisId": "MTA4",
        "currency": "INR",
        "netPrice": "2740.06",
        "boardType": "Breakfast",
        "maxOccupancyPerRoom": "4",
        "inventoryType": "prepaid",
        "cancellationPolicy": "If Cancellation done between Current date and 2020-04-18 01:29:59 Cancellation charge would be INR 2740.06|t|Cancellation will not be possible from 2020-04-18 01:30:00|t|If Cancellation done from 2020-04-19 01:30:00 Cancellation charge would be INR 2740.06",
        "roomImages": [],
        "facilities": [
          "Wi-Fi",
          "Room Service",
          "Telephone",
          "Attached Bathroom",
          "Internet Access"
        ]
      },
      {
        "productId": "trx101",
        "roomType": "Room Standard",
        "description": "Room Standard",
        "roomCode": "131376885",
        "fareType": "Non-Refundable",
        "rateBasisId": "MTA5",
        "currency": "INR",
        "netPrice": "2348.73",
        "boardType": "Room Only",
        "maxOccupancyPerRoom": "2",
        "inventoryType": "prepaid",
        "cancellationPolicy": "If Cancellation done from 2020-03-18 21:30:01 Cancellation charge would be INR 2348.73",
        "roomImages": [],
        "facilities": [
          "Wi-Fi",
          "Room Service",
          "Telephone",
          "Attached Bathroom",
          "Internet Access"
        ]
      }
    ]
  }
}
        

Yeni nesil Flight API900+ Havayolu Markası