1. Help Center
  2. Buying on TravelgateX
  3. Hotel-X Development/Booking Flow: Search

How to exclude OnRequest options from my Search response

All about filtering OnRequest options in SearchRS

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

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



You can filter either of them using the filter StatusFilterInput.


Here it is a Query example:



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

In order to do this, just 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