Skip to main content

Confirm an appointment

POST 

/calendar-backend/public/api/v1/branches/appointments/:publicAppointmentId/confirm

Confirm an appointment.

Confirm a previously reserved appointment identified by the provided publicAppointmentId.

Request body is a BookingInformationDTO that wraps an optional title, notes and a nested Customer object. Typically, one would either supply a fully populated Customer object for a new customer, a Customer with a populated publicId for an already identified customer or using the setting-defined 'mapping field' (externalId, customerNumber).

Example with existing customer publicId:

curl -X POST -H 'Content-Type: application/json'
-d '{
"title":"Meeting",
"notes":"",
"custom":"{\"phoneNumber\":\"46716036116\",\"notificationType\":\"sms\",\"appId\":\"generic\"}",
"customer":{
"publicId":"828e247c573535d951568fada893ba9122cbfbb3e3cdda04fe5cae1d812e7df8"
}'
http://localhost:8080/calendar-backend/public/api/v1/branches/appointments/0a26f744ab4bbbd17a5e56f4dabbf68a7c7193d6e5fce7089453530ada64c94b/confirm
}

Example with new customer details:

curl -X POST -H 'Content-Type: application/json'
-d '{
"title":"Meeting",
"notes":"",
"custom":"{\"phoneNumber\":\"46716036116\",\"notificationType\":\"sms\",\"appId\":\"generic\"}",
"customer":{
"firstName":"Charles",
"lastName":"Ryder",
"email":"charles.ryder@brideshed.org",
"phone":"+4411111111",
"dateOfBirth":"1904-07-11",
"addressLine1":"38 Great James Street",
"addressZip":"WC1",
"addressCity":"London",
"addressCountry":"UK"
}
}'
http://localhost:8080/calendar-backend/public/api/v1/branches/appointments/0a26f744ab4bbbd17a5e56f4dabbf68a7c7193d6e5fce7089453530ada64c94b/confirm

Request​

Responses​

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