This method is deprecated.
Deprecated. Get Service Availability has been replaced with Time Slots SDK methods and will be removed on March 31, 2026. Depending on your service type, use the appropriate Time Slots API to replace it. See the End-to-End Booking Flows for implementation examples.
Note: location in the slot object is not yet available to all sites.
Service availability means different things for the different service types (SDK | Velo):
AvailabilityOptions or within the default time frame if no options are specified.AvailabilityOptions or within
the default time frame if no options are specified.AvailabilityOptions or within the default time frame if no options are specified.To understand how getServiceAvailability() is used in a typical booking lifecycle,
see Typical Booking Lifecycle (SDK | Velo).
The specified serviceId must be an ID from the site's Bookings/Services
collection. Typically, you retrieve the ID from the collection using a
query or through a dataset.
Optionally, you can specify an AvailabilityOptions
object that defines a date range for which slots should be returned. If you
do not specify an AvailabilityOptions object, the
default date range is from the date and time the method is called until one
week later.
The ID of the service for which to check slot availability.
Options that refine which slots should be returned.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.