We are excited to announce the new Bookings API. Using the Bookings API you can create a custom booking experience for the services you offer on your site.
For example, you can use the Bookings API to create a class schedule, where users first choose the day they want to take a class and are then presented with the classes that are available on that day.
How does it work?
The Bookings API consists of two functions that can be used in conjunction with the Bookings collections.
getServiceAvailability( ) - Use this function to find out which slots are still available for a service and then present those slots to your users.
checkoutBooking( ) - Use this function once users have selected one of the available slots you presented to them. This function will book the selected service and process payments for the service if necessary.
To learn more about the Bookings API, see the API Reference.
Services - Information about the services you offer.
Schedule - Information about each service's schedule.
Staff - Information about your staff members.
To learn how to use the Bookings API in a typical bookings flow, see Creating a Custom Bookings Experience.
Keep an eye out for more articles and examples about the Bookings API coming soon.