Work order and planning API for installers
From a service request to a signed work report, through the same steps the office takes in EVORIV: log the request, make a work order, find a free moment, plan it, confirm it to the customer and fetch the signed work report.
In short
POST /service-requests logs a request, POST /work-orders turns it into a work order, GET /technician-availability shows free time per technician, POST /work-orders/{id}/plan plans it under EVORIV's scheduling rule, POST /work-orders/{id}/confirm-appointment sends the confirmation after a preview the person approves, and GET /work-orders/{id}/work-report/pdf returns the signed work report.
Before you start
- The workspace needs the Operations App; without it these endpoints answer 409 with reason app_not_installed.
- Creating, planning and confirming is office work: the key's person needs the Operations office role or must be a workspace admin.
- Confirming the appointment and sending the work report email the customer. They need a key with the send scope next to write.
1. Read the Operations setup
curl https://api.evoriv.com/api/dev/v1/operations -H "Authorization: Bearer $EVORIV_API_KEY"
# { "data": { "you": { "office": true, ... },
# "workTypes": [{ "key": "maintenance", "label": { "en": "Maintenance", "nl": "Onderhoud" }, "defaultMinutes": 60 }],
# "technicians": [{ "userId": "9d3e5f7a-...", "name": "Sanne de Vries", "technician": true }] } }2. Log a service request
Exactly as New service request in EVORIV: numbered, status new, in the office's list to plan. The customer is a company (companyId) or a private person (contactId with asPrivatePerson). preferredMoment is written into the description.
curl -X POST https://api.evoriv.com/api/dev/v1/service-requests \
-H "Authorization: Bearer $EVORIV_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: portal-melding-2291" \
-d '{
"title": "Heat pump makes a loud noise",
"companyId": "6f1c2b9e-4a6d-4b8e-9a51-0c3d2e7f1a24",
"priority": "high",
"source": "phone",
"preferredMoment": "Tuesday morning"
}'
# -> { "data": { "serviceRequestId": "...", "number": "...", "status": "new", ... } }3. Create the work order
From a service request the customer, installation and description come along and the request becomes converted. With technicianUserId and plannedStart it is planned at once. Nothing is sent to the customer.
curl -X POST https://api.evoriv.com/api/dev/v1/work-orders \
-H "Authorization: Bearer $EVORIV_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: wo-from-melding-2291" \
-d '{ "serviceRequestId": "<serviceRequestId>", "workType": "repair" }'
# -> { "data": { "workOrderId": "...", "status": "draft", ... } }4. Find a free moment
Free time per technician per day, in the workspace's time zone, honouring working hours, absences and planned work, plus the first free times the planning board itself would suggest. Availability does not include travel time.
curl "https://api.evoriv.com/api/dev/v1/technician-availability?from=2026-11-24&to=2026-11-28&workOrderId=<workOrderId>" \
-H "Authorization: Bearer $EVORIV_API_KEY"
# { "data": { "timeZone": "Europe/Amsterdam", "durationMinutes": 60,
# "technicians": [{ "userId": "9d3e5f7a-...", "name": "Sanne de Vries",
# "days": [{ "date": "2026-11-24", "free": [{ "local": "08:00-11:30", "minutes": 210, ... }] }] }],
# "suggestions": [{ "technicianUserId": "9d3e5f7a-...", "local": "2026-11-24 08:00", ... }] } }5. Plan the work order
EVORIV's scheduling rule checks the technician's appointments, other planned work, absences and moments customers chose. An overlap is refused and nothing changes, unless the person explicitly chose to plan over it (allowOverlap).
curl -X POST https://api.evoriv.com/api/dev/v1/work-orders/<workOrderId>/plan \
-H "Authorization: Bearer $EVORIV_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "technicianUserId": "9d3e5f7a-...", "start": "2026-11-24T09:00:00+01:00" }'
# 200: { "data": { "planned": true, "status": "scheduled", "warnings": [],
# "nextStep": "Nothing was sent to the customer. ..." } }
# 409 reason "overlap": something is already planned then; nothing changed.6. Confirm the appointment, after the person's consent
Planning sends nothing. Ask for a preview first: who it goes to, from which address, the subject and the text. Show it in your app, and send only when the person confirms. Passing the preview's confirmationCode makes EVORIV refuse the send if anything in the preview changed in the meantime.
# 1. Preview: what would go out. Nothing is sent.
curl -X POST https://api.evoriv.com/api/dev/v1/work-orders/<workOrderId>/confirm-appointment \
-H "Authorization: Bearer $EVORIV_API_KEY" -H "Content-Type: application/json" \
-d '{ "preview": true }'
# -> { "data": { "preview": { "to": "...", "from": { ... }, "subject": "...", "text": "..." },
# "confirmationCode": "3f9a1c0b7d2e" } }
# 2. Show that preview to the person. Only after they choose Confirm:
curl -X POST https://api.evoriv.com/api/dev/v1/work-orders/<workOrderId>/confirm-appointment \
-H "Authorization: Bearer $EVORIV_API_KEY" -H "Content-Type: application/json" \
-d '{ "confirmationCode": "3f9a1c0b7d2e" }'
# -> { "data": { "sent": true, "to": "...", "sentThrough": "developer_api" } }7. Fetch the signed work report
The customer signs the work report on site in EVORIV. Subscribe to work_report.signed, or read the work order, and download the issued PDF. POST /work-orders/{id}/work-report/send emails it to the customer, with a preview first in the same way.
# Is the work report signed? (or subscribe to the work_report.signed webhook)
curl https://api.evoriv.com/api/dev/v1/work-orders/<workOrderId> -H "Authorization: Bearer $EVORIV_API_KEY"
# -> "workReport": { "exists": true, "signed": true, "signedAt": "...", ... }
# The issued work report, exactly as stored
curl https://api.evoriv.com/api/dev/v1/work-orders/<workOrderId>/work-report/pdf \
-H "Authorization: Bearer $EVORIV_API_KEY" -o work-report.pdf