GET hotels/{hotelId}/eres/prices?key={key}&fromDate={fromDate}&toDate={toDate}

Gets all the configured rates by room type on a specific date range (max. 60 days)

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

fromDate

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

date

Required

toDate

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 EresRoomTypeRates
NameDescriptionTypeAdditional information
Date

Date for this statistic

date

None.

RoomType

List of all RateCodes and their status for the selected date

Collection of EresRoomType

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Date": "2024-11-21T07:09:03.8629326-08:00",
    "RoomType": []
  },
  {
    "Date": "2024-11-21T07:09:03.8629326-08:00",
    "RoomType": []
  }
]

application/xml, text/xml

Sample:
<ArrayOfEresRoomTypeRates xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RoomKeyAPI.Models">
  <EresRoomTypeRates>
    <Date>2024-11-21T07:09:03.8629326-08:00</Date>
    <RoomType />
  </EresRoomTypeRates>
  <EresRoomTypeRates>
    <Date>2024-11-21T07:09:03.8629326-08:00</Date>
    <RoomType />
  </EresRoomTypeRates>
</ArrayOfEresRoomTypeRates>