Available Appointment Times
Returns available appointment times for the employee group identified by group_id. from_date is required. to_date is optional; when omitted, availability is returned for from_date only. The range between from_date and to_date may not exceed 60 days.
/api/v2/appointments/group/:group_id/available-timesRequest
Response
spans=true response shape
For example, with a 15-minute interval, times of 08:00, 08:15, 08:30, and 08:45 collapse into a
single { "from": "…T08:00:00", "to": "…T08:45:00" } span (see the available_times
description above for what from/to mean exactly):
The two errors below can be returned by any Customer API endpoint that operates on a specific employee group
(group_id) — this endpoint, Appointment Times (Deprecated), Book an
Appointment, and Reschedule an Appointment.
They are checked before any endpoint-specific validation runs. Note the unusual response shape: these use status
and message fields, not the error_type/errors shape used elsewhere in the Customer API.
Employee Group Not Found (404)
Returned when group_id doesn't exist or belongs to a different company than the one that owns the API key. Group lookup is always scoped to the company that owns the API key.
Employee Group Not Active (400)
Returned when the group exists but has tour scheduling disabled.
Tour Type Not Enabled (400)
If the provided tour type is not enabled, a 400 error response will be returned.
Invalid Tour Type (400)
If the provided tour type is invalid, a 400 error response will be returned.
Date Range Exceeds 60 Days (400)
If the range between from_date and to_date exceeds 60 days, a 400 error response will be returned.
Cannot Book This Far Ahead (400)
If from_date is further ahead than the company's maximum booking window, a 400 error response will be returned. Note the error is keyed on to_date even though the offending value is from_date.
Invalid Date Range (400)
If the provided to_date is before the from_date, a 400 error response will be returned.
Missing Required Field (400)
If a required field such as from_date is missing in the request, a 400 error response will be returned.
Invalid Data Type (400)
If the provided data type is not valid, a 400 error response will be returned.