# BookingRule

## Fields

| Field | Description | Type | Min/max | Notes |
|  --- | --- | --- | --- | --- |
| [BookingRules](/connectivity/docs/api-reference/bookingrules)/`BookingRule` | Booking rule details. | object | 0..* | - |
| `BookingRule`/`@MinAdvancedBookingOffset` | Minimum amount of time in advance the room must be booked, relative to midnight (24:00 CE(S)T) on the day of check-in. The search date is counted as one of the days in the restriction length. | `P[0-9]+(Y | M | D |
| `BookingRule`/`@MaxAdvancedBookingOffset` | Maximum amount of time in advance the room can be booked, relative to midnight (24:00 CE(S)T) on the day of check-in. The search date is counted as one of the days in the restriction length. | `P[0-9]+(Y | M | D |
| `BookingRule`/`@ReleaseTimeOfDayStart` | Specifies the time of the day the room can start being booked. | HH:MM | 0..1 | Time intervals of 15 minutes starting at midnight.  For example: 10:15. |
| `BookingRule`/`@ReleaseTimeOfDayEnd` | Specifies the time of the day the room can no longer be booked. | HH:MM | 0..1 | Time intervals of 15 minutes starting at midnight.  For example: 21:30 |


## XML


```xml
<BookingRule
  MinAdvancedBookingOffset="P5H" />
<BookingRule
  MaxAdvancedBookingOffset="P14D" />
<BookingRule ReleaseTimeOfDayStart="10:00"/>
<BookingRule ReleaseTimeOfDayEnd="14:15"/>
```

## Related endpoints

* [/ota/OTA_HotelProductNotif](/connectivity/docs/ota-hotelproductnotif)