GetAllAvailability() returns the availability and rates for all units/groups for a date range and number of adults. This is useful for finding the prices for available stays.
If the business has groups configured, then the results will be per group ('groups'). Otherwise the results will be per unit ('units').
Availability is defined as a unit having not being rented, occupied or under repair and that is ready to be rented to guests.
The start_date, end_date and the dates in between are dates of stay, not the check_in and check_out dates of a possible itinerary. Use GetQuote() to get availability for an itinerary.
REQUEST
End Point https://availabilityexchange.com/gateway/GetAllAvailability Parameters business_id (64-bit integer) unique id of the business. start_date (date YYYY-MM-dd) the first date requested end_date (date YYYY-MM-dd) the last date requested num_adults (32-bit integer) the number of guests
response_errors (See Response Errors) unit_group_id (32-bit integer) the unique identifier for the group. unit_group_name (string) name of the group number_of_units (32-bit integer) number of units within the group that are available for the given date range. business_id (64-bit integer) the business start_date (date YYYY-MM-dd) the first date returned end_date (date YYYY-MM-dd) the last date returned num_adults (32 -bit integer) the number of guests rate (32-bit float) sum of each day's rate. Zero if there is no availability. This does not include taxes and fees.
response_errors (See Response Errors) unit_id (32-bit integer) the unique identifier for the unit. unit_name (string) name of the unit. unit_is_available (boolean) if the unit is available for the date range. business_id (64-bit integer) the business start_date (date YYYY-MM-dd) the first date returned end_date (date YYYY-MM-dd) the last date returned num_adults (32 -bit integer) the number of guests rate (32-bit float) sum of each day's rate. Zero if there is no availability. This does not include taxes and fees.
{ "unit_id": 27796, "capacity": 0, "query_start": "2021-09-15", "query_end": "2021-09-01", "availability": null, "response_errors": [ "The start date is after the end date" ] }