Gets the available slots for a specific service.
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.