Skip to main content
POST
Create a new 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.

Body

application/json
name
object
required

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>
required

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"

birthGender
enum<string>
required

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

Available options:
Male,
Female
Example:

"Male"

birthDate
string<date>
required

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"

hoursWorkedCategory
enum<string>
required

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"

starterDetails
object
required

The employment start date, and the starter declaration or secondment details reported to HMRC on the FPS; required.

id
string | null

The unique identifier for the employee. If not provided, a new ULID will be generated.

Example:

"emp_12345"

taxCodesPerYear
object

Tax codes for the employee per tax year

Example:
niDetails
object | null

National Insurance details for the employee

phone
string | null

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

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"

salary
number<decimal> | null

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.

Example:
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"

payrollId
string | null

Payroll ID. This is the ID of the payroll that the employee is associated with when sending the FPS submission to HMRC (payId field). If not provided a new one will be created. But this can affect the submission to HMRC.

Example:

"payroll_2023_001"

payrollIdChanged
object | null

The employee's previous payroll ID, stored as sent and reported to HMRC on the FPS as a payroll ID change.

payrollConfigId
string | null

The payroll config to assign the employee to. Required when adding an employee. An employee saved earlier with HR details only has none: they wait for payroll set-up, are in no pay run and on no FPS until someone who manages payroll details sets it (PUT /employees/{employeeId}/payroll-config).

Example:

"payroll_config_001"

openingBalance
object

Opening balance for this employment from a different payroll system (migration).

openingBalanceDirector
object

Opening balance for director earnings from a different payroll system (migration). Only NI-relevant fields.

leaverDetails
object | null

Leaver details for migrating employees from another system.

contractedHoursPerWeek
number<decimal> | null

The hours a week the employee is contracted to work at their starting salary, from 0 to 168. Recorded on the first salary version beside salary, so it needs salary too; it does not change how the salary is paid. Later changes go through PUT /employees/{employeeId}/salary.

Example:

37.5

Response

Employee Created

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.