absences

An employment's day-based absences, such as sickness or jury service

Get absences

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.

SecuritybearerAuth
Request
query Parameters
employment
string <uuid>

Return only this employment's absences. Takes the employment's id, or an external id mapped to it. A value that isn't a GUID returns 400, and an employment that doesn't exist returns 404.

Example: employment=906264f1-2dff-4f72-a10b-59918cf738d7
fromDate
string <date>

Return only absences that end on or after this date (YYYY-MM-DD), so an absence that started earlier but is still running is included. Can be sent without toDate.

Example: fromDate=2026-03-01
toDate
string <date>

Return only absences that start on or before this date (YYYY-MM-DD). Can be sent without fromDate; with it, must not be before fromDate.

Example: toDate=2026-03-31
page[number]
number >= 1

The page number

Example: page[number]=1
page[size]
integer >= 1
Default: 100

Number of records per page, from 1 to 100. Defaults to 100. There are no next or last links or totals, so stop when a page comes back with fewer records than the size you asked for.

Example: page[size]=100
Responses
200

Absences - Array

400

General Error

404

General Error

default

General Error

get/absences
Request samples
Response samples
application/vnd.api+json
{}

Add an absence

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.

SecuritybearerAuth
Request
Request Body schema: application/vnd.api+json

The absence to record.

object
Responses
201

Absence

409

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.

default

General Error

post/absences
Request samples
application/vnd.api+json
{
  • "data": {
    }
}
Response samples
application/vnd.api+json
{}

Get absence by ID

Get absence by ID

SecuritybearerAuth
Request
path Parameters
id
required
string

Absence ID (an integer)

Example: 50123
Responses
200

Absence

404

General Error

default

General Error

get/absences/{id}
Request samples
Response samples
application/vnd.api+json
{}

Delete an absence

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.

SecuritybearerAuth
Request
path Parameters
id
required
string

Absence ID (an integer)

Example: 50123
Responses
204

Deleted

409

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.

default

General Error

delete/absences/{id}
Request samples
Response samples
application/vnd.api+json
{
  • "links": {
    },
  • "errors": [
    ]
}