Skip to content

Sick leave registration event
Webhook

Request

Webhook, Dyflexis sends this POST request to a URL you host. See the Webhooks guide for how to register your receiver and what it must return.

Sends a message when a sick leave registration is created or recovered. Use the envelope field type to determine which event you received:

  • sick_leave_created, a new sick-leave registration has been filed.
  • sick_leave_recovered, an existing registration has been closed because the employee recovered.

The webhook can't be registered with this API. Please register this webhook in Dyflexis.

Bodyapplication/json

Sends a message when a sick leave registration is created or recovered. Use the envelope field type to determine which event you received.

typestringrequired

Webhook event type.

Enum:"sick_leave_created""sick_leave_recovered"
Example:"sick_leave_created"
timestampstringrequired

Event timestamp in ISO 8601 UTC.

Example:"2026-02-25T14:20:35Z"
payloadobject(SickLeaveRegistrationWebhookPayload)required
Payload
{ "type": "sick_leave_created", "timestamp": "2026-02-25T14:20:35Z", "payload": { "id": "01GYS27FFVTP63WGPV34V1WR6P", "employeeId": 12, "employeeReference": "EMP-EXT-123", "personnelNumber": "23V600", "startDate": "2026-12-31", "expectedEndDate": "2026-12-31", "endDate": "2026-12-31", "remark": "sore throat", "recovered": false, "sickDays": [ … ] } }

Responses

Response code 200 - OK

Bodyapplication/json
object

Response code 200 - OK

Response
{}