Confirms a multi-customer appointment
POST/calendar-backend/public/api/v2/branches/appointments/:publicAppointmentId/confirm
Confirms a multi-customer appointment. It is possible to confirm both multi- and single-service appointments. It is also possible to confirm with a different number of customers than that provided in the reservation, but this will not affect the time allocated for the reservation.
Example:
curl -i -X POST -H "Content-Type: application/json" -d '{
"customers": [
{"publicId":"828e247c573535d951568fada893ba9122cbfbb3e3cdda04fe5cae1d812e7df8"},
{"publicId":"402db65843b5db4167ff96e77170df96b23777c0318eef9328ccb58fcffd05c9"}
]
}'
http://localhost:8080/calendar-backend/public/api/v2/branches/appointments/fb8323a5a4f44c975d96f54d0988cb3aef553614654b0d26d20533aad9cfb761/confirm
Appointment can override default notification settings specified in the notification module Information required to override notification settings should be provided within "custom" section of the json.
Example:
http://localhost:8080/calendar-backend/public/api/v2/branches/appointments/fb8323a5a4f44c975d96f54d0988cb3aef553614654b0d26d20533aad9cfb761/confirm
Body:
{"title":"appointment","notes":"","custom1":"","customers":[{"id":48,"firstName":"test","lastName":"test2","cardNumber":null,
"properties":{"publicId":"c5c43ab737075241b63ff2615e23dbbbc1b18c1b42cf0216809b32612cfd7b95","customField4":"","phoneNumber":"","created":1486452222927,"email":"",
"customField5":"c5c43ab737075241b63ff2615e23dbbbc1b18c1b42cf0216809b32612cfd7b95"}}],
"custom":"{\"phoneNumber\":\"46716036116\",\"notificationType\":\"sms\",\"appId\":\"generic\"}"}
Request
Responses
- 201
A Json object of com.qmatic.qp.calendar.rest.dto.AppointmentDTO