Skip to main content

How to limit options through Business Rules

What are the Business Rules that I can incorporate into my requests?💡

  1. CHEAPER_AMOUNT: The cheapest options is returned without exceeding the optionsQuota limit.

  2. ROOM_TYPE: It groups the option by room type without exceeding the optionsQuota limit.

    limit_and_filter_1

info

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?🛠️

To configure Business Rules in your Search Query, simply include the BusinessRulesInput in your request settings:

limit_and_filter_2

tip

You can also configure your own Business Rules implementing our Aggregation plugin. More information on Business Rules on our API Documentation.

Additional considerations on Business Rules✔️

Please note that we filter options by utilizing a limited combination of room types:

  1. 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.

  2. 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.

info
Have any doubts or inquiries? Our amazing Customer Care team is just a ticket away. Reach out to them via Tickets, and they will be more than happy to help you out 🚀