List appointment openings
Lists regular and off-hours availability for a location and/or barber. Anonymous browse tokens and customer bearer tokens may use this operation.
Existing callers may provide duration to receive the deployed
regular-hours openings list. New booking callers provide a nonempty
serviceIds selection instead; the server derives the duration and current
service terms and returns legacy regular openings, exact
regularOffers, and disjoint offHoursQuotes for those services. When
both are included, serviceIds is authoritative: the server ignores
duration rather than validating it against the derived service duration.
Either a locationId or barberId is required. If a location is
not included and a barber is associated with multiple locations,
a single location is selected at random by the system. If a barber
is not included, a random barber is selected by the system.
Query Parameters
Limit openings to this specific location.
Either a locationId or barberId is required.
The unique, opaque system identifier for a resource.
This case-sensitive ID is also used as path parameters in URLs or in other
properties or parameters that reference a resource by ID rather than URL.
Limit openings to this specific barber.
Either a locationId or barberId is required.
The unique, opaque system identifier for a resource.
This case-sensitive ID is also used as path parameters in URLs or in other
properties or parameters that reference a resource by ID rather than URL.
Calculate legacy regular openings for this appointment duration.
Required when serviceIds is absent. Ignored when serviceIds is
present because the server derives duration from current service
terms.
Select the services for server-derived regular opening offers and off-hours quotes. The server owns their price, duration, eligibility, exact occurrence, and availability; callers provide identifiers only.
1 - 25 elementsThe unique, opaque system identifier for a resource. This case-sensitive ID is also used as path parameters in URLs or in other properties or parameters that reference a resource by ID rather than URL.
Response
Ok. The operation succeeded.
Available openings based on request parameters.
Regular-hours appointment opening times for the requested date. This
preserves the deployed string[] meaning; off-hours times never appear
in this list.
The starting time for an appointment opening time slot, in 24 hour time.
The number of regular-hours entries in openings. Off-hours quotes are
excluded to preserve deployed count semantics. This is derived and
immutable.
x >= 0The shop location for the appointment openings.
The barber for the appointment openings.
Short-lived exact regular-hours offers corresponding one-to-one with
openings. Present only for service-scoped requests. Each offer carries
the exact UTC occurrence and location time zone the customer may submit.
Short-lived off-hours quotes, disjoint from openings. Absent for
legacy duration-only requests.
The furthest calendar date a client may book, based on the barber's advance booking window. When absent, booking is not limited by an advance window.
^\d{4}-\d{2}-\d{2}$