GET hotels/{hotelId}/statistics/prices?key={key}&date={date}&rateId={rateId}&roomTypeId={roomTypeId}

Gets all the configured rates of a room type on a specific date

Request Information

URI Parameters

NameDescriptionTypeAdditional information
hotelId

Hotel-Id => checked against the calling applications permissions

string

Required

key

API - Key identifying the caller

string

Required

date

Date for which to retrieve the rates, Format YYYY-MM-DD

date

Required

rateId

Id of the rate to retrieve

integer

Required

roomTypeId

Id of the Roomtype to retrieve rates for

integer

Required

Body Parameters

None.

Response Information

Resource Description

Array of RoomTypeRates

Collection of RoomTypeRates
NameDescriptionTypeAdditional information
Date

Date for this statistic

date

None.

RoomType

Name of the Room Type

string

None.

Rates

List of all RateCodes and their status for the selected date

Collection of RoomTypRatePrices

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Date": "2024-11-21T10:42:06.8288462-08:00",
    "RoomType": "sample string 2",
    "Rates": []
  },
  {
    "Date": "2024-11-21T10:42:06.8288462-08:00",
    "RoomType": "sample string 2",
    "Rates": []
  }
]

application/xml, text/xml

Sample:
<ArrayOfRoomTypeRates xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RoomKeyAPI.Models">
  <RoomTypeRates>
    <Date>2024-11-21T10:42:06.8288462-08:00</Date>
    <Rates />
    <RoomType>sample string 2</RoomType>
  </RoomTypeRates>
  <RoomTypeRates>
    <Date>2024-11-21T10:42:06.8288462-08:00</Date>
    <Rates />
    <RoomType>sample string 2</RoomType>
  </RoomTypeRates>
</ArrayOfRoomTypeRates>