Open slot
An open slot automatically provides customers with a booking that is valid for a set amount of time.
The exact expiration date depends on the availability slot's open_slot
property.
Duration days
When a booking is valid for a set number of days after purchase, the open slot's type
property value is DURATION_DAYS
. The slot should contain a duration_days
property with the exact number of days.
In the example response below, the open slot is valid for 180 days after purchase:
{
[...],
"open_slot": {
"duration_days": 180,
"type": "DURATION_DAYS"
},
[...]
}
End date
When all bookings must expire on a specific date, the open slot's type
property value is END_DATE
. The slot must contain an end_date
property with the expiration date.
In the example response below, the open slot expires on 23 April 2023:
{
[...],
"open_slot": {
"end_date": "2023-04-23",
"type": "END_DATE"
},
[...]
}