Get a service's free windows for a day
Returns the availability windows still free on the given day: windows already booked, inside the lead time, on a blackout date, or clashing with the assigned user's connected calendar are left out. Send the `id` of the chosen window as `availabilityId` when creating the booking. A service from another company returns 404.
Returns the availability windows still free on the given day: windows already booked, inside the
lead time, on a blackout date, or clashing with the assigned user's connected calendar are left out. Send the
id of the chosen window as availabilityId when creating the booking. A service from another
company returns 404.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Path Parameters
The service to check.
Query Parameters
The day to check, as YYYY-MM-DD in the service's time zone.
dateHeader Parameters
Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.
^[0-9a-fA-F]{24}$Response Body
application/json
curl -X GET "https://example.com/bookings/services/string/availability?date=2019-08-24"[ { "assignedUserId": "string", "dayOfWeek": "FRIDAY", "endTime": "string", "id": "string", "startTime": "string", "timeZone": "string" }]Get a booking GET
Returns one booking: when it is, which service, who is assigned to it, the client's details with the CRM contact they were matched to, and their answers to the service's own form fields. A booking from another company returns 404.
List bookings GET
Lists the company's bookings, latest start first, 25 to a page. Narrow it with `from` and `to`, a `serviceId`, the `assignedUserId` of the company user assigned to them or a `status`. Without the `bookings.read.all` permission the list holds only bookings assigned to the caller; an API key sees every booking.