Skip to main content
POST
Create Employee

Authorizations

Authorization
string
header
required

Get token from Auth0 and paste it here

Headers

X-Acting-User
string | null

The person acting through the access credential, recorded as created_by of what the request writes. Audit only: access is checked on the credential.

Required string length: 1 - 255

Path Parameters

organization_id
string
required

Body

application/json

Creating an employee: the hub, valid_from, and the satellites sent. Each satellite starts on [valid_from, 9999-12-31); one not sent starts at its schema defaults.

valid_from
string<date>
required

The date every satellite starts on

external_ref
string

The integrator's own stable key, unique within the organization. Generated when absent.

Required string length: 1 - 255
core
GBEmployeeCore · object | null

Identity of the person, as payroll and filing need it.

address
GBEmployeeAddress · object | null

The person's residence address, as filed to HMRC.

job
GBEmployeeJob · object | null

The terms of the employment as a client writes them.

tax
GBEmployeeTax · object | null
insurance
GBEmployeeInsurance · object | null
compensation
GBEmployeeCompensation · object | null

Standing pay elements and the pay group they are paid in (PDR-0007, PDR-0012).

bank
GBEmployeeBank · object | null

Response

Successful Response

The employee with every satellite as it reads on one date. A satellite with no slice on an explicit date is absent.

id
string
required
external_ref
string | null
required
created_at
string<date-time>
required
read-only
created_by
string
required
read-only

Who created the hub: the acting user (X-Acting-User, else the access credential), system for our own writes, or <authority>:<notice> for a write on an authority's behalf, e.g. hmrc:P6.

deleted_at
string<date-time> | null
required

When the hub was closed

organization_id
string
required
status
GBEmployeeStatus · object
required

The read-only status satellite. It carries no fields; it exists so that every employee read has a status object.

core
GBEmployeeCoreSatellite · object | null
address
GBEmployeeAddressSatellite · object | null
job
GBEmployeeJobSatellite · object | null
tax
GBEmployeeTaxSatellite · object | null
insurance
GBEmployeeInsuranceSatellite · object | null
compensation
GBEmployeeCompensationSatellite · object | null
bank
GBEmployeeBankSatellite · object | null