Business Rules for Efficient Option Filtering
What are the business rules that I can incorporate into my requests?💡
- CHEAPER_AMOUNT: The cheapest options is returned without exceeding the optionsQuota limit.
- ROOM_TYPE: It groups the option by room type without exceeding the optionsQuota limit.
The optionsQuota makes reference to the maximum number of options per mealplan returned in search response.
How can I set up business rules in my requests?🛠️
Additional considerations on Business Rules✔️
Please note that we filter options by utilizing a limited combination of room types:
- Initially, we group options with the same room type/classification together. For instance, you may receive options like Standard-Standard-Standard-Standard or Junior-Junior-Junior-Junior.
- Subsequently, we combine the cheapest rooms with the remaining ones, ensuring that duplicates are checked and the options do not exceed the specified optionsQuota limit.
If a Buyer specifies a businessRules value, it will be implemented when the number of returned options surpasses the optionsQuota. However, if the Buyer does not provide any businessRules values, the default businessRules of CheaperAmount will be applied.
Have any doubts or questions? Don't hesitate to get in touch with our amazing Customer Care team via Tickets and they'll be happy to assist you⭐🚀