Skip to main content

Get available appointment dates for branch and service

GET 

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

Get available appointment dates for branch and service.

Returns unique dates according to the Resource availability, capacities and capacity blocks of the specified branch and service.

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.

Example:

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

Request​

Responses​

A Json list of dates as yyyy-MM-dd strings.