Skip to main content
GET
List appointment openings for a date interval

Query Parameters

locationId
string
required

Limit openings to this specific location. 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.

barberId
string

When included, limit openings to this specific barber. 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.

duration
string<duration>

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.

serviceIds
string[]

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.

Required array length: 1 - 25 elements

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.

dates
string
required

Limit openings to the calendar dates in this range. The range names both its start and end dates and covers at most 31 calendar dates. A date range, supporting inclusive or exclusive endpoints. Dates ranges use dates expressed in YYYY-MM-DD RFC 3339 date format. The value may have the following forms:

  • YYYY-MM-DD match the date exactly; equivalent to matching dates in the range [YYYY-MM-DD,YYYY-MM-DD]
  • [YYYY-MM-DD,YYYY-MM-DD] between two dates, inclusive of the endpoints
  • (YYYY-MM-DD,YYYY-MM-DD) between two dates, exclusive of the endpoints
  • [YYYY-MM-DD,] on or after the date
  • (YYYY-MM-DD,) after the date
  • [,YYYY-MM-DD] before or on the date
  • (,YYYY-MM-DD) before the date

Examples:

  • '2022-05-19'
  • '[2022-05-01,2022-05-31]'
  • '[2022-05-01,2022-06-01)'
  • '[2022-05-19,]'
  • '(2022-05-19,)'
  • '[,2022-05-19]'
  • '(,2022-05-19)'.
Maximum string length: 24
Pattern: ^(\d{4}-\d{2}-\d{2}|[\[(](\d{4}-\d{2}-\d{2},(\d{4}-\d{2}-\d{2})?|,\d{4}-\d{2}-\d{2})[)\]])$

Response

Ok. The operation succeeded.

Appointment openings grouped by calendar date over a requested interval. Every date in the interval appears exactly once; a date with no openings has an empty openings list and a count of zero.

items
object[]
required

One entry per calendar date in the requested interval.

count
integer<int16>
required

The number of dates in the interval. This is derived and immutable.

Required range: x >= 0
location
object
required

The shop location for the appointment openings.

barber
object
required

The barber for the appointment openings.

bookableThrough
string

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.

Pattern: ^\d{4}-\d{2}-\d{2}$