Skip to main content

Create a visit

POST 

/rest/servicepoint/branches/:branchId/servicePoints/:servicePointId/visit/create

Create a visit

curl -u user:password -i -X POST -H 'content-type:application/json' -d '{"services":[{serviceOrigId}]}' http://localhost:8080/qsystem/rest/servicepoint/branches/{branchId}/servicePoints/{servicePointId}/visit/create/

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/qsystem/rest/servicepoint/branches/{branchId}/servicePoints/{servicePointId}/visit/create/

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/servicepoint/branches/{branchId}/servicePoints/{servicePointId}/visit/create

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/servicepoint/branches/{branchId}/servicePoints/{servicePointId}/visit/create

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/servicepoint/branches/{branchId}/servicePoints/{servicePointId}/visit/create

Request​

Responses​

A Json object of Visit