Is it possible to exclude OnRequest options from being returned in my search response?

OnRequest options: how to filter them

We've been working on providing the possibility of excluding from HotelX search query all those OnRequest options that may not be useful for you to receive in the response.

The field 'status' is received in the search response and has two possible result values: 'OK' and 'RQ'.

 

You can filter either of them using the filter StatusFilterInput.

 

 

TIP: We've also added the possibility to aggregate and apply business rules to this field.

To do this you'll have to add the ‘status’ or ‘notStatus’ to the primary key of the aggregation and preference plugins. Both plugins follow the same behaviour. You'll find more information at our developers resources