This article presents possible use cases and corresponding sample flows for using add-ons with Bookings services. While the Add-Ons API supports multiple business domains, these flows focus on the current Bookings implementation and provide a useful starting point as you plan your implementation.
You can offer additional products or extend the duration of service bookings by creating add-ons and organizing them into new groups.
To create bookable add-ons for a new group:
filter and save the relevant service ID.id.
Repeat for all add-ons you want to create.serviceId and the add-on IDs in the desired order in the addOnIds array.Create add-ons and add them to existing groups to expand customer options.
To add bookable add-ons to an existing group:
filter and save the relevant service ID.id and addOnIds array.If a customer has already added a booking to their Wix eCommerce cart and wants to modify the add-ons, you can update the cart to change, add, or remove add-ons before checkout.
To modify add-ons in eCommerce carts:
catalogReference.catalogItemId, which is identical to the corresponding booking ID.booking.bookedEntity.slot object.
For courses, save the schedule ID from the schedule object instead.
You may also want to save the booking.bookedAddOns array, allowing you to highlight existing selections later on.maxNumberOfAddOns and addOns array.
For each add-on in the group's addOns array, save its maxQuantity value.maxNumberOfAddOns.maxQuantity.slot object (or schedule ID for courses), and the updated addOns array.When the customer navigates to their cart page, they see the updated add-ons for their booking.