Skip to main content
PUT
Update the leaver details for a specific employee

Authorizations

X-Auth-Token
string
header
required

Access token obtained from OAuth2 client credentials flow

X-Org-Id
string
header
required

Organisation to scope the request to. Required when the principal can access more than one organisation; optional for single-organisation principals (the authorizer resolves it automatically).

Path Parameters

employeeId
string
required

The ID of the employee whose leaver details are to be updated

Body

application/json
leavingDate
string

The date the employee left the company.

Example:

"2024-12-31"

reason
string | null

The reason the employee left the company.

Example:

"Retirement"

issuedBy
string | null

The entity that issued the leaver certificate.

Example:

"Employer"

reportedToHmrc
boolean
default:false

Whether the leaving date has been sent to HMRC on an FPS. Set only on a real submission, never on a preview.

Example:

false

finalisedOnPayslip
boolean
default:false

Whether the leaving date is carried by a finalised payslip on a locked pay run. Until this is true the employee stays on the payroll-config roster, so a cessation recorded after its own pay run closed is still picked up and reported on the next one.

Example:

false

Response

Employee leaver details were successfully updated

message
object
content
object
validationIssues
object[]
messageToken
string