Search for locations
Query Parameters
nearest_arrival, cheapest_price [nearest_arrival - First available arrival(based on today's date) if no arrival date is provided. cheapest_price - sort based on cheapest price]
if provided, it will fetch the location priorities based on this segmentId.if not provided, but segments are used, it will use the priority configured on the location level instead and sort the location based on that
if provided, it will sort the location priorities in the given direction. if not provided, it will sort the location priorities in ascending order. Possible : LOCATION_PRIORITY_ASC, LOCATION_PRIORITY_DESC.
LOCATION_PRIORITY_ASCLOCATION_PRIORITY_DESCBody Parameters
If the user pass the distributionChannel id in the request then the data will be filtered based on the provided id else the distributionChannel id will be taken from the token. If no distributionChannel id is passed neither the token contains the distributionChannel id valid error message will be thrown.
The date on which customer/guest will arrive. Date should be added using ISO 8601 standard(yyyy-MM-dd)
The duration for which a user will stay at the accommodationtype and the duration should be passed in days ex: 7.
Filter options can be used to filter the aggregations which are provided in the search response apart from the result field. The possible filter options are 'arrivals', 'departures', 'locations', 'accommodationKinds' and 'amenities'.If a user is passing these filter options then all the possible amenities , departures and arrivals available for the requested criteria are displayed in response.
Show child attributes
Unique code associated with offer on the bases of which accommodationtype is to be filtered
The details of the person accommodated in an accommodationtype
Show child attributes
List of location ids passed to fetch accommodationtypes which belong to the provided locations
Show child attributes
The number of pets accommodated in the accommodationtype
List of amenity ids which are linked to the accommodationtype
Show child attributes
List of accommodation kind ids corresponding to which the accommodationtypes are to be fetched
Show child attributes
An option to return the counts of the different filteroptions
Region id passed to fetch locations which belong to the provided region
An option to return the accommodationtypes in the response or not
Date margin to search other possible stays (arrival dates and durations) when the requested stay is not available.
This parameter can be used together with the dateMargin parameter and will define how the alternatives are provided. The possible options are ARRIVAL_DATE which creates alternatives based on different arrival and departure dates but keeps the same duration. DURATION gives alternatives with a longer or shorter period. ARRIVAL_DATE_AND_DURATION which gives alternatives with different arrival and departure dates and also shorter or longer durations. In case this parameter is not used it ...
ARRIVAL_DATEDURATIONARRIVAL_DATE_AND_DURATIONDURATION_AND_ARRIVALLoyalty points can be redeemed to get discounts, arrival date and duration are required to calculate the loyalty price. The number of points is not linked to the available number of points for a certain customer, this will be checked in the reservation proposal call. Incase only the possibilities for a certain customer should be returned, the current point balance can be fetched using {customer loyalty balance endpoint url here} and the value can be provided in this request parameter.