Statistics Aggregated by Number of Days between the Booking and the Day of Arrival

Base Url

https://ba-dev.seekda.com/hotels/:hotel_id/reservation_summaries/per_arrival_offset.json

Parameters

ParameterMandatoryDescriptionExample
hotel_idhotel code (part of the URL)
startDatethe start date for the interval returned, defaults to 2 years ago from current date
endDatethe start date for the interval returned, defaults to current date
keythe date which is used as key and filter for start or end date, defaults to timestamp of booking, allowed: dayOfArrival, dayOfDeparture
keyFormatthe format for the aggregated key (intended for easier debugging), defaults to milliseconds since 1970, allowed: date (date object)
basethe time interval to be aggregated, defaults to aggregation per day, allowed: w (per week), m (per month), q (per quarter), y (per year), t (total, only one value for the complete period request, note that in this case the timestamp returned is meaningless)

Result

...