Skip to main content

Business Rules

Discover how specific Business Rules can strategically optimize your Search requests, ensuring efficient and targeted results. Below are key rules designed to refine and tailor your searches effectively.

OptionsQuota

The optionsQuota limits the maximum number of options per board (meal plan) returned in the Search response. It accepts values from 1 to 300, with 300 as the default.

You can configure optionsQuota at the request level or as a default setting in API Settings at the general, connection, client, or access level. Note that some Suppliers may have internal limitations, which may be lower than the default optionsQuota value. If you exceed the maximum optionsQuota allowed, you will receive a warning in the response:

"warnings" : [
{
"code" : "WRONG_FIELD",
"type" : "VALIDATION_ERROR",
"description" : "Access: 'xxx' Maximum optionsQuota allowed(200) has been exceeded, you are sending 300"
}
]

Business Rules Types

The businessRulesType is used for filtering options based on your specific needs. There are 2 types:

  • CHEAPER_AMOUNT: Returns the cheapest options without exceeding the optionsQuota limit.
  • ROOM_TYPE: Groups options by room type without exceeding the optionsQuota limit.

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

tip

You can also configure your own Business Rules by implementing our Aggregation plugin. For further details, check out our API Documentation. 🚀

Additional Considerations

When applying Business Rules, options are filtered using a limited combination of room types:

  1. Grouping by Room Type: First, options with the same room type/classification are grouped together (e.g., Standard-Standard-Standard or Junior-Junior-Junior).
  2. Combining Cheapest Options: Subsequently, the cheapest rooms are combined 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 applied when the number of returned options surpasses the optionsQuota. However, if no Business Rules are specified, the default CHEAPER_AMOUNT rule will be applied.