Breadcrumb
- Hotel Availability
- Request
- Use Cases
- Sort Products
Sort Products
Sort Products
The sort order for the products in the response can be controlled by using the @sortProducts request parameter.
Parameter | Description | Type |
---|---|---|
sortProducts | Specifies how the response results should be sorted. Values: Product, RoomsThenRates, RatesThenRooms | String |
Settings:
- Product - The products are returned based on the sort order settings in SynXis CR.
- RoomsThenRates - The results will be sorted by Rooms first then by Rates as configured in SynXis CR.
- RatesThenRooms - The results will be sorted by Rates first then by Rooms as configured in SynXis CR.
Sample Request
/v1/api/hotel/availability?hotelId=13098&chainId=12723&adults=2&startDate=2022-12-17&endDate=2022-12-20&numRooms=1&primaryChannel=WEB&secondaryChannel=WEB&sortProducts=RatesThenRooms