Skip to main content

Create an Appointment Reservation (appointment in status 10) for the given arguments

POST 

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

Create an Appointment Reservation (appointment in status 10) for the given arguments. A /confirm of this appointment must be sent within 10 minutes of the call to /reserve, otherwise the reservation is discarded and the timeslot for the selected resource becomes available again.

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.

http://localhost:8080/calendar-backend/public/api/v1/branches/, http://localhost:8080/calendar-backend/public/api/v1/services/ could be used to find the publicIds.

Example:

curl -u user:password -i -X POST -H 'content-type: application/json' http://localhost:8080/calendar-backend/public/api/v1/branches/{branchPublicId}/services/{servicePublicId}/dates/{date}/times/{time}/reserve

Example:

http://localhost:8080/calendar-backend/public/api/v1/branches/aab504e1427abd602e1b9c0805284a923bd832d9f043d6e91fa2e3c855985538/services/0947a7e6f3227769a0b5b4d5ce895072753e10da2bb132b7ea9e79afa412f315/dates/2017-02-13/times/16:25/reserve

Request​

Responses​

A Json object of com.qmatic.qp.calendar.rest.dto.AppointmentDTO