Skip to main content

Get a list of available timeslots for branch, service and date

GET 

/calendar-backend/public/api/v1/branches/:branchPublicId/services/:servicePublicId/dates/:date/times

Get a list of available timeslots for branch, service and date.

IMPORTANT! The time objects returned are in the local timezone of the specified Branch! So if a slot is booked at 14:00 UTC in the appointments table, but the Branch is -0400, the slot at 10:00 will be occupied in the context of this method.

Optionally, one can supply an extra query parameter: numberOfCustomers=N where N is the total number of customers on the appointment. This is used when calculating the total required timeslot length for the appointment. If omitted, it defaults to 1. If set to 0, it uses 1 customer anyway.

Example:

curl -X GET
http://localhost:8080/calendar-backend/public/api/v1/branches/40a7c211673fd4a184079c30f72b5ed73e918879743d8c84c5d5e0f9ccfa7bb6/services/2ece52f608495568a4cf135969b51a18775d20c90f801e3ea70b559a69a7a36d/dates/2024-04-25/times?numberOfCustomers=2

Request​

Responses​

A Json list of String A Set of times in HH:mm format, where each one defines a bookable start time for an appointment that's available given Capacities, Blocks and existing Appointments on Resources.