Lists absences across every employment in the organisation, ordered by startDate and then by id, so paging returns each absence once. Use fromDate and toDate to read a date range, for example everything since your last sync, and employment for one employee.
Absences - Array
General Error
General Error
General Error
{- "data": [
- {
- "type": "absences",
- "id": "50123",
- "attributes": {
- "employmentGuid": "906264f1-2dff-4f72-a10b-59918cf738d7",
- "attendanceCategoryId": 1001,
- "startDate": "2026-03-02",
- "endDate": "2026-03-04",
- "firstDayLength": "full",
- "lastDayLength": "full",
- "attendanceReasonId": 2001,
- "notes": "Jury service",
- "sicknessDescription": "Flu",
- "returnToWorkDate": "2026-03-05",
- "durationInDays": 3,
- "isTakeOn": false
},
}
]
}Records a day-based absence for an employment. It's held to the same rules as an absence entered by hand: the
reason must belong to the absence type, half days must combine correctly, the dates must fall within the
employment, must not overlap another of its absences, and the return-to-work date must not be before the end.
A broken rule returns 400, with source.pointer naming the attribute.
Absence types with writable: false in GET /attendanceCategories are refused, as are types recorded in hours.
Paternity and adoption types that open a statutory pay claim are refused where the employment's payroll doesn't
allow such claims to be raised here. An employment that has left and has had its P45 issued is refused too.
The response is the absence as stored, including durationInDays.
The absence to record.
object |
Absence
The employment's payroll is locked for processing, so its absences can't be changed until the lock is released. Retry once the payroll is unlocked.
General Error
{- "data": {
- "type": "absences",
- "attributes": {
- "employmentGuid": "906264f1-2dff-4f72-a10b-59918cf738d7",
- "attendanceCategoryId": 1001,
- "startDate": "2026-03-02",
- "endDate": "2026-03-04",
- "attendanceReasonId": 2001,
- "notes": "Jury service"
}
}
}{- "data": {
- "id": "50123",
- "type": "absences",
- "attributes": {
- "employmentGuid": "906264f1-2dff-4f72-a10b-59918cf738d7",
- "attendanceCategoryId": 1001,
- "startDate": "2026-03-02T00:00:00",
- "endDate": "2026-03-04T00:00:00",
- "firstDayLength": "full",
- "lastDayLength": "full",
- "attendanceReasonId": 2001,
- "notes": "Jury service",
- "sicknessDescription": null,
- "returnToWorkDate": null,
- "durationInDays": 3,
- "isTakeOn": false
},
}
}Get absence by ID
Absence
General Error
General Error
{- "data": {
- "id": "50123",
- "type": "absences",
- "attributes": {
- "employmentGuid": "906264f1-2dff-4f72-a10b-59918cf738d7",
- "attendanceCategoryId": 1001,
- "startDate": "2026-03-02T00:00:00",
- "endDate": "2026-03-04T00:00:00",
- "firstDayLength": "full",
- "lastDayLength": "full",
- "attendanceReasonId": 2001,
- "notes": "Jury service",
- "sicknessDescription": null,
- "returnToWorkDate": null,
- "durationInDays": 3,
- "isTakeOn": false
},
}
}Deletes an absence. Absences in a type with writable: false in GET /attendanceCategories can't be deleted here, nor can those of an employment that has left and has had its P45 issued; both return 400.
Deleted
The employment's payroll is locked for processing, so its absences can't be changed until the lock is released. Retry once the payroll is unlocked.
General Error
{- "links": {
- "self": "string"
}, - "errors": [
- {
- "id": "de4e1bd5-9223-435a-b56d-1b0190a12313",
- "status": "401",
- "title": "Unable authenticate client",
- "detail": "No further detail is available"
}
]
}