Conditions

Conditions for the rate to apply.

Example:

{
    ...
    "conditions": {
        "dates": [
            {
                "min": "2022-05-01",
                "max": "2022-05-03"
            }
        ],
        "occupancy": {
            "adults": {
                "min": 2,
                "max": 2
            },
            "childrenAges": [
                {"max": 3},
                {"max": 7}
            ]
        }
    },
    ...
}

Field

Required

Type

Restrictions

Description

dates

Yes

Object[]

The date range of the stay. A DateRange list.

occupancy

Yes

Object

Guests. The Occupancy model.

days

No

Object

The length of the stay, in days. An allowed value of NumberRange.

weekdays

No

Object[]

Days of the week. Possible values:

  • mon;
  • tue;
  • wed;
  • thu;
  • fri;
  • sat;
  • sun.

Note

Don't include the check-out day in the conditions.

For example, the booking conditions for a one-day stay (days: 1) with check-in on October 1, 2022, and check-out on October 2, 2022, should have dates set to this value:

"dates": [
    {
        "min": "2022-10-01",
        "max": "2022-10-01"
    }
]

The weekdays field doesn't limit the check-out day.

Previous