Get a list of available appointment times/slots for the selected branch, service and date
GET/api/v1/branches/:branchPublicId/services/:servicePublicId/dates/:date/times
Get a list of available appointment times/slots for the selected 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 -u user:password -i -X GET http://localhost:8080/calendar-backend/public/api/v1/branches/{branchPublicId}/services/{servicePublicId}/dates/{date}/times
Request
Responses
- 200
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.