Create a visit
POST/rest/entrypoint/branches/:branchId/entryPoints/:entryPointId/visits
Create a visit
curl -u user:password -i -X POST -H 'content-type:application/json' -d '{"services":[{serviceOrigId}]}' http://localhost:8080/rest/entrypoint/branches/{branchId}/entryPoints/{entryPointId}/visits
Create a visit with a temporary customer
curl -u user:password -i -X POST -H 'content-type:application/json' -d '{"services":[{serviceOrigId}],"parameters":{"customers":"Jane Doe","primaryCustomerFirstName":"Jane","primaryCustomerLastName":"Doe","primaryCustomerEmail":"jane@doe.com","primaryCustomerPhoneNumber":"+4673456789","primaryCustomerDateOfBirth":"2020-01-01"}}' http://localhost:8080/rest/entrypoint/branches/{branchId}/entryPoints/{entryPointId}/visits
Arrive an appointment. Appointment language in custom property "lang" will be copied to the visit
curl -u user:password -i -X POST -H "Content-Type: application/json" -d '{"appointmentId":{appointmentId}}' http://localhost:8080/rest/entrypoint/branches/{branchId}/entryPoints/{entryPointId}/visits
Arrive an appointment and override appointment language
curl -u user:password -i -X POST -H "Content-Type: application/json" -d '{"appointmentId":{appointmentId}, "parameters":{"lang":"{language code}"}}' http://localhost:8080/rest/entrypoint/branches/{branchId}/entryPoints/{entryPointId}/visits
Arrive an appointment and add extra services at the same time
curl -u user:password -i -X POST -H "Content-Type: application/json" -d '{"appointmentId":{appointmentId},"services":[{serviceOrigId},{serviceOrigId}]}' http://localhost:8080/rest/entrypoint/branches/{branchId}/entryPoints/{entryPointId}/visits
Request
Responses
- 201
A Json object of Visit