Skip to main content
PATCH
Partially update an existing 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).

Headers

Request-Id
string

Optional. Your id for this request: it is carried into every log line about it, so quote it when you contact support.

Path Parameters

employeeId
string
required

Body

name
object

The employee's name as reported to HMRC; the first and last names are required, each 1 to 35 characters starting with a letter.

email
string<email>

The employee's primary email address; required, it must be a valid email address and is the address payslip emails are sent to.

Example:

"john.smith@company.com"

taxCodesPerYear
object

Tax codes for the employee per tax year

Example:
niDetails
object | null

National Insurance details for the employee

birthGender
enum<string>

The gender reported to HMRC for the employee on the FPS; required.

Available options:
Male,
Female
Example:

"Male"

phone
string | null

The employee's primary phone number, stored as sent and carried on the payslip's recipient details.

birthDate
string<date>

The employee's date of birth (YYYY-MM-DD); required, and the employee must be between 12 and 120 years old.

Example:

"1985-07-23"

maritalStatus
enum<string>

The employee's marital status; optional, and refused when it is not one of the listed values.

Available options:
Single,
Married,
Divorced,
Widowed,
CivilPartnership,
FormerCivilPartnership,
SurvivorCivilPartnership
Example:

"Married"

hoursWorkedCategory
enum<string>

The band of normal weekly hours the employee works, reported to HMRC on the FPS; required.

Available options:
UpTo16Hours,
From16To24Hours,
From24To30Hours,
Above30Hours,
Other
Example:

"Above30Hours"

salary
number<decimal> | null
deprecated

Deprecated as input on PUT and PATCH: record salary changes with PUT /employees/{employeeId}/salary instead, which keeps an effective-dated history the pay run pro-rates from. While still accepted, a value that differs from the salary in force today updates the most recent salary version in place; null or absent leaves the history untouched. Accepted unchanged on POST /employees, where it becomes the first salary version effective from the start date. Always populated on responses as the annual salary in force today (or the earliest version when every version is still in the future). Will be removed from input in a future version.

Example:

35000

employeeCode
string | null

Employee code. An optional identifier for the employee.

Example:

"EMP001"

secondaryEmail
string<email> | null

An optional second email address for the employee, checked as an email address when sent.

Example:

"john.secondary@company.com"

address
object | null

The employee's home address, reported to HMRC on the FPS; line1, line2, county and city are its address lines.

bankAccounts
object[] | null

The employee's bank accounts; exactly one must be the primary payroll account, and with more than one their allocation percentages must add up to 100.

studentDetails
object | null

The employee's student loan and postgraduate loan plans, with the dates each starts and ends.

tags
object[] | null

Tags on the employee, copied onto the employee details of each payslip.

previousEmployment
object

Earnings from a previous employer in the same tax year. Used for cumulative tax calculations only. Does not affect FPS reporting.

Example:
gender
string | null

The employee's gender as free text, stored and returned as sent; birthGender is the value reported to HMRC.

Example:

"Male"

secondaryPhone
string | null

An optional second phone number for the employee, stored and returned as sent.

passportNumber
string | null

The employee's passport number, reported to HMRC on the FPS; 1 to 35 letters, numbers, spaces and standard punctuation.

Example:

"123456789"

previousNames
string[] | null

Names the employee was previously known by; each must meet the same rules as a name and none may repeat.

Example:
directorDetails
object | null

Set when the employee is a director: the director's NI calculation method, appointment date and, once it ends, the end date.

isIrregularEmployment
boolean | null

Whether the employee is paid on an irregular pattern, reported to HMRC on the FPS; treated as false when absent.

Example:

false

isOffPayrollWorker
boolean | null

Whether the worker is engaged under the off-payroll working rules (IR35), reported to HMRC on the FPS; treated as false when absent.

Example:

false

workplaceDetails
object | null

Where the employee works; its workplace postcode is reported to HMRC on the FPS.

workingDays
object | null

The employee's working pattern in force today; its dated history is kept by the employee working pattern endpoints.

partnerDetails
object | null

The employee's partner, reported to HMRC on the FPS with the first payment of Shared Parental Pay.

department
string | null

The employee's department as free text, copied onto the employee details of each payslip.

Example:

"Engineering"

jobTitle
string | null

The employee's job title as free text, copied onto the employee details of each payslip.

Example:

"Software Engineer"

Response

Employee Updated

message
object
required

A readable message about the outcome and a stable token a client can branch on.

content
object

The data the request returns with its metadata; left out on a response that carries no data, such as most errors.

validationIssues
object[] | null

Each field the request was refused for and why; left out when the request was not refused for its fields.