GET hotels/{hotelId}/statistics/summary?key={key}&fromDate={fromDate}&toDate={toDate}

Gets a daily operational statistics-summary for the hotel specified on a specific date range

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

Start date for which to retrieve Statistics, Format YYYY-MM-DD

date

Required

toDate

End date for which to retrieve Statistics, Format YYYY-MM-DD

date

Required

Body Parameters

None.

Response Information

Resource Description

Collection of OperationalHistorySummary
NameDescriptionTypeAdditional information
Date

Date for this statistic

date

None.

AverageDailyRate

Average Rate on the selected day

decimal number

None.

Occupancy

Rooms occupied on the selected day

integer

None.

RevenuePerAvailableRoom

Room Revenue divided by number of rooms available on the selected date

decimal number

None.

RoomTypeOccupancies

Occupancy broken down by room type

Collection of RoomTypeOccupancy

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Date": "2024-11-21T11:06:58.7812539-08:00",
    "AverageDailyRate": 2.0,
    "Occupancy": 3,
    "RevenuePerAvailableRoom": 4.0,
    "RoomTypeOccupancies": []
  },
  {
    "Date": "2024-11-21T11:06:58.7812539-08:00",
    "AverageDailyRate": 2.0,
    "Occupancy": 3,
    "RevenuePerAvailableRoom": 4.0,
    "RoomTypeOccupancies": []
  }
]

application/xml, text/xml

Sample:
<ArrayOfOperationalHistorySummary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RoomKeyAPI.Models">
  <OperationalHistorySummary>
    <AverageDailyRate>2</AverageDailyRate>
    <Date>2024-11-21T11:06:58.7812539-08:00</Date>
    <Occupancy>3</Occupancy>
    <RevenuePerAvailableRoom>4</RevenuePerAvailableRoom>
    <RoomTypeOccupancies />
  </OperationalHistorySummary>
  <OperationalHistorySummary>
    <AverageDailyRate>2</AverageDailyRate>
    <Date>2024-11-21T11:06:58.7812539-08:00</Date>
    <Occupancy>3</Occupancy>
    <RevenuePerAvailableRoom>4</RevenuePerAvailableRoom>
    <RoomTypeOccupancies />
  </OperationalHistorySummary>
</ArrayOfOperationalHistorySummary>