---
title: "Booking rules"
canonical: "https://maestrel-resource-center.refined.site/space/HD/33521825/Booking%20rules"
format: markdown
---
> Macro (excerpt)
> 
> Booking rules for HBook – set arrival/departure days, minimum/maximum stay and advanced rules like special-rates, discounts or coupon usage in Maestrel’s WordPress plugin.

You will find the page of the **Booking rules** in the menu **HBook > Booking rules.** Booking rules are optionals. There are 5 types of Booking rules.


![booking-rules.jpg](media://0b70ea7b-6ef5-4e07-9341-edcc84112d65)

1. [Check-in days](https://maestrel.atlassian.net/wiki/spaces/HD/pages/33521825/Booking+rules#allowed-check-in-out): define on which days customers are allowed to check-in.
2. [Check-out days](https://maestrel.atlassian.net/wiki/spaces/HD/pages/33521825/Booking+rules#allowed-check-in-out): define on which days customers are allowed to check-out.
3. [Minimum stays](https://maestrel.atlassian.net/wiki/spaces/HD/pages/33521825/Booking+rules#minimum-maximum-stay): define the minimum length of a stay.
4. [Maximum stays](https://maestrel.atlassian.net/wiki/spaces/HD/pages/33521825/Booking+rules#minimum-maximum-stay): define the maximum length of a stay.
5. [Advanced booking rules](https://maestrel.atlassian.net/wiki/spaces/HD/pages/33521825/Booking+rules#advanced-booking-rules): define advanced rules to create compulsory settings for stays, special rates, discounts or coupons.


---

## > Macro (anchor)

Allowed check-in and check-out days

With the **Allowed check-in days** and **Allowed check-out days**, you can indicate on which days your customers can arrive and leave. It can be set according to season and accommodation.

![booking-rules-changeover.png](media://85ed95ec-1513-44c0-9006-8436427a8a59)


<u>**Examples of set-up for the allowed check-in and checkout days**</u>

> ℹ️ **Example 1 - Changeover day on Saturday all year round for all accommodation types**
> ℹ️ 
> ℹ️ ![rules-example1.png](media://522ff263-0e96-4275-868c-b477f0f64009)

> ℹ️ **Example 2 - Different check-in and check-out days depending on seasons**
> ℹ️ 
> ℹ️ ![rules-example2.png](media://a338cf2a-348c-404e-b3f7-3d40ee0d22ad)


---

## > Macro (anchor)

Minimum and maximum stay

With the **Minimum stay** and **Maximum stay**, you can indicate the minimum number of nights and the maximum number of nights allowed. It can be set according to season and accommodation.

![booking-rules-length.png](media://ae62201b-5b83-4b63-8529-5372eeff5581)

![booking-rules-max-length.png](media://2e87f1d6-402e-4051-8c31-4d1258d64f4d)


<u>**Examples of set-up for minimum and maximum stays**</u>

> ℹ️ **Example 1 - Seasonal minimum stays**  
> ℹ️ Different minimum stays depending on the season (7 nights minimum stay on "Summer" season and 2 nights the rest of the year)
> ℹ️ 
> ℹ️ ![rules-example3.png](media://bd5796af-db6d-4a6d-9f70-9f92f6dabf6f)

> ℹ️ **Example 2 - Different minimum stays according to accommodation type**
> ℹ️ 
> ℹ️ Minimum stay depending on accommodation type and season
> ℹ️ 
> ℹ️ ![rules-example4.png](media://02056483-0e01-4513-8b37-6af3f8198f68)

> ℹ️ **Example 3 - Maximum stays**
> ℹ️ 
> ℹ️ ![rules-example5.png](media://60b922cb-a313-42ec-af78-8f275f1e071d)


---

## > Macro (anchor)

Advanced booking rules

This is a powerful feature that will enable you to define settings conditionally. It has two different aims.

- to define the conditions for various booking situation that can not be set using only the settings above
- to define the conditions of discounts and coupons


There are 5 types of advanced rules:

1. **Compulsory:** if the booking request has a check-in day that falls in one of the check-in days set in the rule, then the booking request must comply with the rule.
2. **Special rate:** if the booking request follows the rule, a **special rate** is applied. You will indicate the rate for that rule in the **Rates** page
3. **Compulsory and special rate:** this rule is **both** a compulsory rule and a special rate rule.
4. **Discount:** if the booking request follows the rule, then a **discount** is applied. You will indicate the type of discount (percentage or fixed amount) and its value in **[HBook > Rates > Discount](https://maestrel.atlassian.net/wiki/spaces/HD/pages/33423630/Rates#discounts)**.
5. **Coupon :** if the booking request follows the rule and the customer enter a valid coupon, a discount is applied. You will indicate the type of discount (percentage or fixed amount) and its value in** ****[HBook > Rates > Coupons](https://maestrel.atlassian.net/wiki/spaces/HD/pages/33423630/Rates#coupons)**.


#### <u>Step 1: Create an advanced booking rule</u>

To create an advanced rule, click on **Add rule**.

![create-booking-rules.png](media://5b58858b-d224-4976-8adf-96479c08314a)


#### <u>Step 2: Set the attributes of the new rule</u>

![advanced-rule-1.png](media://c95bb9ee-d928-4910-8f98-dd6906fc5f74)

1. Enter the **name** of the rule
2. Select the **rule type**
3. Select one or several **check-in** day(s)
4. Select one or several **check-out** day(s)
5. Enter a **minimum stay** if applicable
6. Enter a **maximum stay** if applicable
7. Select for which **accommodation type** this rule is for. This parameter will be displayed only for the advanced booking rules of type “Compulsory” and “Compulsory and Special rate”. For the other rule types, the seasons, and accommodation types are selected directly when entering the rates in the **Rates **page.
8. Select for which **season** this rule is for. This parameter will be displayed only for the advanced booking rules of type “Compulsory” and “Compulsory and Special rate”. For the other rule types, the seasons, and accommodation types are selected directly when entering the rates in the **Rates **page.
9. Click **Save**


<u>**Examples of advanced booking rules**</u>

> ℹ️ **Example 1 - Fixed length stay for specific check-in day (Compulsory check-out on following Friday if check-in on Monday)**
> ℹ️ 
> ℹ️ ![rules-example6.png](media://197a3f66-1df2-4883-a106-1be756b68c30)

> ℹ️ **Example 2 - Discounts for more than 10-night stays and for more than 30-night stays**
> ℹ️ 
> ℹ️ ![rules-example7.png](media://fa78af9f-7721-4cc6-a6b6-983477a32db1)

> ℹ️ **Example 3 - Coupons with conditions: only valid for stays between 3 and 7 nights**
> ℹ️ 
> ℹ️ ![rules-example8.png](media://f4e762ab-3254-442f-be24-1b809df908dd)