This article provides sample flows focusing on the technical details of retrieving availability for appointment-based services and classes. See our complete step-by-step overview of the full booking process, including service selection, availability checks, booking creation, and payment for end-to-end flows.
You can check availability for appointment-based services to help customers find and book suitable time slots.
To book an appointment:
serviceId, timeZone, fromLocalDate, and toLocalDate as filters. Save the relevant time slot details.localStartDate and localEndDate.You can check availability for class sessions to help customers find and book available spots.
To book a class session:
serviceId, timeZone, fromLocalDate, toLocalDate, and the number of openSpots the customer intends to book as filters. Save the eventId from the selected time slot.eventId to get detailed information about the class session.You can check availability for multiple services in sequence to help customers book comprehensive service packages.
To check availability for multi-service bookings:
?type=APPOINTMENT to identify the business time zone and relevant service IDs.serviceIds, timeZone, fromLocalDate, toLocalDate, and location as filters. Use bookable: true to get only bookable slots and cursorPaging.limit: 100 for pagination.localStartDate and localEndDate values from the selected slot.