Slots
A slot is a bookable start time at a venue. Each slot carries:time— start time in the venue’s local time,HH:MM, aligned on the venue’sslot_interval(typically every 30 minutes).out_of_hours—truewhen the slot starts outside the posted opening hours. Booking it applies the venue’s surcharge rate, exposed asout_of_hours_surcharge_percenton the Venue object.available_capacity— how many bookings can still start at this slot, i.e.min(free rooms, free qualified therapists). A venue with several treatment rooms can take several simultaneous bookings on the same slot.
timezone field on the parent Venue to convert a
slot to an absolute instant if you need one.
How slots are computed
A start time is returned as available only if all of the following are true:- The venue is deployed on that date (recurring schedule or one-time opening).
- The slot falls within the venue’s daily
opening_time…closing_time(widened when the venue allows out-of-hours bookings). - The slot respects the treatment’s
lead_timeand the venue’s minimum booking notice from “now”. - A treatment room with sufficient capacity is free for the full duration,
including the venue’s
room_turnover_buffer_minutes. - At least one therapist is on shift, qualified for the treatment (skills),
not already booked, and not blocked by the
inter_venue_buffer_minutestravel buffer. - The slot does not fall inside a blocked time range configured by the venue (lunch break, maintenance, etc.).
slot_interval and the therapist skill filter is not applied. When you query
for a specific variant, its duration and the required skills of its treatment
are used — so variant availability is always a subset of the venue’s.
Because availability depends on live data, a slot returned here may be taken by
another customer before a booking is made. Always re-check at booking time and
handle conflicts gracefully.
Querying a date range
Passfrom and to (up to 62 days) instead of date to get back the list of
days that have at least one bookable slot — ideal for painting a month
calendar before drilling into a specific day.