Check free time
get_availabilityReal free time for one offering. Slots mode returns start times; sessions mode returns classes with seats left; period mode (rentals) checks from/to and units left. Always call this instead of guessing from opening hours. Use it before create_hold, once the user has picked an offering and a day; it reserves nothing. Not for the business's weekly hours (those are in get_business).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Window end (slots, sessions) or return time (period). ISO 8601. With an offset it is absolute; without an offset it is local time of the business (e.g. 2026-09-18T15:00). | |
| qty | No | Units to rent (period mode). Default 1. | |
| from | Yes | Window start (slots, sessions) or pickup time (period). ISO 8601. With an offset it is absolute; without an offset it is local time of the business (e.g. 2026-09-18T15:00). | |
| options | No | Extras the user chose, from the offering's `options` in get_business: [{"id":"deep_conditioning","value":true}]. `value` is true/false for yes-no extras, a number for quantities, a string for choices. Leave out to book without extras. | |
| party_size | No | How many people the booking is for. Default 1; offerings with a larger minimum group need it set. | |
| offering_id | Yes | The service, class or rental to check: offerings[].offering_id from get_business or search_businesses | |
| resource_id | No | Only this staff member, room or unit: an id from the `resources` of an earlier answer |