> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Sample Flows ## Article: Sample Flows ## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/sample-flows.md ## Article Content: # Sample Flows 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](https://dev.wix.com/docs/rest/business-solutions/bookings/end-to-end-booking-flows.md), including service selection, availability checks, booking creation, and payment for end-to-end flows. ## Book an appointment You can check availability for appointment-based services to help customers find and book suitable time slots. To book an appointment: 1. Call [Query Services](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/query-services.md) to identify the business time zone and relevant service ID. 1. Call [List Availability Time Slots](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/list-availability-time-slots.md) specifying `serviceId`, `timeZone`, `fromLocalDate`, and `toLocalDate` as filters. Save the relevant time slot details. 1. To obtain the selected slot's full capacity and booking-policy status, call [Get Availability Time Slot](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/get-availability-time-slot.md). Specify the selected slot's `localStartDate` and `localEndDate`. 1. Call [Create Booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/create-booking.md) to complete the booking. ## Book a class session You can check availability for class sessions to help customers find and book available spots. To book a class session: 1. Call [Query Services](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/query-services.md) to identify the business time zone and relevant service ID. 1. Call [List Event Time Slots](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/time-slots-v2/list-event-time-slots.md) specifying `serviceId`, `timeZone`, `fromLocalDate`, `toLocalDate`, and the number of `openSpots` the customer intends to book as filters. Save the `eventId` from the selected time slot. 1. To obtain the selected slot's full capacity and booking-policy status, call [Get Event Time Slot](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/get-event-time-slot.md). Specify `eventId` to get detailed information about the class session. 1. Call [Create Booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/create-booking.md) to complete the booking. ## Check availability for multi-service bookings You can check availability for multiple services in sequence to help customers book comprehensive service packages. To check availability for multi-service bookings: 1. Call [Query Services](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/query-services.md) with filter `?type=APPOINTMENT` to identify the business time zone and relevant service IDs. 1. Call [List Multi Service Availability Time Slots](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/time-slots-v2/list-multi-service-availability-time-slots.md) specifying the sequence of `serviceIds`, `timeZone`, `fromLocalDate`, `toLocalDate`, and `location` as filters. Use `bookable: true` to get only bookable slots and `cursorPaging.limit: 100` for pagination. 1. To obtain the selected multi-service slot's full capacity and booking-policy status, call [Get Multi Service Availability Time Slot](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/time-slots-v2/get-multi-service-availability-time-slot.md). Specify the exact `localStartDate` and `localEndDate` values from the selected slot. 1. Call [Create Multi Service Booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/create-multi-service-booking.md) to complete the booking.