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

Gets all the configured rates by 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

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-21T17:59:29.2397022-08:00",
    "RoomType": "sample string 2",
    "Rates": []
  },
  {
    "Date": "2024-11-21T17:59:29.2397022-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-21T17:59:29.2397022-08:00</Date>
    <Rates />
    <RoomType>sample string 2</RoomType>
  </RoomTypeRates>
  <RoomTypeRates>
    <Date>2024-11-21T17:59:29.2397022-08:00</Date>
    <Rates />
    <RoomType>sample string 2</RoomType>
  </RoomTypeRates>
</ArrayOfRoomTypeRates>