> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anny.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Minimum and Maximum Selection

> Define how many units of a booking option can be booked at minimum or maximum per order.

With minimum and maximum selection you control, per booking option, how many units can be selected at minimum or maximum within an order. This way you map group rules and quantity limits directly into the booking flow.

## How does minimum and maximum selection work?

You define an individual minimum and/or maximum value for each booking option. These values are checked directly during booking:

* If the selected quantity is **below the min. selection**, the order cannot be completed.
* If the selected quantity is **above the max. selection**, that number is prevented in the booking flow.

The limits always apply per booking option and per order. Each booking option can have its own values, independent of other options of the same service.

## When do I use this?

* **You offer group rates**: make sure a booking is only possible from a certain number of people (e.g. group trip from 6 people).
* **You want quantity limits per order**: limit how many tickets or spots a single person can book at once.
* **You have minimum order quantities**: prevent single bookings for offers that are only worthwhile from a certain quantity.
* **Not suitable for**: global booking limits per time period. Use booking rules instead (**Account settings** → **Booking rules**).

## Relationship with other features

* **Booking rules**: while minimum/maximum selection controls the quantity per individual order, booking rules limit the total number of bookings per time period account-wide.
* **Booking quotas**: quotas limit the total available quantity of a booking option. Min/max selection, by contrast, controls how much of it may be booked in a single order.

## Settings & options

| Setting (admin)          | Description                      |
| ------------------------ | -------------------------------- |
| Min. selection per order | Minimum number for a valid order |
| Max. selection per order | Maximum allowed number per order |

You find the settings under **Resources** → booking option → **Advanced settings**.

<Tip>
  Both fields are optional. You can set only a minimum or only a maximum, without defining the other value.
</Tip>

## Practical examples

<AccordionGroup>
  <Accordion title="A diving center sells group trips from 6 people">
    A diving center offers group trips that are only worthwhile from 6 people. A maximum of 20 people can take part.

    <Steps>
      <Step title="Open the booking option">
        Open **Resources** → the relevant resource → booking option **Group Trip**.
      </Step>

      <Step title="Open Advanced settings">
        Scroll to **Advanced settings**.
      </Step>

      <Step title="Set the min. and max. selection">
        Set **Min. selection per order** to **6** and **Max. selection per order** to **20**.
      </Step>

      <Step title="Save">
        Click **Save**. Customers can now only book the group trip for 6 to 20 people.
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="A yoga studio limits drop-in tickets to max. 3 per order">
    A yoga studio wants to prevent a person from booking more than 3 drop-in spots at once.

    <Steps>
      <Step title="Open the booking option">
        Open **Resources** → the relevant resource → booking option **Drop-In**.
      </Step>

      <Step title="Open Advanced settings">
        Scroll to **Advanced settings**.
      </Step>

      <Step title="Set the max. selection">
        Set **Min. selection per order** to **1** and **Max. selection per order** to **3**.
      </Step>

      <Step title="Save">
        Click **Save**. A maximum of 3 drop-in tickets can now be booked per order.
      </Step>
    </Steps>
  </Accordion>
</AccordionGroup>

## FAQ

<AccordionGroup>
  <Accordion title="Do the limits apply per booking option or per service?">
    Per booking option. If you have several booking options on a service, each can have its own min/max values.
  </Accordion>

  <Accordion title="What happens if I set only a minimum?">
    Then there is no upper limit (except the resource's available capacity). Conversely, only a maximum without a minimum means bookings can start from 1 unit.
  </Accordion>

  <Accordion title="Do customers see an error message when they violate the limit?">
    Yes. If the selection is below the minimum, the order cannot be completed. If it is above the maximum, the input is prevented in the booking flow.
  </Accordion>

  <Accordion title="Does this also work for free booking options?">
    Yes. Min/max selection is independent of whether the booking option has a price or not.
  </Accordion>
</AccordionGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="The min/max setting has no visible effect">
    Check whether the booking option shows a quantity selection in the booking flow at all. For booking options with a weight of 1 and no quantity selection, the fields have no effect.
  </Accordion>

  <Accordion title="Customers can still book fewer than the minimum">
    Make sure you applied the setting to the correct booking option. The limits apply per booking option, not per service or resource.
  </Accordion>

  <Accordion title="I cannot find the fields in the settings">
    The fields are under **Advanced settings** within the respective booking option. Scroll down in the booking option configuration.
  </Accordion>
</AccordionGroup>

> Important information for agents:
>
> * UI path: **Resources** → booking option → **Advanced settings** → Min. selection per order / Max. selection per order
> * The limits apply per booking option, NOT globally per service or resource.
> * Only effective with multiple bookings (weight > 1 or quantity booking). For booking options with a weight of 1 and no quantity selection, the fields have no visible effect.
> * Distinction: Min/max selection ≠ booking rules. Booking rules limit the total number per time period account-wide. Min/max limit the quantity per individual order.
> * Distinction: Min/max selection ≠ booking quotas. Quotas limit the total available quantity. Min/max control the quantity per order.
> * Available in all plans.
