Create a new employee

Needs permission employee:write, and employee-payroll:write, employee-pay-schedule:write.

Adding an employee writes their details, their payroll details and the pay schedule they are paid on, so it needs employee:write, employee-payroll:write and employee-pay-schedule:write. A role without one of them changes existing employees (PUT and PATCH /employees/{employeeId}) but cannot add new starters. The new employee's other fields are judged as on any change: a Payroll ID needs employee-payroll-id:write (left out, it is the employee's ID), working patterns working-pattern:write.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
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.

string
required

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

taxCodesPerYear
object

Tax codes for the employee per tax year

niDetails
object

National Insurance details for the employee

string
enum
required

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

Allowed:
string | null

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

date
required

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

string
enum

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

Allowed:
string
enum
required

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

Allowed:
number | 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.

string | null

Employee code. An optional identifier for the employee.

string | null

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

address
object

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

bankAccounts
array of objects | 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.

bankAccounts
studentDetails
object

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

tags
array of objects | null

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

tags
previousEmployment
object

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

string | null

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

string | null

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

string | null

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

previousNames
array of strings | null

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

previousNames
directorDetails
object

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

boolean | null

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

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.

workplaceDetails
object

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

workingDays
object

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

partnerDetails
object

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

string | null

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

string | null

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

string | null

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

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.

payrollIdChanged
object

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

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).

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.

starterDetails
object
required

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

leaverDetails
object

Leaver details for migrating employees from another system.

number | 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.

Headers
string

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

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json