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.
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.
Show child attributes
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.
Show child attributes
id
string | null
The unique identifier for the employee. If not provided, a new ULID will be generated.
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.
Show child attributes
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.
Show child attributes
studentDetails
object | null
The employee's student loan and postgraduate loan plans, with the dates each starts and ends.
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:
["John Doe"]
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.
Show child attributes
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.
Show child attributes
workingDays
object | null
The employee's working pattern in force today; its dated history is kept by the employee working pattern endpoints.
Show child attributes
partnerDetails
object | null
The employee's partner, reported to HMRC on the FPS with the first payment of Shared Parental Pay.
Show child attributes
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.
Show child attributes
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).
Show child attributes
openingBalanceDirector
object
Opening balance for director earnings from a different payroll system (migration). Only NI-relevant fields.
Show child attributes
leaverDetails
object | null
Leaver details for migrating employees from another system.
Show child attributes
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.
Show child attributes
content
object
The data the request returns with its metadata; left out on a response that carries no data, such as most errors.
Show child attributes
validationIssues
object[] | null
Each field the request was refused for and why; left out when the request was not refused for its fields.
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Flow Payroll","description":"Flow Payroll documentation — product guides and the developer API reference for the UK payroll platform.","colors":{"primary":"#635BFF","light":"#7A73FF","dark":"#0A2540"},"logo":{"light":"https://mintcdn.com/flowpayroll-1ca487e0/ySOA_2Ay6nr7ISKu/logo/light.svg?fit=max\u0026auto=format\u0026n=ySOA_2Ay6nr7ISKu\u0026q=85\u0026s=a1a7d7d96acdc04b96f0d043180b6ae8","dark":"https://mintcdn.com/flowpayroll-1ca487e0/ySOA_2Ay6nr7ISKu/logo/dark.svg?fit=max\u0026auto=format\u0026n=ySOA_2Ay6nr7ISKu\u0026q=85\u0026s=2662d95c9dbe282d032d3d38197a6d88","href":"https://flowpayroll.ai"},"favicon":"https://mintcdn.com/flowpayroll-1ca487e0/ySOA_2Ay6nr7ISKu/favicon.svg?fit=max\u0026auto=format\u0026n=ySOA_2Ay6nr7ISKu\u0026q=85\u0026s=8b194e652c4261052e97014a898c58ea","navbar":{"links":[{"href":"mailto:hello@flowpayroll.ai","label":"Support"},{"href":"https://flowpayroll.ai/book-demo","label":"Talk to us"}],"primary":{"type":"button","label":"Open dashboard","href":"https://app.flowpayroll.ai"}},"footer":{"links":[{"header":"Flow Payroll","items":[{"label":"Website","href":"https://flowpayroll.ai"},{"label":"Embedded payroll for platforms","href":"https://flowpayroll.ai/solutions/software-platforms"},{"label":"Pricing","href":"https://flowpayroll.ai/pricing"},{"label":"Blog","href":"https://flowpayroll.ai/blog"},{"label":"Dashboard","href":"https://app.flowpayroll.ai"},{"label":"Support","href":"mailto:hello@flowpayroll.ai"}]}]},"fonts":{"family":"Inter"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://app.flowpayroll.ai"},{"anchor":"Download OpenAPI","icon":"download","href":"/api-reference/use-in-postman"},{"anchor":"Support","icon":"envelope","href":"mailto:hello@flowpayroll.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"flowpayroll-1ca487e0","hasAudioNarration":false,"actualSubdomain":"flowpayroll-1ca487e0","customDomains":["docs.flowpayroll.ai"],"gitSource":{"type":"github","owner":"bolt-payroll","repo":"mintlify-sync","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10ec659ffae5051c415d9c"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b116ee3e71f374a14b8f935","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"API reference","count":907},{"language":"default","tag":"Webhooks","count":253},{"language":"default","tag":"Events you receive","count":196},{"language":"default","tag":"Pay API","count":115},{"language":"default","tag":"Pensions","count":111},{"language":"default","tag":"Administration API","count":110},{"language":"default","tag":"Billing","count":69},{"language":"default","tag":"Payroll journals","count":53},{"language":"default","tag":"API","count":46},{"language":"default","tag":"Emails we send for you","count":38}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"a.template-download{display:inline-flex;align-items:center;gap:0.5rem;padding:0.5rem 1.1rem;border-radius:9999px;background-color:#635bff;color:#ffffff!important;font-size:0.875rem;font-weight:500;line-height:1.25rem;text-decoration:none!important;border:none;transition:background-color 150ms ease}a.template-download:hover{background-color:#5048e5}a.template-download::before{content:\"↓\";font-weight:600}"}]}
{"page":{"pagePath":"api-reference/pay-api/employees/create-a-new-employee","slug":"/api-reference/pay-api/employees/create-a-new-employee","pageMetadata":{"title":"Create a new employee","description":"Needs permission employee:write, and employee-payroll:write, employee-pay-schedule:write.\n\nAdding 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`.","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees","href":"/api-reference/pay-api/employees/create-a-new-employee","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Needs permission employee:write, and employee-payroll:write, employee-pay-schedule:write.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Adding an employee writes their details, their payroll details and the pay schedule they are paid on, so it needs \", _jsx(_components.code, {\n children: \"employee:write\"\n }), \", \", _jsx(_components.code, {\n children: \"employee-payroll:write\"\n }), \" and \", _jsx(_components.code, {\n children: \"employee-pay-schedule:write\"\n }), \". A role without one of them changes existing employees (\", _jsx(_components.code, {\n children: \"PUT\"\n }), \" and \", _jsx(_components.code, {\n children: \"PATCH /employees/{employeeId}\"\n }), \") but cannot add new starters. The new employee’s other fields are judged as on any change: a Payroll ID needs \", _jsx(_components.code, {\n children: \"employee-payroll-id:write\"\n }), \" (left out, it is the employee’s ID), working patterns \", _jsx(_components.code, {\n children: \"working-pattern:write\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a new employee","description":"Needs permission employee:write, and employee-payroll:write, employee-pay-schedule:write.\n\nAdding 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`.","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees","href":"/api-reference/pay-api/employees/create-a-new-employee","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Employees"],"summary":"Create a new employee","description":"Needs permission employee:write, and employee-payroll:write, employee-pay-schedule:write.\n\nAdding 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`.","operationId":"PostNewEmployee","x-flow-permission":"employee:write","parameters":["09175bc0-eea2-4713-a053-81932bdaceb3"],"x-flow-permission-also-requires":["employee-payroll:write","employee-pay-schedule:write"],"requestBody":"ab12999b-bb7c-4693-ab57-2ca54d20c96f","responses":{"201":"320860d1-6ac9-4b77-aec2-00f21796bb0d","400":"7620bea6-d6f5-434f-bc91-39398ad928c1","401":"12ce1508-dc80-45ba-9679-5e10edeac96d","403":"746f0336-650e-439e-b7ba-ee4f06036402","409":"a3cce44e-ee14-4f4c-9c67-780d4dc173bd","500":"ed67addb-6f2f-42ca-81f8-02252cc0ac94","503":"16d49623-49c9-409b-b3d3-4421b8275667"},"method":"post","type":"path","servers":["4f10880e-c0ad-40a3-a61a-d2a198e39654"],"security":["973976aa-1bf6-4af6-9e68-200c04a60a73"],"path":"/employees","baseUrlOptions":["https://api.sandbox.flowpayroll.ai/v1"],"title":"Create a new employee","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"09175bc0-eea2-4713-a053-81932bdaceb3":{"name":"Request-Id","in":"header","required":false,"description":"Optional. Your id for this request: it is carried into every log line about it, so quote it when you contact support.","schema":{"type":"string","isRequired":false,"description":"Optional. Your id for this request: it is carried into every log line about it, so quote it when you contact support.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["starterDetails","name","email","birthGender","birthDate","hoursWorkedCategory"],"properties":{"name":{"type":"object","required":["firstName","lastName"],"properties":{"firstName":{"type":"string","description":"The first forename, reported to HMRC; 1 to 35 characters starting with a letter, using letters, spaces, hyphens and apostrophes.","example":"John","isRequired":true,"uniqueKey":"name.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"The surname, reported to HMRC; 1 to 35 characters starting with a letter, using letters, spaces, hyphens and apostrophes.","example":"Smith","isRequired":true,"uniqueKey":"name.lastName","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"The person's title, such as Mr or Ms; optional, and checked against HMRC's title rules when sent.","example":"Mr","uniqueKey":"name.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The person's title, such as Mr or Ms; optional, and checked against HMRC's title rules when sent.","example":"Mr","uniqueKey":"name.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"name.title","typeLabel":"string | null"},"initials":{"oneOf":[{"type":"string","description":"The employee's initials.","uniqueKey":"name.initials.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's initials.","uniqueKey":"name.initials.oneOf.1","typeLabel":"null"}],"uniqueKey":"name.initials","typeLabel":"string | null"},"middleName":{"oneOf":[{"type":"string","description":"A second forename; optional, and checked against the same rules as firstName when sent.","example":"Edward","uniqueKey":"name.middleName.oneOf.0","typeLabel":"string"},{"type":"null","description":"A second forename; optional, and checked against the same rules as firstName when sent.","example":"Edward","uniqueKey":"name.middleName.oneOf.1","typeLabel":"null"}],"uniqueKey":"name.middleName","typeLabel":"string | null"}},"description":"The employee's name as reported to HMRC; the first and last names are required, each 1 to 35 characters starting with a letter.","isRequired":true,"uniqueKey":"name","typeLabel":"object"},"email":{"type":"string","format":"email","description":"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","isRequired":true,"uniqueKey":"email","typeLabel":"string\u003cemail>"},"birthGender":{"type":"string","enum":["Male","Female"],"description":"The gender reported to HMRC for the employee on the FPS; required.","example":"Male","isRequired":true,"uniqueKey":"birthGender","typeLabel":"enum\u003cstring>"},"birthDate":{"type":"string","format":"date","description":"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","isRequired":true,"uniqueKey":"birthDate","typeLabel":"string\u003cdate>"},"hoursWorkedCategory":{"type":"string","enum":["UpTo16Hours","From16To24Hours","From24To30Hours","Above30Hours","Other"],"description":"The band of normal weekly hours the employee works, reported to HMRC on the FPS; required.","example":"Above30Hours","isRequired":true,"uniqueKey":"hoursWorkedCategory","typeLabel":"enum\u003cstring>"},"starterDetails":{"type":"object","required":["startDate","starterDeclaration"],"properties":{"startDate":{"type":"string","description":"The start date of the employee.","example":"2024-01-15","isRequired":true,"uniqueKey":"starterDetails.startDate","typeLabel":"string"},"starterDeclaration":{"type":"string","enum":["ThisIsMyFirstJobSince6thApril","ThisIsMyOnlyJob","IHaveAnotherJobOrPension","None"],"description":"The starter declaration of the employee. Use 'ThisIsMyFirstJobSince6thApril', 'ThisIsMyOnlyJob', or 'IHaveAnotherJobOrPension' for a new starter. Use 'None' for an existing employee who has already been reported to HMRC (for example, one migrated mid-year from another payroll provider); in that case alreadySentToHmrcFps must be true.","example":"ThisIsMyOnlyJob","isRequired":true,"uniqueKey":"starterDetails.starterDeclaration","typeLabel":"enum\u003cstring>"},"secondedDetails":{"oneOf":[{"type":"object","properties":{"stayStatus":{"type":"string","enum":["Stay183DaysOrMore","StayLessThan183Days","InOutUK"],"description":"Indicates the stay status of the employee Allowed values: 'Stay183DaysOrMore', 'StayLessThan183Days', or 'InOutUK'.","example":"Stay183DaysOrMore","uniqueKey":"starterDetails.secondedDetails.oneOf.0.stayStatus","typeLabel":"enum\u003cstring>"},"eEACitizen":{"type":"boolean","description":"Indicates if the employee is an EEA citizen.","example":true,"uniqueKey":"starterDetails.secondedDetails.oneOf.0.eEACitizen","typeLabel":"boolean"},"ePM6":{"type":"boolean","description":"Indicator that this is an EPM 6 (modified) scheme","example":false,"uniqueKey":"starterDetails.secondedDetails.oneOf.0.ePM6","typeLabel":"boolean"}},"description":"For an employee seconded to work in the UK, the secondment details reported to HMRC in place of a starter declaration; cannot be sent with starterDeclaration.","uniqueKey":"starterDetails.secondedDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"stayStatus":{"type":"string","enum":["Stay183DaysOrMore","StayLessThan183Days","InOutUK"],"description":"Indicates the stay status of the employee Allowed values: 'Stay183DaysOrMore', 'StayLessThan183Days', or 'InOutUK'.","example":"Stay183DaysOrMore"},"eEACitizen":{"type":"boolean","description":"Indicates if the employee is an EEA citizen.","example":true},"ePM6":{"type":"boolean","description":"Indicator that this is an EPM 6 (modified) scheme","example":false}},"description":"For an employee seconded to work in the UK, the secondment details reported to HMRC in place of a starter declaration; cannot be sent with starterDeclaration.","uniqueKey":"starterDetails.secondedDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"starterDetails.secondedDetails","typeLabel":"object | null"},"alreadySentToHmrcFps":{"type":"boolean","description":"Whether HMRC already has the employee's start date and starter declaration. While false, the next FPS sends them, and it becomes true when HMRC accepts that FPS. Set to false for a new starter. Set to true for an existing employee whose previous payroll already reported them; this is required when starterDeclaration is 'None'. It can be changed at any time: setting it back to false sends the starter details again on the next FPS, and changing the start date or declaration while it is true only updates the employee's record, because HMRC is not sent them again.","example":false,"uniqueKey":"starterDetails.alreadySentToHmrcFps","typeLabel":"boolean"}},"description":"The employment start date, and the starter declaration or secondment details reported to HMRC on the FPS; required.","isRequired":true,"uniqueKey":"starterDetails","typeLabel":"object"},"id":{"oneOf":[{"type":"string","description":"The unique identifier for the employee. If not provided, a new ULID will be generated.","example":"emp_12345","uniqueKey":"id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The unique identifier for the employee. If not provided, a new ULID will be generated.","example":"emp_12345","uniqueKey":"id.oneOf.1","typeLabel":"null"}],"uniqueKey":"id","typeLabel":"string | null"},"taxCodesPerYear":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","required":["code"],"properties":{"code":{"type":"string","description":"The tax code for the employee.","example":"1257L","isRequired":true,"uniqueKey":"taxCodesPerYear.additionalProperties.items.[INDEX].code","typeLabel":"string"},"effectiveDate":{"oneOf":[{"type":"string","description":"The effective date of the tax code, if none is set, created date is used.","example":"2024-04-06","uniqueKey":"taxCodesPerYear.additionalProperties.items.[INDEX].effectiveDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The effective date of the tax code, if none is set, created date is used.","example":"2024-04-06","uniqueKey":"taxCodesPerYear.additionalProperties.items.[INDEX].effectiveDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"taxCodesPerYear.additionalProperties.items.[INDEX].effectiveDate","typeLabel":"string | null"},"reason":{"type":"string","description":"Reason for the tax code change","example":"Standard tax code","uniqueKey":"taxCodesPerYear.additionalProperties.items.[INDEX].reason","typeLabel":"string"},"issuedBy":{"type":"string","description":"Who issued the tax code change. Valid values: 'HMRC', 'Employer'","example":"HMRC","uniqueKey":"taxCodesPerYear.additionalProperties.items.[INDEX].issuedBy","typeLabel":"string"},"week1Month1":{"type":"boolean","description":"Whether the tax code is week1Month1, meaning basis non cumulative","example":false,"uniqueKey":"taxCodesPerYear.additionalProperties.items.[INDEX].week1Month1","typeLabel":"boolean"}},"uniqueKey":"taxCodesPerYear.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"taxCodesPerYear.additionalProperties","typeLabel":"object[]"},"description":"Tax codes for the employee per tax year","example":{"2025":[{"code":"1257L","effectiveDate":"2025-04-06","reason":"HMRC Update","issuedBy":"HMRC","week1Month1":false}]},"uniqueKey":"taxCodesPerYear","typeLabel":"object"},"niDetails":{"oneOf":[{"type":"object","properties":{"nationalInsuranceNumber":{"oneOf":[{"type":"string","description":"The National Insurance number for the employee (optional).","example":"QQ123456C","uniqueKey":"niDetails.oneOf.0.nationalInsuranceNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"The National Insurance number for the employee (optional).","example":"QQ123456C","uniqueKey":"niDetails.oneOf.0.nationalInsuranceNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"niDetails.oneOf.0.nationalInsuranceNumber","typeLabel":"string | null"},"categoriesPerYear":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","required":["category"],"properties":{"category":{"type":"string","enum":["A","B","C","D","E","F","H","I","J","K","L","M","N","S","V","X","Z"],"description":"HMRC-published NI category letter for payroll submissions.","example":"A","isRequired":true,"uniqueKey":"niDetails.oneOf.0.categoriesPerYear.additionalProperties.items.[INDEX].category","typeLabel":"enum\u003cstring>"},"effectiveDate":{"type":"string","format":"date","description":"Date when this category becomes effective","example":"2025-04-06","uniqueKey":"niDetails.oneOf.0.categoriesPerYear.additionalProperties.items.[INDEX].effectiveDate","typeLabel":"string\u003cdate>"},"reason":{"type":"string","description":"Reason for the category","example":"HMRC Update","uniqueKey":"niDetails.oneOf.0.categoriesPerYear.additionalProperties.items.[INDEX].reason","typeLabel":"string"},"issuedBy":{"type":"string","description":"Who issued the category. Valid values: 'HMRC', 'Employer'","example":"HMRC","uniqueKey":"niDetails.oneOf.0.categoriesPerYear.additionalProperties.items.[INDEX].issuedBy","typeLabel":"string"}},"uniqueKey":"niDetails.oneOf.0.categoriesPerYear.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"niDetails.oneOf.0.categoriesPerYear.additionalProperties","typeLabel":"object[]"},"description":"National Insurance categories organized by tax year","uniqueKey":"niDetails.oneOf.0.categoriesPerYear","typeLabel":"object"}},"description":"National Insurance details for the employee","uniqueKey":"niDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"nationalInsuranceNumber":{"oneOf":[{"type":"string","description":"The National Insurance number for the employee (optional).","example":"QQ123456C"},{"type":"null","description":"The National Insurance number for the employee (optional).","example":"QQ123456C"}]},"categoriesPerYear":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","required":["category"],"properties":{"category":{"type":"string","enum":["A","B","C","D","E","F","H","I","J","K","L","M","N","S","V","X","Z"],"description":"HMRC-published NI category letter for payroll submissions.","example":"A"},"effectiveDate":{"type":"string","format":"date","description":"Date when this category becomes effective","example":"2025-04-06"},"reason":{"type":"string","description":"Reason for the category","example":"HMRC Update"},"issuedBy":{"type":"string","description":"Who issued the category. Valid values: 'HMRC', 'Employer'","example":"HMRC"}}}},"description":"National Insurance categories organized by tax year"}},"description":"National Insurance details for the employee","uniqueKey":"niDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"niDetails","typeLabel":"object | null"},"phone":{"oneOf":[{"type":"string","description":"The employee's primary phone number, stored as sent and carried on the payslip's recipient details.","uniqueKey":"phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's primary phone number, stored as sent and carried on the payslip's recipient details.","uniqueKey":"phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"phone","typeLabel":"string | null"},"maritalStatus":{"type":"string","enum":["Single","Married","Divorced","Widowed","CivilPartnership","FormerCivilPartnership","SurvivorCivilPartnership"],"description":"The employee's marital status; optional, and refused when it is not one of the listed values.","example":"Married","uniqueKey":"maritalStatus","typeLabel":"enum\u003cstring>"},"salary":{"oneOf":[{"type":"number","format":"decimal","description":"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.\n","example":35000,"uniqueKey":"salary.oneOf.0","typeLabel":"number\u003cdecimal>"},{"type":"null","format":"decimal","description":"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.\n","example":35000,"uniqueKey":"salary.oneOf.1","typeLabel":"null"}],"uniqueKey":"salary","typeLabel":"number\u003cdecimal> | null"},"employeeCode":{"oneOf":[{"type":"string","description":"Employee code. An optional identifier for the employee.","example":"EMP001","uniqueKey":"employeeCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Employee code. An optional identifier for the employee.","example":"EMP001","uniqueKey":"employeeCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"employeeCode","typeLabel":"string | null"},"secondaryEmail":{"oneOf":[{"type":"string","format":"email","description":"An optional second email address for the employee, checked as an email address when sent.","example":"john.secondary@company.com","uniqueKey":"secondaryEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"An optional second email address for the employee, checked as an email address when sent.","example":"john.secondary@company.com","uniqueKey":"secondaryEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"secondaryEmail","typeLabel":"string\u003cemail> | null"},"address":{"oneOf":[{"type":"object","properties":{"line1":{"oneOf":[{"type":"string","description":"First line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"123 Main Street","uniqueKey":"address.oneOf.0.line1.oneOf.0","typeLabel":"string"},{"type":"null","description":"First line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"123 Main Street","uniqueKey":"address.oneOf.0.line1.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.line1","typeLabel":"string | null"},"line2":{"oneOf":[{"type":"string","description":"Second line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Apt 4B","uniqueKey":"address.oneOf.0.line2.oneOf.0","typeLabel":"string"},{"type":"null","description":"Second line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Apt 4B","uniqueKey":"address.oneOf.0.line2.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.line2","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","description":"Town or city; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"London","uniqueKey":"address.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","description":"Town or city; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"London","uniqueKey":"address.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.city","typeLabel":"string | null"},"county":{"oneOf":[{"type":"string","description":"County; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Greater London","uniqueKey":"address.oneOf.0.county.oneOf.0","typeLabel":"string"},{"type":"null","description":"County; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Greater London","uniqueKey":"address.oneOf.0.county.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.county","typeLabel":"string | null"},"postcode":{"oneOf":[{"type":"string","description":"Postcode; checked against HMRC's UK postcode format when countryCode is GB or blank.","example":"SW1A 1AA","uniqueKey":"address.oneOf.0.postcode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Postcode; checked against HMRC's UK postcode format when countryCode is GB or blank.","example":"SW1A 1AA","uniqueKey":"address.oneOf.0.postcode.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.postcode","typeLabel":"string | null"},"countryCode":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code. Defaults to \"GB\" when omitted or blank.","example":"GB","uniqueKey":"address.oneOf.0.countryCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 3166-1 alpha-2 country code. Defaults to \"GB\" when omitted or blank.","example":"GB","uniqueKey":"address.oneOf.0.countryCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.countryCode","typeLabel":"string | null"}},"description":"The employee's home address, reported to HMRC on the FPS; line1, line2, county and city are its address lines.","uniqueKey":"address.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"line1":{"oneOf":[{"type":"string","description":"First line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"123 Main Street"},{"type":"null","description":"First line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"123 Main Street"}]},"line2":{"oneOf":[{"type":"string","description":"Second line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Apt 4B"},{"type":"null","description":"Second line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Apt 4B"}]},"city":{"oneOf":[{"type":"string","description":"Town or city; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"London"},{"type":"null","description":"Town or city; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"London"}]},"county":{"oneOf":[{"type":"string","description":"County; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Greater London"},{"type":"null","description":"County; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Greater London"}]},"postcode":{"oneOf":[{"type":"string","description":"Postcode; checked against HMRC's UK postcode format when countryCode is GB or blank.","example":"SW1A 1AA"},{"type":"null","description":"Postcode; checked against HMRC's UK postcode format when countryCode is GB or blank.","example":"SW1A 1AA"}]},"countryCode":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code. Defaults to \"GB\" when omitted or blank.","example":"GB"},{"type":"null","description":"ISO 3166-1 alpha-2 country code. Defaults to \"GB\" when omitted or blank.","example":"GB"}]}},"description":"The employee's home address, reported to HMRC on the FPS; line1, line2, county and city are its address lines.","uniqueKey":"address.oneOf.1","typeLabel":"null"}],"uniqueKey":"address","typeLabel":"object | null"},"bankAccounts":{"oneOf":[{"type":"array","items":{"type":"object","required":["accountNumber","sortCode"],"properties":{"accountNumber":{"type":"string","description":"UK bank account number. Must be 6-8 digits (zero-padded to 8 for BACS).","example":"12345678","isRequired":true,"uniqueKey":"bankAccounts.oneOf.0.items.[INDEX].accountNumber","typeLabel":"string"},"sortCode":{"type":"string","description":"UK bank sort code. Must be 6 digits. Hyphens are stripped before validation.","example":"123456","isRequired":true,"uniqueKey":"bankAccounts.oneOf.0.items.[INDEX].sortCode","typeLabel":"string"},"accountHolderName":{"type":"string","description":"Name of the account holder. Optional — falls back to employee name for payment files.","example":"John Smith","uniqueKey":"bankAccounts.oneOf.0.items.[INDEX].accountHolderName","typeLabel":"string"},"isPrimaryPayrollAccount":{"type":"boolean","description":"At least one bank account must be set as primary.","example":true,"uniqueKey":"bankAccounts.oneOf.0.items.[INDEX].isPrimaryPayrollAccount","typeLabel":"boolean"},"allocationPercentage":{"type":"integer","format":"int32","description":"Percentage of salary allocated to this account. All accounts must total 100%.","example":100,"uniqueKey":"bankAccounts.oneOf.0.items.[INDEX].allocationPercentage","typeLabel":"integer\u003cint32>"}},"uniqueKey":"bankAccounts.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"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.","uniqueKey":"bankAccounts.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["accountNumber","sortCode"],"properties":{"accountNumber":{"type":"string","description":"UK bank account number. Must be 6-8 digits (zero-padded to 8 for BACS).","example":"12345678"},"sortCode":{"type":"string","description":"UK bank sort code. Must be 6 digits. Hyphens are stripped before validation.","example":"123456"},"accountHolderName":{"type":"string","description":"Name of the account holder. Optional — falls back to employee name for payment files.","example":"John Smith"},"isPrimaryPayrollAccount":{"type":"boolean","description":"At least one bank account must be set as primary.","example":true},"allocationPercentage":{"type":"integer","format":"int32","description":"Percentage of salary allocated to this account. All accounts must total 100%.","example":100}}},"description":"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.","uniqueKey":"bankAccounts.oneOf.1","typeLabel":"null"}],"uniqueKey":"bankAccounts","typeLabel":"object[] | null"},"studentDetails":{"oneOf":[{"type":"object","description":"The employee's student loan and postgraduate loan plans, with the dates each starts and ends.","properties":{"studentLoanDetails":{"oneOf":[{"type":"object","description":"The details of the student loan","properties":{"loanType":{"type":"string","enum":["Plan1","Plan2","Plan4","Plan5"],"description":"Type of student loan","example":"Plan2","uniqueKey":"studentDetails.oneOf.0.studentLoanDetails.oneOf.0.loanType","typeLabel":"enum\u003cstring>"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the student loan","example":"2010-09-01","uniqueKey":"studentDetails.oneOf.0.studentLoanDetails.oneOf.0.startDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The start date of the student loan","example":"2010-09-01","uniqueKey":"studentDetails.oneOf.0.studentLoanDetails.oneOf.0.startDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"studentDetails.oneOf.0.studentLoanDetails.oneOf.0.startDate","typeLabel":"string | null"},"endDate":{"oneOf":[{"type":"string","description":"The end date of the student loan","example":"2025-07-31","uniqueKey":"studentDetails.oneOf.0.studentLoanDetails.oneOf.0.endDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The end date of the student loan","example":"2025-07-31","uniqueKey":"studentDetails.oneOf.0.studentLoanDetails.oneOf.0.endDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"studentDetails.oneOf.0.studentLoanDetails.oneOf.0.endDate","typeLabel":"string | null"}},"example":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"},"uniqueKey":"studentDetails.oneOf.0.studentLoanDetails.oneOf.0","typeLabel":"object"},{"type":"null","description":"The details of the student loan","properties":{"loanType":{"type":"string","enum":["Plan1","Plan2","Plan4","Plan5"],"description":"Type of student loan","example":"Plan2"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the student loan","example":"2010-09-01"},{"type":"null","description":"The start date of the student loan","example":"2010-09-01"}]},"endDate":{"oneOf":[{"type":"string","description":"The end date of the student loan","example":"2025-07-31"},{"type":"null","description":"The end date of the student loan","example":"2025-07-31"}]}},"example":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"},"uniqueKey":"studentDetails.oneOf.0.studentLoanDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"studentDetails.oneOf.0.studentLoanDetails","typeLabel":"object | null"},"postgraduateLoanDetails":{"oneOf":[{"type":"object","description":"The details of the postgraduate loan","properties":{"loanType":{"type":"string","enum":["PostgraduateLoan"],"description":"Type of postgraduate loan","example":"PostgraduateLoan","uniqueKey":"studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.loanType","typeLabel":"enum\u003cstring>"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the postgraduate loan","example":"2015-09-01","uniqueKey":"studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.startDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The start date of the postgraduate loan","example":"2015-09-01","uniqueKey":"studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.startDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.startDate","typeLabel":"string | null"},"endDate":{"oneOf":[{"type":"string","description":"The end date of the postgraduate loan","example":"2028-07-31","uniqueKey":"studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.endDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The end date of the postgraduate loan","example":"2028-07-31","uniqueKey":"studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.endDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.endDate","typeLabel":"string | null"}},"example":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"},"uniqueKey":"studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0","typeLabel":"object"},{"type":"null","description":"The details of the postgraduate loan","properties":{"loanType":{"type":"string","enum":["PostgraduateLoan"],"description":"Type of postgraduate loan","example":"PostgraduateLoan"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the postgraduate loan","example":"2015-09-01"},{"type":"null","description":"The start date of the postgraduate loan","example":"2015-09-01"}]},"endDate":{"oneOf":[{"type":"string","description":"The end date of the postgraduate loan","example":"2028-07-31"},{"type":"null","description":"The end date of the postgraduate loan","example":"2028-07-31"}]}},"example":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"},"uniqueKey":"studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"studentDetails.oneOf.0.postgraduateLoanDetails","typeLabel":"object | null"}},"example":{"studentLoanDetails":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"},"postgraduateLoanDetails":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"}},"uniqueKey":"studentDetails.oneOf.0","typeLabel":"object"},{"type":"null","description":"The employee's student loan and postgraduate loan plans, with the dates each starts and ends.","properties":{"studentLoanDetails":{"oneOf":[{"type":"object","description":"The details of the student loan","properties":{"loanType":{"type":"string","enum":["Plan1","Plan2","Plan4","Plan5"],"description":"Type of student loan","example":"Plan2"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the student loan","example":"2010-09-01"},{"type":"null","description":"The start date of the student loan","example":"2010-09-01"}]},"endDate":{"oneOf":[{"type":"string","description":"The end date of the student loan","example":"2025-07-31"},{"type":"null","description":"The end date of the student loan","example":"2025-07-31"}]}},"example":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"}},{"type":"null","description":"The details of the student loan","properties":{"loanType":{"type":"string","enum":["Plan1","Plan2","Plan4","Plan5"],"description":"Type of student loan","example":"Plan2"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the student loan","example":"2010-09-01"},{"type":"null","description":"The start date of the student loan","example":"2010-09-01"}]},"endDate":{"oneOf":[{"type":"string","description":"The end date of the student loan","example":"2025-07-31"},{"type":"null","description":"The end date of the student loan","example":"2025-07-31"}]}},"example":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"}}]},"postgraduateLoanDetails":{"oneOf":[{"type":"object","description":"The details of the postgraduate loan","properties":{"loanType":{"type":"string","enum":["PostgraduateLoan"],"description":"Type of postgraduate loan","example":"PostgraduateLoan"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the postgraduate loan","example":"2015-09-01"},{"type":"null","description":"The start date of the postgraduate loan","example":"2015-09-01"}]},"endDate":{"oneOf":[{"type":"string","description":"The end date of the postgraduate loan","example":"2028-07-31"},{"type":"null","description":"The end date of the postgraduate loan","example":"2028-07-31"}]}},"example":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"}},{"type":"null","description":"The details of the postgraduate loan","properties":{"loanType":{"type":"string","enum":["PostgraduateLoan"],"description":"Type of postgraduate loan","example":"PostgraduateLoan"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the postgraduate loan","example":"2015-09-01"},{"type":"null","description":"The start date of the postgraduate loan","example":"2015-09-01"}]},"endDate":{"oneOf":[{"type":"string","description":"The end date of the postgraduate loan","example":"2028-07-31"},{"type":"null","description":"The end date of the postgraduate loan","example":"2028-07-31"}]}},"example":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"}}]}},"example":{"studentLoanDetails":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"},"postgraduateLoanDetails":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"}},"uniqueKey":"studentDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"studentDetails","typeLabel":"object | null"},"tags":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The tag's name within its group.","example":"FullTime","uniqueKey":"tags.oneOf.0.items.[INDEX].name","typeLabel":"string"},"group":{"type":"string","description":"The group the tag belongs to.","example":"EmploymentType","uniqueKey":"tags.oneOf.0.items.[INDEX].group","typeLabel":"string"},"value":{"type":"string","description":"The tag's value for that name.","example":"FullTime","uniqueKey":"tags.oneOf.0.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"tags.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Tags on the employee, copied onto the employee details of each payslip.","uniqueKey":"tags.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"name":{"type":"string","description":"The tag's name within its group.","example":"FullTime"},"group":{"type":"string","description":"The group the tag belongs to.","example":"EmploymentType"},"value":{"type":"string","description":"The tag's value for that name.","example":"FullTime"}}},"description":"Tags on the employee, copied onto the employee details of each payslip.","uniqueKey":"tags.oneOf.1","typeLabel":"null"}],"uniqueKey":"tags","typeLabel":"object[] | null"},"previousEmployment":{"type":"object","additionalProperties":{"type":"object","description":"Earnings from a previous employer in the same tax year (P45 previous employment). Only grossTaxable and tax are needed for cumulative tax calculations.","properties":{"grossTaxable":{"type":"number","format":"decimal","description":"Taxable gross earnings from the previous employer (P45 taxable pay).","example":15000,"uniqueKey":"previousEmployment.additionalProperties.grossTaxable","typeLabel":"number\u003cdecimal>"},"tax":{"type":"number","format":"decimal","description":"Tax paid at the previous employer (P45 tax paid).","example":3000,"uniqueKey":"previousEmployment.additionalProperties.tax","typeLabel":"number\u003cdecimal>"}},"uniqueKey":"previousEmployment.additionalProperties","typeLabel":"object"},"description":"Earnings from a previous employer in the same tax year. Used for cumulative tax calculations only. Does not affect FPS reporting.","example":{"2026":{"grossTaxable":15000,"tax":3000}},"uniqueKey":"previousEmployment","typeLabel":"object"},"gender":{"oneOf":[{"type":"string","description":"The employee's gender as free text, stored and returned as sent; birthGender is the value reported to HMRC.","example":"Male","uniqueKey":"gender.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's gender as free text, stored and returned as sent; birthGender is the value reported to HMRC.","example":"Male","uniqueKey":"gender.oneOf.1","typeLabel":"null"}],"uniqueKey":"gender","typeLabel":"string | null"},"secondaryPhone":{"oneOf":[{"type":"string","description":"An optional second phone number for the employee, stored and returned as sent.","uniqueKey":"secondaryPhone.oneOf.0","typeLabel":"string"},{"type":"null","description":"An optional second phone number for the employee, stored and returned as sent.","uniqueKey":"secondaryPhone.oneOf.1","typeLabel":"null"}],"uniqueKey":"secondaryPhone","typeLabel":"string | null"},"passportNumber":{"oneOf":[{"type":"string","description":"The employee's passport number, reported to HMRC on the FPS; 1 to 35 letters, numbers, spaces and standard punctuation.","example":"123456789","uniqueKey":"passportNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's passport number, reported to HMRC on the FPS; 1 to 35 letters, numbers, spaces and standard punctuation.","example":"123456789","uniqueKey":"passportNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"passportNumber","typeLabel":"string | null"},"previousNames":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"previousNames.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Names the employee was previously known by; each must meet the same rules as a name and none may repeat.","example":["John Doe"],"uniqueKey":"previousNames.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Names the employee was previously known by; each must meet the same rules as a name and none may repeat.","example":["John Doe"],"uniqueKey":"previousNames.oneOf.1","typeLabel":"null"}],"uniqueKey":"previousNames","typeLabel":"string[] | null"},"directorDetails":{"oneOf":[{"type":"object","properties":{"directorsNICType":{"type":"string","enum":["Annual","Alternative"],"description":"Director's National Insurance contribution calculation method. Put 'Annual' if you're using the standard annual method of work out the director's National Insurance contributions, or 'Alternative' if you're using the alternative method","example":"Annual","uniqueKey":"directorDetails.oneOf.0.directorsNICType","typeLabel":"enum\u003cstring>"},"appointmentDate":{"type":"string","description":"The date of appointment of the employee's director.","example":"2024-01-15","uniqueKey":"directorDetails.oneOf.0.appointmentDate","typeLabel":"string"},"endDate":{"oneOf":[{"type":"string","description":"The date the employee ceased to be a director.","example":"2025-03-31","uniqueKey":"directorDetails.oneOf.0.endDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date the employee ceased to be a director.","example":"2025-03-31","uniqueKey":"directorDetails.oneOf.0.endDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"directorDetails.oneOf.0.endDate","typeLabel":"string | null"}},"description":"Set when the employee is a director: the director's NI calculation method, appointment date and, once it ends, the end date.","uniqueKey":"directorDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"directorsNICType":{"type":"string","enum":["Annual","Alternative"],"description":"Director's National Insurance contribution calculation method. Put 'Annual' if you're using the standard annual method of work out the director's National Insurance contributions, or 'Alternative' if you're using the alternative method","example":"Annual"},"appointmentDate":{"type":"string","description":"The date of appointment of the employee's director.","example":"2024-01-15"},"endDate":{"oneOf":[{"type":"string","description":"The date the employee ceased to be a director.","example":"2025-03-31"},{"type":"null","description":"The date the employee ceased to be a director.","example":"2025-03-31"}]}},"description":"Set when the employee is a director: the director's NI calculation method, appointment date and, once it ends, the end date.","uniqueKey":"directorDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"directorDetails","typeLabel":"object | null"},"isIrregularEmployment":{"oneOf":[{"type":"boolean","description":"Whether the employee is paid on an irregular pattern, reported to HMRC on the FPS; treated as false when absent.","example":false,"uniqueKey":"isIrregularEmployment.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the employee is paid on an irregular pattern, reported to HMRC on the FPS; treated as false when absent.","example":false,"uniqueKey":"isIrregularEmployment.oneOf.1","typeLabel":"null"}],"uniqueKey":"isIrregularEmployment","typeLabel":"boolean | null"},"isOffPayrollWorker":{"oneOf":[{"type":"boolean","description":"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,"uniqueKey":"isOffPayrollWorker.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"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,"uniqueKey":"isOffPayrollWorker.oneOf.1","typeLabel":"null"}],"uniqueKey":"isOffPayrollWorker","typeLabel":"boolean | null"},"workplaceDetails":{"oneOf":[{"type":"object","properties":{"workplacePostcode":{"oneOf":[{"type":"string","description":"The postcode of the workplace this employee reports to.","example":"E1 6AN","uniqueKey":"workplaceDetails.oneOf.0.workplacePostcode.oneOf.0","typeLabel":"string"},{"type":"null","description":"The postcode of the workplace this employee reports to.","example":"E1 6AN","uniqueKey":"workplaceDetails.oneOf.0.workplacePostcode.oneOf.1","typeLabel":"null"}],"uniqueKey":"workplaceDetails.oneOf.0.workplacePostcode","typeLabel":"string | null"}},"description":"Where the employee works; its workplace postcode is reported to HMRC on the FPS.","uniqueKey":"workplaceDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"workplacePostcode":{"oneOf":[{"type":"string","description":"The postcode of the workplace this employee reports to.","example":"E1 6AN"},{"type":"null","description":"The postcode of the workplace this employee reports to.","example":"E1 6AN"}]}},"description":"Where the employee works; its workplace postcode is reported to HMRC on the FPS.","uniqueKey":"workplaceDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"workplaceDetails","typeLabel":"object | null"},"workingDays":{"oneOf":[{"type":"object","description":"The employee's working pattern in force today; its dated history is kept by the employee working pattern endpoints.","properties":{"standardWorkingDays":{"oneOf":[{"type":"object","description":"Standard working days configuration","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.standardWorkingDays.oneOf.0.monday","typeLabel":"boolean"},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.standardWorkingDays.oneOf.0.tuesday","typeLabel":"boolean"},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.standardWorkingDays.oneOf.0.wednesday","typeLabel":"boolean"},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.standardWorkingDays.oneOf.0.thursday","typeLabel":"boolean"},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.standardWorkingDays.oneOf.0.friday","typeLabel":"boolean"},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false,"uniqueKey":"workingDays.oneOf.0.standardWorkingDays.oneOf.0.saturday","typeLabel":"boolean"},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false,"uniqueKey":"workingDays.oneOf.0.standardWorkingDays.oneOf.0.sunday","typeLabel":"boolean"}},"example":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"uniqueKey":"workingDays.oneOf.0.standardWorkingDays.oneOf.0","typeLabel":"object"},{"type":"null","description":"Standard working days configuration","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}},"example":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"uniqueKey":"workingDays.oneOf.0.standardWorkingDays.oneOf.1","typeLabel":"null"}],"uniqueKey":"workingDays.oneOf.0.standardWorkingDays","typeLabel":"object | null"},"shiftPattern":{"oneOf":[{"type":"object","description":"Shift pattern configuration (if applicable)","required":["rotationStartDate","shifts"],"properties":{"rotationStartDate":{"type":"string","format":"date","description":"The date when the shift pattern rotation begins","example":"2024-01-01","isRequired":true,"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.rotationStartDate","typeLabel":"string\u003cdate>"},"shifts":{"type":"array","items":{"type":"object","description":"One shift within a rotation: the days worked, and how long the shift lasts before the rotation moves on to the next entry in the list.","required":["name","workingDays"],"properties":{"name":{"type":"string","description":"Name of the shift","example":"Morning Shift","isRequired":true,"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].name","typeLabel":"string"},"workingDays":{"type":"object","description":"Working days configuration for this shift","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.monday","typeLabel":"boolean"},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.tuesday","typeLabel":"boolean"},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.wednesday","typeLabel":"boolean"},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.thursday","typeLabel":"boolean"},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.friday","typeLabel":"boolean"},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false,"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.saturday","typeLabel":"boolean"},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false,"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.sunday","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays","typeLabel":"object"},"durationInDays":{"type":"integer","format":"int32","description":"How many days this shift lasts before the next one starts. Use 7 for a shift covering a whole week.","example":5,"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].durationInDays","typeLabel":"integer\u003cint32>"}},"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX]","typeLabel":"object"},"description":"The shifts making up one cycle, in the order they are worked. Only read when patternType is \"Custom\".","example":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}],"isRequired":true,"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.shifts","typeLabel":"object[]"},"patternType":{"type":"string","enum":["Custom","FourFourFive","FourOnFourOff","ThreeOnThreeOff","TwoOnTwoOff","FiveOnTwoOff"],"description":"Type of shift pattern","example":"FourOnFourOff","uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0.patternType","typeLabel":"enum\u003cstring>"}},"example":{"rotationStartDate":"2024-01-01","shifts":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}],"patternType":"FourOnFourOff"},"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.0","typeLabel":"object"},{"type":"null","description":"Shift pattern configuration (if applicable)","required":["rotationStartDate","shifts"],"properties":{"rotationStartDate":{"type":"string","format":"date","description":"The date when the shift pattern rotation begins","example":"2024-01-01"},"shifts":{"type":"array","items":{"type":"object","description":"One shift within a rotation: the days worked, and how long the shift lasts before the rotation moves on to the next entry in the list.","required":["name","workingDays"],"properties":{"name":{"type":"string","description":"Name of the shift","example":"Morning Shift"},"workingDays":{"type":"object","description":"Working days configuration for this shift","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}}},"durationInDays":{"type":"integer","format":"int32","description":"How many days this shift lasts before the next one starts. Use 7 for a shift covering a whole week.","example":5}}},"description":"The shifts making up one cycle, in the order they are worked. Only read when patternType is \"Custom\".","example":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}]},"patternType":{"type":"string","enum":["Custom","FourFourFive","FourOnFourOff","ThreeOnThreeOff","TwoOnTwoOff","FiveOnTwoOff"],"description":"Type of shift pattern","example":"FourOnFourOff"}},"example":{"rotationStartDate":"2024-01-01","shifts":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}],"patternType":"FourOnFourOff"},"uniqueKey":"workingDays.oneOf.0.shiftPattern.oneOf.1","typeLabel":"null"}],"uniqueKey":"workingDays.oneOf.0.shiftPattern","typeLabel":"object | null"},"workingPattern":{"type":"string","enum":["Standard","Shift","Explicit"],"description":"Type of working pattern","example":"Standard","uniqueKey":"workingDays.oneOf.0.workingPattern","typeLabel":"enum\u003cstring>"},"explicitSchedule":{"oneOf":[{"type":"object","description":"Explicit week-by-week schedule, used when workingPattern is \"Explicit\"","required":["weeks"],"properties":{"weeks":{"type":"array","items":{"type":"object","description":"The working days for a single calendar week within an explicit schedule.","required":["weekCommencing","workingDays"],"properties":{"weekCommencing":{"type":"string","description":"The date this week starts on (any weekday; a 7-day block). Format YYYY-MM-DD.","example":"2026-07-06","isRequired":true,"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].weekCommencing","typeLabel":"string"},"workingDays":{"type":"object","description":"Which days of that week are worked.","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.monday","typeLabel":"boolean"},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.tuesday","typeLabel":"boolean"},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.wednesday","typeLabel":"boolean"},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.thursday","typeLabel":"boolean"},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true,"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.friday","typeLabel":"boolean"},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false,"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.saturday","typeLabel":"boolean"},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false,"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.sunday","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays","typeLabel":"object"}},"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX]","typeLabel":"object"},"description":"The scheduled weeks. A week that is not listed counts as not worked.","isRequired":true,"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks","typeLabel":"object[]"}},"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.0","typeLabel":"object"},{"type":"null","description":"Explicit week-by-week schedule, used when workingPattern is \"Explicit\"","required":["weeks"],"properties":{"weeks":{"type":"array","items":{"type":"object","description":"The working days for a single calendar week within an explicit schedule.","required":["weekCommencing","workingDays"],"properties":{"weekCommencing":{"type":"string","description":"The date this week starts on (any weekday; a 7-day block). Format YYYY-MM-DD.","example":"2026-07-06"},"workingDays":{"type":"object","description":"Which days of that week are worked.","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}}}}},"description":"The scheduled weeks. A week that is not listed counts as not worked."}},"uniqueKey":"workingDays.oneOf.0.explicitSchedule.oneOf.1","typeLabel":"null"}],"uniqueKey":"workingDays.oneOf.0.explicitSchedule","typeLabel":"object | null"}},"uniqueKey":"workingDays.oneOf.0","typeLabel":"object"},{"type":"null","description":"The employee's working pattern in force today; its dated history is kept by the employee working pattern endpoints.","properties":{"standardWorkingDays":{"oneOf":[{"type":"object","description":"Standard working days configuration","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}},"example":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false}},{"type":"null","description":"Standard working days configuration","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}},"example":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false}}]},"shiftPattern":{"oneOf":[{"type":"object","description":"Shift pattern configuration (if applicable)","required":["rotationStartDate","shifts"],"properties":{"rotationStartDate":{"type":"string","format":"date","description":"The date when the shift pattern rotation begins","example":"2024-01-01"},"shifts":{"type":"array","items":{"type":"object","description":"One shift within a rotation: the days worked, and how long the shift lasts before the rotation moves on to the next entry in the list.","required":["name","workingDays"],"properties":{"name":{"type":"string","description":"Name of the shift","example":"Morning Shift"},"workingDays":{"type":"object","description":"Working days configuration for this shift","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}}},"durationInDays":{"type":"integer","format":"int32","description":"How many days this shift lasts before the next one starts. Use 7 for a shift covering a whole week.","example":5}}},"description":"The shifts making up one cycle, in the order they are worked. Only read when patternType is \"Custom\".","example":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}]},"patternType":{"type":"string","enum":["Custom","FourFourFive","FourOnFourOff","ThreeOnThreeOff","TwoOnTwoOff","FiveOnTwoOff"],"description":"Type of shift pattern","example":"FourOnFourOff"}},"example":{"rotationStartDate":"2024-01-01","shifts":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}],"patternType":"FourOnFourOff"}},{"type":"null","description":"Shift pattern configuration (if applicable)","required":["rotationStartDate","shifts"],"properties":{"rotationStartDate":{"type":"string","format":"date","description":"The date when the shift pattern rotation begins","example":"2024-01-01"},"shifts":{"type":"array","items":{"type":"object","description":"One shift within a rotation: the days worked, and how long the shift lasts before the rotation moves on to the next entry in the list.","required":["name","workingDays"],"properties":{"name":{"type":"string","description":"Name of the shift","example":"Morning Shift"},"workingDays":{"type":"object","description":"Working days configuration for this shift","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}}},"durationInDays":{"type":"integer","format":"int32","description":"How many days this shift lasts before the next one starts. Use 7 for a shift covering a whole week.","example":5}}},"description":"The shifts making up one cycle, in the order they are worked. Only read when patternType is \"Custom\".","example":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}]},"patternType":{"type":"string","enum":["Custom","FourFourFive","FourOnFourOff","ThreeOnThreeOff","TwoOnTwoOff","FiveOnTwoOff"],"description":"Type of shift pattern","example":"FourOnFourOff"}},"example":{"rotationStartDate":"2024-01-01","shifts":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}],"patternType":"FourOnFourOff"}}]},"workingPattern":{"type":"string","enum":["Standard","Shift","Explicit"],"description":"Type of working pattern","example":"Standard"},"explicitSchedule":{"oneOf":[{"type":"object","description":"Explicit week-by-week schedule, used when workingPattern is \"Explicit\"","required":["weeks"],"properties":{"weeks":{"type":"array","items":{"type":"object","description":"The working days for a single calendar week within an explicit schedule.","required":["weekCommencing","workingDays"],"properties":{"weekCommencing":{"type":"string","description":"The date this week starts on (any weekday; a 7-day block). Format YYYY-MM-DD.","example":"2026-07-06"},"workingDays":{"type":"object","description":"Which days of that week are worked.","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}}}}},"description":"The scheduled weeks. A week that is not listed counts as not worked."}}},{"type":"null","description":"Explicit week-by-week schedule, used when workingPattern is \"Explicit\"","required":["weeks"],"properties":{"weeks":{"type":"array","items":{"type":"object","description":"The working days for a single calendar week within an explicit schedule.","required":["weekCommencing","workingDays"],"properties":{"weekCommencing":{"type":"string","description":"The date this week starts on (any weekday; a 7-day block). Format YYYY-MM-DD.","example":"2026-07-06"},"workingDays":{"type":"object","description":"Which days of that week are worked.","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}}}}},"description":"The scheduled weeks. A week that is not listed counts as not worked."}}}]}},"uniqueKey":"workingDays.oneOf.1","typeLabel":"null"}],"uniqueKey":"workingDays","typeLabel":"object | null"},"partnerDetails":{"oneOf":[{"type":"object","properties":{"nationalInsuranceNumber":{"oneOf":[{"type":"string","description":"The partner's National Insurance number; optional, and checked against the NI number format when sent.","example":"QQ654321A","uniqueKey":"partnerDetails.oneOf.0.nationalInsuranceNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"The partner's National Insurance number; optional, and checked against the NI number format when sent.","example":"QQ654321A","uniqueKey":"partnerDetails.oneOf.0.nationalInsuranceNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"partnerDetails.oneOf.0.nationalInsuranceNumber","typeLabel":"string | null"},"name":{"type":"object","required":["firstName","lastName"],"properties":{"firstName":{"type":"string","description":"The first forename, reported to HMRC; 1 to 35 characters starting with a letter, using letters, spaces, hyphens and apostrophes.","example":"John","isRequired":true,"uniqueKey":"partnerDetails.oneOf.0.name.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"The surname, reported to HMRC; 1 to 35 characters starting with a letter, using letters, spaces, hyphens and apostrophes.","example":"Smith","isRequired":true,"uniqueKey":"partnerDetails.oneOf.0.name.lastName","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"The person's title, such as Mr or Ms; optional, and checked against HMRC's title rules when sent.","example":"Mr","uniqueKey":"partnerDetails.oneOf.0.name.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The person's title, such as Mr or Ms; optional, and checked against HMRC's title rules when sent.","example":"Mr","uniqueKey":"partnerDetails.oneOf.0.name.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"partnerDetails.oneOf.0.name.title","typeLabel":"string | null"},"initials":{"oneOf":[{"type":"string","description":"The employee's initials.","uniqueKey":"partnerDetails.oneOf.0.name.initials.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's initials.","uniqueKey":"partnerDetails.oneOf.0.name.initials.oneOf.1","typeLabel":"null"}],"uniqueKey":"partnerDetails.oneOf.0.name.initials","typeLabel":"string | null"},"middleName":{"oneOf":[{"type":"string","description":"A second forename; optional, and checked against the same rules as firstName when sent.","example":"Edward","uniqueKey":"partnerDetails.oneOf.0.name.middleName.oneOf.0","typeLabel":"string"},{"type":"null","description":"A second forename; optional, and checked against the same rules as firstName when sent.","example":"Edward","uniqueKey":"partnerDetails.oneOf.0.name.middleName.oneOf.1","typeLabel":"null"}],"uniqueKey":"partnerDetails.oneOf.0.name.middleName","typeLabel":"string | null"}},"description":"The partner's name, reported to HMRC on the FPS with the first payment of Shared Parental Pay.","uniqueKey":"partnerDetails.oneOf.0.name","typeLabel":"object"}},"description":"The employee's partner, reported to HMRC on the FPS with the first payment of Shared Parental Pay.","uniqueKey":"partnerDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"nationalInsuranceNumber":{"oneOf":[{"type":"string","description":"The partner's National Insurance number; optional, and checked against the NI number format when sent.","example":"QQ654321A"},{"type":"null","description":"The partner's National Insurance number; optional, and checked against the NI number format when sent.","example":"QQ654321A"}]},"name":{"type":"object","required":["firstName","lastName"],"properties":{"title":{"oneOf":[{"type":"string","description":"The person's title, such as Mr or Ms; optional, and checked against HMRC's title rules when sent.","example":"Mr"},{"type":"null","description":"The person's title, such as Mr or Ms; optional, and checked against HMRC's title rules when sent.","example":"Mr"}]},"firstName":{"type":"string","description":"The first forename, reported to HMRC; 1 to 35 characters starting with a letter, using letters, spaces, hyphens and apostrophes.","example":"John"},"lastName":{"type":"string","description":"The surname, reported to HMRC; 1 to 35 characters starting with a letter, using letters, spaces, hyphens and apostrophes.","example":"Smith"},"initials":{"oneOf":[{"type":"string","description":"The employee's initials."},{"type":"null","description":"The employee's initials."}]},"middleName":{"oneOf":[{"type":"string","description":"A second forename; optional, and checked against the same rules as firstName when sent.","example":"Edward"},{"type":"null","description":"A second forename; optional, and checked against the same rules as firstName when sent.","example":"Edward"}]}},"description":"The partner's name, reported to HMRC on the FPS with the first payment of Shared Parental Pay."}},"description":"The employee's partner, reported to HMRC on the FPS with the first payment of Shared Parental Pay.","uniqueKey":"partnerDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"partnerDetails","typeLabel":"object | null"},"department":{"oneOf":[{"type":"string","description":"The employee's department as free text, copied onto the employee details of each payslip.","example":"Engineering","uniqueKey":"department.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's department as free text, copied onto the employee details of each payslip.","example":"Engineering","uniqueKey":"department.oneOf.1","typeLabel":"null"}],"uniqueKey":"department","typeLabel":"string | null"},"jobTitle":{"oneOf":[{"type":"string","description":"The employee's job title as free text, copied onto the employee details of each payslip.","example":"Software Engineer","uniqueKey":"jobTitle.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's job title as free text, copied onto the employee details of each payslip.","example":"Software Engineer","uniqueKey":"jobTitle.oneOf.1","typeLabel":"null"}],"uniqueKey":"jobTitle","typeLabel":"string | null"},"payrollId":{"oneOf":[{"type":"string","description":"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","uniqueKey":"payrollId.oneOf.0","typeLabel":"string"},{"type":"null","description":"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","uniqueKey":"payrollId.oneOf.1","typeLabel":"null"}],"uniqueKey":"payrollId","typeLabel":"string | null"},"payrollIdChanged":{"oneOf":[{"type":"object","description":"The employee's previous payroll ID, stored as sent and reported to HMRC on the FPS as a payroll ID change.","properties":{"oldPayId":{"oneOf":[{"type":"string","description":"The payroll id this employee had before it was changed.","uniqueKey":"payrollIdChanged.oneOf.0.oldPayId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The payroll id this employee had before it was changed.","uniqueKey":"payrollIdChanged.oneOf.0.oldPayId.oneOf.1","typeLabel":"null"}],"uniqueKey":"payrollIdChanged.oneOf.0.oldPayId","typeLabel":"string | null"}},"uniqueKey":"payrollIdChanged.oneOf.0","typeLabel":"object"},{"type":"null","description":"The employee's previous payroll ID, stored as sent and reported to HMRC on the FPS as a payroll ID change.","properties":{"oldPayId":{"oneOf":[{"type":"string","description":"The payroll id this employee had before it was changed."},{"type":"null","description":"The payroll id this employee had before it was changed."}]}},"uniqueKey":"payrollIdChanged.oneOf.1","typeLabel":"null"}],"uniqueKey":"payrollIdChanged","typeLabel":"object | null"},"payrollConfigId":{"oneOf":[{"type":"string","description":"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","uniqueKey":"payrollConfigId.oneOf.0","typeLabel":"string"},{"type":"null","description":"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","uniqueKey":"payrollConfigId.oneOf.1","typeLabel":"null"}],"uniqueKey":"payrollConfigId","typeLabel":"string | null"},"openingBalance":{"type":"object","additionalProperties":{"type":"object","description":"The earnings to date for the employee","properties":{"gross":{"type":"number","format":"decimal","description":"The total gross earnings to date","example":25000,"uniqueKey":"openingBalance.additionalProperties.gross","typeLabel":"number\u003cdecimal>"},"tax":{"type":"number","format":"decimal","description":"The total tax paid to date","example":5000,"uniqueKey":"openingBalance.additionalProperties.tax","typeLabel":"number\u003cdecimal>"},"taxable":{"type":"number","format":"decimal","description":"The total taxable earnings to date","example":24000,"uniqueKey":"openingBalance.additionalProperties.taxable","typeLabel":"number\u003cdecimal>"},"ni":{"type":"number","format":"decimal","description":"The total National Insurance contributions to date","example":2000,"uniqueKey":"openingBalance.additionalProperties.ni","typeLabel":"number\u003cdecimal>"},"employerNi":{"type":"number","format":"decimal","description":"The total employer National Insurance contributions to date","example":2500,"uniqueKey":"openingBalance.additionalProperties.employerNi","typeLabel":"number\u003cdecimal>"},"employerClass1ANi":{"type":"number","format":"decimal","description":"The total employer Class 1A National Insurance contributions to date","example":2500,"uniqueKey":"openingBalance.additionalProperties.employerClass1ANi","typeLabel":"number\u003cdecimal>"},"studentLoan":{"type":"number","format":"decimal","description":"The total student loan repayments to date","example":500,"uniqueKey":"openingBalance.additionalProperties.studentLoan","typeLabel":"number\u003cdecimal>"},"postgraduateLoan":{"type":"number","format":"decimal","description":"The total postgraduate loan repayments to date","example":300,"uniqueKey":"openingBalance.additionalProperties.postgraduateLoan","typeLabel":"number\u003cdecimal>"},"net":{"type":"number","format":"decimal","description":"The total net earnings to date","example":17200,"uniqueKey":"openingBalance.additionalProperties.net","typeLabel":"number\u003cdecimal>"},"netDeductions":{"type":"number","format":"decimal","description":"Deductions taken from net pay, to date.","uniqueKey":"openingBalance.additionalProperties.netDeductions","typeLabel":"number\u003cdecimal>"},"totalEmployerCost":{"type":"number","format":"decimal","description":"The total employer cost to date","example":27500,"uniqueKey":"openingBalance.additionalProperties.totalEmployerCost","typeLabel":"number\u003cdecimal>"},"totalCost":{"type":"number","format":"decimal","description":"The total cost to date","example":30000,"uniqueKey":"openingBalance.additionalProperties.totalCost","typeLabel":"number\u003cdecimal>"},"grossForEmployeeNi":{"type":"number","format":"decimal","description":"The gross earnings for employee NI calculations to date","example":25000,"uniqueKey":"openingBalance.additionalProperties.grossForEmployeeNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerNi":{"type":"number","format":"decimal","description":"The gross earnings for employer NI calculations to date","example":25000,"uniqueKey":"openingBalance.additionalProperties.grossForEmployerNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerClass1ANi":{"type":"number","format":"decimal","description":"The gross earnings for employer Class 1A NI calculations to date","example":25000,"uniqueKey":"openingBalance.additionalProperties.grossForEmployerClass1ANi","typeLabel":"number\u003cdecimal>"},"pension":{"type":"number","format":"decimal","description":"Deprecated as input: the employee's total pension contributions to date. Send 'pensionContributionsByType' instead (employee contributions broken down by pension scheme type) so FPS YTD reporting can split NetPayArrangement vs ReliefAtSource correctly. On responses, this field is always populated as the sum of 'pensionContributionsByType' for client convenience. Will be removed from input in a future version.","example":500,"deprecated":true,"uniqueKey":"openingBalance.additionalProperties.pension","typeLabel":"number\u003cdecimal>"},"employerPension":{"type":"number","format":"decimal","description":"The employer pension contributions to date","example":375,"uniqueKey":"openingBalance.additionalProperties.employerPension","typeLabel":"number\u003cdecimal>"},"grossPensionable":{"type":"number","format":"decimal","description":"The gross pensionable earnings to date","example":25000,"uniqueKey":"openingBalance.additionalProperties.grossPensionable","typeLabel":"number\u003cdecimal>"},"qualifyingEarningsForPension":{"type":"number","format":"decimal","description":"Qualifying earnings for pension, to date.","uniqueKey":"openingBalance.additionalProperties.qualifyingEarningsForPension","typeLabel":"number\u003cdecimal>"},"statutory":{"type":"object","additionalProperties":{"type":"number","format":"decimal","uniqueKey":"openingBalance.additionalProperties.statutory.additionalProperties","typeLabel":"number\u003cdecimal>"},"description":"Dictionary of statutory payment types and amounts. Possible keys: None, StatutorySickPay, StatutoryMaternityPay, StatutoryPaternityPay, StatutoryAdoptionPay, SharedParentalPay, StatutoryParentalBereavementPay, StatutorySharedParentalPay, StatutoryNeoNatalCarePay","example":{"StatutorySickPay":500,"StatutoryMaternityPay":1000},"uniqueKey":"openingBalance.additionalProperties.statutory","typeLabel":"object"},"niBandResult":{"type":"object","additionalProperties":{"type":"object","properties":{"employeeNi":{"type":"number","format":"decimal","description":"Employee National Insurance under this NI category letter.","uniqueKey":"openingBalance.additionalProperties.niBandResult.additionalProperties.employeeNi","typeLabel":"number\u003cdecimal>"},"employerNi":{"type":"number","format":"decimal","description":"Employer National Insurance under this NI category letter.","uniqueKey":"openingBalance.additionalProperties.niBandResult.additionalProperties.employerNi","typeLabel":"number\u003cdecimal>"},"totalNi":{"type":"number","format":"decimal","description":"Employee and employer National Insurance added together.","uniqueKey":"openingBalance.additionalProperties.niBandResult.additionalProperties.totalNi","typeLabel":"number\u003cdecimal>"},"grossForEmployeeNi":{"type":"number","format":"decimal","description":"Earnings that employee National Insurance was worked out on under this letter.","uniqueKey":"openingBalance.additionalProperties.niBandResult.additionalProperties.grossForEmployeeNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerNi":{"type":"number","format":"decimal","description":"Earnings that employer National Insurance was worked out on under this letter.","uniqueKey":"openingBalance.additionalProperties.niBandResult.additionalProperties.grossForEmployerNi","typeLabel":"number\u003cdecimal>"},"bandResults":{"type":"object","additionalProperties":{"type":"object","properties":{"grossInBand":{"type":"number","format":"decimal","description":"Gross pay in this NI band","example":12570,"uniqueKey":"openingBalance.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.grossInBand","typeLabel":"number\u003cdecimal>"},"employeeNiForBand":{"type":"number","format":"decimal","description":"Employee NI contribution for this band","example":0,"uniqueKey":"openingBalance.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.employeeNiForBand","typeLabel":"number\u003cdecimal>"},"employerNiForBand":{"type":"number","format":"decimal","description":"Employer NI contribution for this band","example":0,"uniqueKey":"openingBalance.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.employerNiForBand","typeLabel":"number\u003cdecimal>"}},"uniqueKey":"openingBalance.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties","typeLabel":"object"},"description":"The same figures split by National Insurance band, keyed by band name.","uniqueKey":"openingBalance.additionalProperties.niBandResult.additionalProperties.bandResults","typeLabel":"object"}},"example":{"employeeNi":290.1,"employerNi":310.25,"totalNi":600.35,"grossForEmployeeNi":3500,"grossForEmployerNi":3500,"bandResults":{"PT-UEL":{"grossInBand":2000,"employeeNiForBand":180,"employerNiForBand":220},"UEL+":{"grossInBand":500,"employeeNiForBand":110.1,"employerNiForBand":90.25}}},"uniqueKey":"openingBalance.additionalProperties.niBandResult.additionalProperties","typeLabel":"object"},"description":"Map of NI category letter (single char) to NI calculation results. Keys must be a single letter (A-Z, case insensitive). Example keys: \"A\", \"B\", \"C\", etc. The band splits (bandResults) in each entry cover the whole employment, both stretches — the same coverage as the per-letter scalar totals (gross, contributions). For directors, the portion of these band splits paid while the director basis applied must also be entered in openingBalanceDirector niBandResult[letter].bandResults as a subset of this map, so the annualised calculation can supersede exactly that portion.","uniqueKey":"openingBalance.additionalProperties.niBandResult","typeLabel":"object"},"pensionContributionsByType":{"type":"object","additionalProperties":{"type":"number","format":"decimal","uniqueKey":"openingBalance.additionalProperties.pensionContributionsByType.additionalProperties","typeLabel":"number\u003cdecimal>"},"description":"Employee pension contributions broken down by pension scheme type. This represents the employee's contributions only, as employer contributions are tracked separately via 'employerPension' and are not part of this breakdown. Allowed keys: NetPayArrangement, ReliefAtSource, SalarySacrifice. Required at migration time so FPS YTD reporting (EmpeePenContribnsPaidYTD for NetPayArrangement, EmpeePenContribnsNotPaidYTD for ReliefAtSource) reflects opening-balance contributions correctly. The aggregate 'pension' field on responses is the sum of these values.","example":{"NetPayArrangement":300,"ReliefAtSource":200},"uniqueKey":"openingBalance.additionalProperties.pensionContributionsByType","typeLabel":"object"}},"uniqueKey":"openingBalance.additionalProperties","typeLabel":"object"},"description":"Opening balance for this employment from a different payroll system (migration).","uniqueKey":"openingBalance","typeLabel":"object"},"openingBalanceDirector":{"type":"object","additionalProperties":{"type":"object","description":"Director earnings to date. Only contains the fields relevant to the annual NI calculation for directors. Send niBandResult keyed by NI category letter; when present it is authoritative and the deprecated scalar totals are ignored. When absent, the scalar totals are attributed to the employee's latest effective NI letter for the year — a lossy fallback that cannot express a director who paid NI under more than one letter.","properties":{"grossForEmployeeNi":{"type":"number","format":"decimal","description":"Deprecated as input: send niBandResult instead. Ignored when niBandResult is present. Always populated on responses as the sum across letters.","deprecated":true,"uniqueKey":"openingBalanceDirector.additionalProperties.grossForEmployeeNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerNi":{"type":"number","format":"decimal","description":"Deprecated as input: send niBandResult instead. Ignored when niBandResult is present. Always populated on responses as the sum across letters.","deprecated":true,"uniqueKey":"openingBalanceDirector.additionalProperties.grossForEmployerNi","typeLabel":"number\u003cdecimal>"},"ni":{"type":"number","format":"decimal","description":"Deprecated as input: send niBandResult instead. Ignored when niBandResult is present. Always populated on responses as the sum across letters.","deprecated":true,"uniqueKey":"openingBalanceDirector.additionalProperties.ni","typeLabel":"number\u003cdecimal>"},"employerNi":{"type":"number","format":"decimal","description":"Deprecated as input: send niBandResult instead. Ignored when niBandResult is present. Always populated on responses as the sum across letters.","deprecated":true,"uniqueKey":"openingBalanceDirector.additionalProperties.employerNi","typeLabel":"number\u003cdecimal>"},"niBandResult":{"type":"object","additionalProperties":{"type":"object","description":"Director NI-able earnings, contributions, and band splits accrued under a single NI category letter while the director basis applied.","properties":{"grossForEmployeeNi":{"type":"number","format":"decimal","description":"Gross earnings for employee NI accrued under this letter","uniqueKey":"openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.grossForEmployeeNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerNi":{"type":"number","format":"decimal","description":"Gross earnings for employer NI accrued under this letter","uniqueKey":"openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.grossForEmployerNi","typeLabel":"number\u003cdecimal>"},"employeeNi":{"type":"number","format":"decimal","description":"Employee NI already paid under this letter","uniqueKey":"openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.employeeNi","typeLabel":"number\u003cdecimal>"},"employerNi":{"type":"number","format":"decimal","description":"Employer NI already paid under this letter","uniqueKey":"openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.employerNi","typeLabel":"number\u003cdecimal>"},"bandResults":{"type":"object","additionalProperties":{"type":"object","properties":{"grossInBand":{"type":"number","format":"decimal","description":"Gross pay in this NI band","example":12570,"uniqueKey":"openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.grossInBand","typeLabel":"number\u003cdecimal>"},"employeeNiForBand":{"type":"number","format":"decimal","description":"Employee NI contribution for this band","example":0,"uniqueKey":"openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.employeeNiForBand","typeLabel":"number\u003cdecimal>"},"employerNiForBand":{"type":"number","format":"decimal","description":"Employer NI contribution for this band","example":0,"uniqueKey":"openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.employerNiForBand","typeLabel":"number\u003cdecimal>"}},"uniqueKey":"openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties","typeLabel":"object"},"description":"NI band splits for earnings paid under this letter while the director basis applied — a subset of the main opening balance's niBandResult band splits, which cover the whole employment. This mirrors the per-letter scalar totals: the main opening balance carries the whole-employment figures, this entry carries the director portion, and for a director for the whole year the two are the same values. Populate for the Alternative method: at the annual reassessment the director portion of the accumulated band splits is superseded by the recomputed annual-basis split, and this subset identifies that portion. For the Annual method the values are stored as a record of what was previously reported, but the annualised calculation and FPS reporting re-derive the band split from cumulative gross and ignore what is entered here. Keys are NI band names matching the main opening balance's band split keys.","uniqueKey":"openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.bandResults","typeLabel":"object"}},"uniqueKey":"openingBalanceDirector.additionalProperties.niBandResult.additionalProperties","typeLabel":"object"},"description":"Director NI-able gross, contributions, and band splits broken down by NI category letter — the same name and shape as the main opening balance's niBandResult, dedicated here to earnings paid while the director basis applied (from appointment). Earnings paid before the appointment belong in the main opening balance's niBandResult, which is dedicated to earnings assessed as a regular employee.","uniqueKey":"openingBalanceDirector.additionalProperties.niBandResult","typeLabel":"object"}},"uniqueKey":"openingBalanceDirector.additionalProperties","typeLabel":"object"},"description":"Opening balance for director earnings from a different payroll system (migration). Only NI-relevant fields.","uniqueKey":"openingBalanceDirector","typeLabel":"object"},"leaverDetails":{"oneOf":[{"type":"object","properties":{"leavingDate":{"type":"string","description":"The date the employee left the company.","example":"2024-12-31","uniqueKey":"leaverDetails.oneOf.0.leavingDate","typeLabel":"string"},"reason":{"oneOf":[{"type":"string","description":"The reason the employee left the company.","example":"Retirement","uniqueKey":"leaverDetails.oneOf.0.reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"The reason the employee left the company.","example":"Retirement","uniqueKey":"leaverDetails.oneOf.0.reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"leaverDetails.oneOf.0.reason","typeLabel":"string | null"},"issuedBy":{"oneOf":[{"type":"string","description":"The entity that issued the leaver certificate.","example":"Employer","uniqueKey":"leaverDetails.oneOf.0.issuedBy.oneOf.0","typeLabel":"string"},{"type":"null","description":"The entity that issued the leaver certificate.","example":"Employer","uniqueKey":"leaverDetails.oneOf.0.issuedBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"leaverDetails.oneOf.0.issuedBy","typeLabel":"string | null"},"reportedToHmrc":{"type":"boolean","description":"Whether the leaver details have been reported to HMRC.","example":false,"uniqueKey":"leaverDetails.oneOf.0.reportedToHmrc","typeLabel":"boolean"},"finalisedOnPayslip":{"type":"boolean","description":"Whether the leaver has been reported on a finalised payslip.","uniqueKey":"leaverDetails.oneOf.0.finalisedOnPayslip","typeLabel":"boolean"}},"description":"Leaver details for migrating employees from another system.","uniqueKey":"leaverDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"leavingDate":{"type":"string","description":"The date the employee left the company.","example":"2024-12-31"},"reason":{"oneOf":[{"type":"string","description":"The reason the employee left the company.","example":"Retirement"},{"type":"null","description":"The reason the employee left the company.","example":"Retirement"}]},"issuedBy":{"oneOf":[{"type":"string","description":"The entity that issued the leaver certificate.","example":"Employer"},{"type":"null","description":"The entity that issued the leaver certificate.","example":"Employer"}]},"reportedToHmrc":{"type":"boolean","description":"Whether the leaver details have been reported to HMRC.","example":false},"finalisedOnPayslip":{"type":"boolean","description":"Whether the leaver has been reported on a finalised payslip."}},"description":"Leaver details for migrating employees from another system.","uniqueKey":"leaverDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"leaverDetails","typeLabel":"object | null"},"contractedHoursPerWeek":{"oneOf":[{"type":"number","format":"decimal","description":"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,"uniqueKey":"contractedHoursPerWeek.oneOf.0","typeLabel":"number\u003cdecimal>"},{"type":"null","format":"decimal","description":"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,"uniqueKey":"contractedHoursPerWeek.oneOf.1","typeLabel":"null"}],"uniqueKey":"contractedHoursPerWeek","typeLabel":"number\u003cdecimal> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":{"firstName":"John","lastName":"Smith","title":"Mr","initials":"\u003cstring>","middleName":"Edward"},"email":"john.smith@company.com","birthGender":"Male","birthDate":"1985-07-23","hoursWorkedCategory":"Above30Hours","starterDetails":{"startDate":"2024-01-15","starterDeclaration":"ThisIsMyOnlyJob","secondedDetails":{"stayStatus":"Stay183DaysOrMore","eEACitizen":true,"ePM6":false},"alreadySentToHmrcFps":false},"id":"emp_12345","taxCodesPerYear":{"2025":[{"code":"1257L","effectiveDate":"2025-04-06","reason":"HMRC Update","issuedBy":"HMRC","week1Month1":false}]},"niDetails":{"nationalInsuranceNumber":"QQ123456C","categoriesPerYear":{}},"phone":"\u003cstring>","maritalStatus":"Married","salary":35000,"employeeCode":"EMP001","secondaryEmail":"john.secondary@company.com","address":{"line1":"123 Main Street","line2":"Apt 4B","city":"London","county":"Greater London","postcode":"SW1A 1AA","countryCode":"GB"},"bankAccounts":[{"accountNumber":"12345678","sortCode":"123456","accountHolderName":"John Smith","isPrimaryPayrollAccount":true,"allocationPercentage":100}],"studentDetails":{"studentLoanDetails":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"},"postgraduateLoanDetails":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"}},"tags":[{"name":"FullTime","group":"EmploymentType","value":"FullTime"}],"previousEmployment":{"2026":{"grossTaxable":15000,"tax":3000}},"gender":"Male","secondaryPhone":"\u003cstring>","passportNumber":"123456789","previousNames":["John Doe"],"directorDetails":{"directorsNICType":"Annual","appointmentDate":"2024-01-15","endDate":"2025-03-31"},"isIrregularEmployment":false,"isOffPayrollWorker":false,"workplaceDetails":{"workplacePostcode":"E1 6AN"},"workingDays":{"standardWorkingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"shiftPattern":{"rotationStartDate":"2024-01-01","shifts":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}],"patternType":"FourOnFourOff"},"workingPattern":"Standard","explicitSchedule":{"weeks":[{"weekCommencing":"2026-07-06","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false}}]}},"partnerDetails":{"nationalInsuranceNumber":"QQ654321A"},"department":"Engineering","jobTitle":"Software Engineer","payrollId":"payroll_2023_001","payrollIdChanged":{"oldPayId":"\u003cstring>"},"payrollConfigId":"payroll_config_001","openingBalance":{},"openingBalanceDirector":{},"leaverDetails":{"leavingDate":"2024-12-31","reason":"Retirement","issuedBy":"Employer","reportedToHmrc":false,"finalisedOnPayslip":true},"contractedHoursPerWeek":37.5}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"320860d1-6ac9-4b77-aec2-00f21796bb0d":{"description":"Employee Created","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"object","required":["text","token"],"properties":{"text":{"type":"string","description":"The message in English, ready to show to a user.","isRequired":true,"uniqueKey":"message.text","typeLabel":"string"},"token":{"type":"string","description":"A stable snake_case key for the message, so a client can show its own wording or a translation instead of text.","isRequired":true,"uniqueKey":"message.token","typeLabel":"string"},"tokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"message.tokenArguments","typeLabel":"object[] | null"}},"description":"A readable message about the outcome and a stable token a client can branch on.","isRequired":true,"uniqueKey":"message","typeLabel":"object"},"content":{"type":"object","description":"The data the request returns with its metadata; left out on a response that carries no data, such as most errors.","required":["metadata"],"properties":{"metadata":{"type":"object","required":["dateFormat","dateTimeFormat"],"properties":{"dateFormat":{"type":"string","description":"The format of the dates in this response, yyyy-MM-dd.","isRequired":true,"uniqueKey":"content.metadata.dateFormat","typeLabel":"string"},"dateTimeFormat":{"type":"string","description":"The format of the timestamps in this response, yyyy-MM-ddTHH:mm:ss.fffZ in UTC.","isRequired":true,"uniqueKey":"content.metadata.dateTimeFormat","typeLabel":"string"},"paginationToken":{"oneOf":[{"type":"string","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.0","typeLabel":"string"},{"type":"null","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.metadata.paginationToken","typeLabel":"string | null"}},"description":"The date formats the response uses and, on a paged list, the token for the next page.","isRequired":true,"uniqueKey":"content.metadata","typeLabel":"object"},"data":{"type":"object","description":"The resource or list the request asked for; left out when there is none.","required":["id","payrollConfigId","starterDetails","name","email","birthGender","birthDate","hoursWorkedCategory"],"properties":{"name":{"type":"object","required":["firstName","lastName"],"properties":{"firstName":{"type":"string","description":"The first forename, reported to HMRC; 1 to 35 characters starting with a letter, using letters, spaces, hyphens and apostrophes.","example":"John","isRequired":true,"uniqueKey":"content.data.name.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"The surname, reported to HMRC; 1 to 35 characters starting with a letter, using letters, spaces, hyphens and apostrophes.","example":"Smith","isRequired":true,"uniqueKey":"content.data.name.lastName","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"The person's title, such as Mr or Ms; optional, and checked against HMRC's title rules when sent.","example":"Mr","uniqueKey":"content.data.name.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The person's title, such as Mr or Ms; optional, and checked against HMRC's title rules when sent.","example":"Mr","uniqueKey":"content.data.name.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.name.title","typeLabel":"string | null"},"initials":{"oneOf":[{"type":"string","description":"The employee's initials.","uniqueKey":"content.data.name.initials.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's initials.","uniqueKey":"content.data.name.initials.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.name.initials","typeLabel":"string | null"},"middleName":{"oneOf":[{"type":"string","description":"A second forename; optional, and checked against the same rules as firstName when sent.","example":"Edward","uniqueKey":"content.data.name.middleName.oneOf.0","typeLabel":"string"},{"type":"null","description":"A second forename; optional, and checked against the same rules as firstName when sent.","example":"Edward","uniqueKey":"content.data.name.middleName.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.name.middleName","typeLabel":"string | null"}},"description":"The employee's name as reported to HMRC; the first and last names are required, each 1 to 35 characters starting with a letter.","isRequired":true,"uniqueKey":"content.data.name","typeLabel":"object"},"email":{"type":"string","format":"email","description":"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","isRequired":true,"uniqueKey":"content.data.email","typeLabel":"string\u003cemail>"},"birthGender":{"type":"string","enum":["Male","Female"],"description":"The gender reported to HMRC for the employee on the FPS; required.","example":"Male","isRequired":true,"uniqueKey":"content.data.birthGender","typeLabel":"enum\u003cstring>"},"birthDate":{"type":"string","format":"date","description":"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","isRequired":true,"uniqueKey":"content.data.birthDate","typeLabel":"string\u003cdate>"},"hoursWorkedCategory":{"type":"string","enum":["UpTo16Hours","From16To24Hours","From24To30Hours","Above30Hours","Other"],"description":"The band of normal weekly hours the employee works, reported to HMRC on the FPS; required.","example":"Above30Hours","isRequired":true,"uniqueKey":"content.data.hoursWorkedCategory","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The unique identifier for the employee.","example":"emp_12345","isRequired":true,"uniqueKey":"content.data.id","typeLabel":"string"},"payrollConfigId":{"type":"string","description":"The payroll config the employee is assigned to.","example":"payroll_config_001","isRequired":true,"uniqueKey":"content.data.payrollConfigId","typeLabel":"string"},"starterDetails":{"type":"object","required":["startDate","starterDeclaration"],"properties":{"startDate":{"type":"string","description":"The start date of the employee.","example":"2024-01-15","isRequired":true,"uniqueKey":"content.data.starterDetails.startDate","typeLabel":"string"},"starterDeclaration":{"type":"string","enum":["ThisIsMyFirstJobSince6thApril","ThisIsMyOnlyJob","IHaveAnotherJobOrPension","None"],"description":"The starter declaration of the employee. Use 'ThisIsMyFirstJobSince6thApril', 'ThisIsMyOnlyJob', or 'IHaveAnotherJobOrPension' for a new starter. Use 'None' for an existing employee who has already been reported to HMRC (for example, one migrated mid-year from another payroll provider); in that case alreadySentToHmrcFps must be true.","example":"ThisIsMyOnlyJob","isRequired":true,"uniqueKey":"content.data.starterDetails.starterDeclaration","typeLabel":"enum\u003cstring>"},"secondedDetails":{"oneOf":[{"type":"object","properties":{"stayStatus":{"type":"string","enum":["Stay183DaysOrMore","StayLessThan183Days","InOutUK"],"description":"Indicates the stay status of the employee Allowed values: 'Stay183DaysOrMore', 'StayLessThan183Days', or 'InOutUK'.","example":"Stay183DaysOrMore","uniqueKey":"content.data.starterDetails.secondedDetails.oneOf.0.stayStatus","typeLabel":"enum\u003cstring>"},"eEACitizen":{"type":"boolean","description":"Indicates if the employee is an EEA citizen.","example":true,"uniqueKey":"content.data.starterDetails.secondedDetails.oneOf.0.eEACitizen","typeLabel":"boolean"},"ePM6":{"type":"boolean","description":"Indicator that this is an EPM 6 (modified) scheme","example":false,"uniqueKey":"content.data.starterDetails.secondedDetails.oneOf.0.ePM6","typeLabel":"boolean"}},"description":"For an employee seconded to work in the UK, the secondment details reported to HMRC in place of a starter declaration; cannot be sent with starterDeclaration.","uniqueKey":"content.data.starterDetails.secondedDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"stayStatus":{"type":"string","enum":["Stay183DaysOrMore","StayLessThan183Days","InOutUK"],"description":"Indicates the stay status of the employee Allowed values: 'Stay183DaysOrMore', 'StayLessThan183Days', or 'InOutUK'.","example":"Stay183DaysOrMore"},"eEACitizen":{"type":"boolean","description":"Indicates if the employee is an EEA citizen.","example":true},"ePM6":{"type":"boolean","description":"Indicator that this is an EPM 6 (modified) scheme","example":false}},"description":"For an employee seconded to work in the UK, the secondment details reported to HMRC in place of a starter declaration; cannot be sent with starterDeclaration.","uniqueKey":"content.data.starterDetails.secondedDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.starterDetails.secondedDetails","typeLabel":"object | null"},"alreadySentToHmrcFps":{"type":"boolean","description":"Whether HMRC already has the employee's start date and starter declaration. While false, the next FPS sends them, and it becomes true when HMRC accepts that FPS. Set to false for a new starter. Set to true for an existing employee whose previous payroll already reported them; this is required when starterDeclaration is 'None'. It can be changed at any time: setting it back to false sends the starter details again on the next FPS, and changing the start date or declaration while it is true only updates the employee's record, because HMRC is not sent them again.","example":false,"uniqueKey":"content.data.starterDetails.alreadySentToHmrcFps","typeLabel":"boolean"}},"description":"The employment start date, and the starter declaration or secondment details reported to HMRC on the FPS.","isRequired":true,"uniqueKey":"content.data.starterDetails","typeLabel":"object"},"taxCodesPerYear":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","required":["code"],"properties":{"code":{"type":"string","description":"The tax code for the employee.","example":"1257L","isRequired":true,"uniqueKey":"content.data.taxCodesPerYear.additionalProperties.items.[INDEX].code","typeLabel":"string"},"effectiveDate":{"oneOf":[{"type":"string","description":"The effective date of the tax code, if none is set, created date is used.","example":"2024-04-06","uniqueKey":"content.data.taxCodesPerYear.additionalProperties.items.[INDEX].effectiveDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The effective date of the tax code, if none is set, created date is used.","example":"2024-04-06","uniqueKey":"content.data.taxCodesPerYear.additionalProperties.items.[INDEX].effectiveDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.taxCodesPerYear.additionalProperties.items.[INDEX].effectiveDate","typeLabel":"string | null"},"reason":{"type":"string","description":"Reason for the tax code change","example":"Standard tax code","uniqueKey":"content.data.taxCodesPerYear.additionalProperties.items.[INDEX].reason","typeLabel":"string"},"issuedBy":{"type":"string","description":"Who issued the tax code change. Valid values: 'HMRC', 'Employer'","example":"HMRC","uniqueKey":"content.data.taxCodesPerYear.additionalProperties.items.[INDEX].issuedBy","typeLabel":"string"},"week1Month1":{"type":"boolean","description":"Whether the tax code is week1Month1, meaning basis non cumulative","example":false,"uniqueKey":"content.data.taxCodesPerYear.additionalProperties.items.[INDEX].week1Month1","typeLabel":"boolean"}},"uniqueKey":"content.data.taxCodesPerYear.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"content.data.taxCodesPerYear.additionalProperties","typeLabel":"object[]"},"description":"Tax codes for the employee per tax year","example":{"2025":[{"code":"1257L","effectiveDate":"2025-04-06","reason":"HMRC Update","issuedBy":"HMRC","week1Month1":false}]},"uniqueKey":"content.data.taxCodesPerYear","typeLabel":"object"},"niDetails":{"oneOf":[{"type":"object","properties":{"nationalInsuranceNumber":{"oneOf":[{"type":"string","description":"The National Insurance number for the employee (optional).","example":"QQ123456C","uniqueKey":"content.data.niDetails.oneOf.0.nationalInsuranceNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"The National Insurance number for the employee (optional).","example":"QQ123456C","uniqueKey":"content.data.niDetails.oneOf.0.nationalInsuranceNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.niDetails.oneOf.0.nationalInsuranceNumber","typeLabel":"string | null"},"categoriesPerYear":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","required":["category"],"properties":{"category":{"type":"string","enum":["A","B","C","D","E","F","H","I","J","K","L","M","N","S","V","X","Z"],"description":"HMRC-published NI category letter for payroll submissions.","example":"A","isRequired":true,"uniqueKey":"content.data.niDetails.oneOf.0.categoriesPerYear.additionalProperties.items.[INDEX].category","typeLabel":"enum\u003cstring>"},"effectiveDate":{"type":"string","format":"date","description":"Date when this category becomes effective","example":"2025-04-06","uniqueKey":"content.data.niDetails.oneOf.0.categoriesPerYear.additionalProperties.items.[INDEX].effectiveDate","typeLabel":"string\u003cdate>"},"reason":{"type":"string","description":"Reason for the category","example":"HMRC Update","uniqueKey":"content.data.niDetails.oneOf.0.categoriesPerYear.additionalProperties.items.[INDEX].reason","typeLabel":"string"},"issuedBy":{"type":"string","description":"Who issued the category. Valid values: 'HMRC', 'Employer'","example":"HMRC","uniqueKey":"content.data.niDetails.oneOf.0.categoriesPerYear.additionalProperties.items.[INDEX].issuedBy","typeLabel":"string"}},"uniqueKey":"content.data.niDetails.oneOf.0.categoriesPerYear.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"content.data.niDetails.oneOf.0.categoriesPerYear.additionalProperties","typeLabel":"object[]"},"description":"National Insurance categories organized by tax year","uniqueKey":"content.data.niDetails.oneOf.0.categoriesPerYear","typeLabel":"object"}},"description":"National Insurance details for the employee","uniqueKey":"content.data.niDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"nationalInsuranceNumber":{"oneOf":[{"type":"string","description":"The National Insurance number for the employee (optional).","example":"QQ123456C"},{"type":"null","description":"The National Insurance number for the employee (optional).","example":"QQ123456C"}]},"categoriesPerYear":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","required":["category"],"properties":{"category":{"type":"string","enum":["A","B","C","D","E","F","H","I","J","K","L","M","N","S","V","X","Z"],"description":"HMRC-published NI category letter for payroll submissions.","example":"A"},"effectiveDate":{"type":"string","format":"date","description":"Date when this category becomes effective","example":"2025-04-06"},"reason":{"type":"string","description":"Reason for the category","example":"HMRC Update"},"issuedBy":{"type":"string","description":"Who issued the category. Valid values: 'HMRC', 'Employer'","example":"HMRC"}}}},"description":"National Insurance categories organized by tax year"}},"description":"National Insurance details for the employee","uniqueKey":"content.data.niDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.niDetails","typeLabel":"object | null"},"phone":{"oneOf":[{"type":"string","description":"The employee's primary phone number, stored as sent and carried on the payslip's recipient details.","uniqueKey":"content.data.phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's primary phone number, stored as sent and carried on the payslip's recipient details.","uniqueKey":"content.data.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.phone","typeLabel":"string | null"},"maritalStatus":{"type":"string","enum":["Single","Married","Divorced","Widowed","CivilPartnership","FormerCivilPartnership","SurvivorCivilPartnership"],"description":"The employee's marital status; optional, and refused when it is not one of the listed values.","example":"Married","uniqueKey":"content.data.maritalStatus","typeLabel":"enum\u003cstring>"},"salary":{"oneOf":[{"type":"number","format":"decimal","description":"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.\n","example":35000,"uniqueKey":"content.data.salary.oneOf.0","typeLabel":"number\u003cdecimal>"},{"type":"null","format":"decimal","description":"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.\n","example":35000,"uniqueKey":"content.data.salary.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.salary","typeLabel":"number\u003cdecimal> | null"},"employeeCode":{"oneOf":[{"type":"string","description":"Employee code. An optional identifier for the employee.","example":"EMP001","uniqueKey":"content.data.employeeCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Employee code. An optional identifier for the employee.","example":"EMP001","uniqueKey":"content.data.employeeCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.employeeCode","typeLabel":"string | null"},"secondaryEmail":{"oneOf":[{"type":"string","format":"email","description":"An optional second email address for the employee, checked as an email address when sent.","example":"john.secondary@company.com","uniqueKey":"content.data.secondaryEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"An optional second email address for the employee, checked as an email address when sent.","example":"john.secondary@company.com","uniqueKey":"content.data.secondaryEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.secondaryEmail","typeLabel":"string\u003cemail> | null"},"address":{"oneOf":[{"type":"object","properties":{"line1":{"oneOf":[{"type":"string","description":"First line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"123 Main Street","uniqueKey":"content.data.address.oneOf.0.line1.oneOf.0","typeLabel":"string"},{"type":"null","description":"First line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"123 Main Street","uniqueKey":"content.data.address.oneOf.0.line1.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.address.oneOf.0.line1","typeLabel":"string | null"},"line2":{"oneOf":[{"type":"string","description":"Second line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Apt 4B","uniqueKey":"content.data.address.oneOf.0.line2.oneOf.0","typeLabel":"string"},{"type":"null","description":"Second line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Apt 4B","uniqueKey":"content.data.address.oneOf.0.line2.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.address.oneOf.0.line2","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","description":"Town or city; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"London","uniqueKey":"content.data.address.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","description":"Town or city; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"London","uniqueKey":"content.data.address.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.address.oneOf.0.city","typeLabel":"string | null"},"county":{"oneOf":[{"type":"string","description":"County; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Greater London","uniqueKey":"content.data.address.oneOf.0.county.oneOf.0","typeLabel":"string"},{"type":"null","description":"County; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Greater London","uniqueKey":"content.data.address.oneOf.0.county.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.address.oneOf.0.county","typeLabel":"string | null"},"postcode":{"oneOf":[{"type":"string","description":"Postcode; checked against HMRC's UK postcode format when countryCode is GB or blank.","example":"SW1A 1AA","uniqueKey":"content.data.address.oneOf.0.postcode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Postcode; checked against HMRC's UK postcode format when countryCode is GB or blank.","example":"SW1A 1AA","uniqueKey":"content.data.address.oneOf.0.postcode.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.address.oneOf.0.postcode","typeLabel":"string | null"},"countryCode":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code. Defaults to \"GB\" when omitted or blank.","example":"GB","uniqueKey":"content.data.address.oneOf.0.countryCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 3166-1 alpha-2 country code. Defaults to \"GB\" when omitted or blank.","example":"GB","uniqueKey":"content.data.address.oneOf.0.countryCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.address.oneOf.0.countryCode","typeLabel":"string | null"}},"description":"The employee's home address, reported to HMRC on the FPS; line1, line2, county and city are its address lines.","uniqueKey":"content.data.address.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"line1":{"oneOf":[{"type":"string","description":"First line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"123 Main Street"},{"type":"null","description":"First line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"123 Main Street"}]},"line2":{"oneOf":[{"type":"string","description":"Second line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Apt 4B"},{"type":"null","description":"Second line of the address; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Apt 4B"}]},"city":{"oneOf":[{"type":"string","description":"Town or city; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"London"},{"type":"null","description":"Town or city; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"London"}]},"county":{"oneOf":[{"type":"string","description":"County; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Greater London"},{"type":"null","description":"County; one of the address lines (line1, line2, county, city), each 1 to 35 characters starting with a letter or number.","example":"Greater London"}]},"postcode":{"oneOf":[{"type":"string","description":"Postcode; checked against HMRC's UK postcode format when countryCode is GB or blank.","example":"SW1A 1AA"},{"type":"null","description":"Postcode; checked against HMRC's UK postcode format when countryCode is GB or blank.","example":"SW1A 1AA"}]},"countryCode":{"oneOf":[{"type":"string","description":"ISO 3166-1 alpha-2 country code. Defaults to \"GB\" when omitted or blank.","example":"GB"},{"type":"null","description":"ISO 3166-1 alpha-2 country code. Defaults to \"GB\" when omitted or blank.","example":"GB"}]}},"description":"The employee's home address, reported to HMRC on the FPS; line1, line2, county and city are its address lines.","uniqueKey":"content.data.address.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.address","typeLabel":"object | null"},"bankAccounts":{"oneOf":[{"type":"array","items":{"type":"object","required":["accountNumber","sortCode"],"properties":{"accountNumber":{"type":"string","description":"UK bank account number. Must be 6-8 digits (zero-padded to 8 for BACS).","example":"12345678","isRequired":true,"uniqueKey":"content.data.bankAccounts.oneOf.0.items.[INDEX].accountNumber","typeLabel":"string"},"sortCode":{"type":"string","description":"UK bank sort code. Must be 6 digits. Hyphens are stripped before validation.","example":"123456","isRequired":true,"uniqueKey":"content.data.bankAccounts.oneOf.0.items.[INDEX].sortCode","typeLabel":"string"},"accountHolderName":{"type":"string","description":"Name of the account holder. Optional — falls back to employee name for payment files.","example":"John Smith","uniqueKey":"content.data.bankAccounts.oneOf.0.items.[INDEX].accountHolderName","typeLabel":"string"},"isPrimaryPayrollAccount":{"type":"boolean","description":"At least one bank account must be set as primary.","example":true,"uniqueKey":"content.data.bankAccounts.oneOf.0.items.[INDEX].isPrimaryPayrollAccount","typeLabel":"boolean"},"allocationPercentage":{"type":"integer","format":"int32","description":"Percentage of salary allocated to this account. All accounts must total 100%.","example":100,"uniqueKey":"content.data.bankAccounts.oneOf.0.items.[INDEX].allocationPercentage","typeLabel":"integer\u003cint32>"}},"uniqueKey":"content.data.bankAccounts.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"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.","uniqueKey":"content.data.bankAccounts.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["accountNumber","sortCode"],"properties":{"accountNumber":{"type":"string","description":"UK bank account number. Must be 6-8 digits (zero-padded to 8 for BACS).","example":"12345678"},"sortCode":{"type":"string","description":"UK bank sort code. Must be 6 digits. Hyphens are stripped before validation.","example":"123456"},"accountHolderName":{"type":"string","description":"Name of the account holder. Optional — falls back to employee name for payment files.","example":"John Smith"},"isPrimaryPayrollAccount":{"type":"boolean","description":"At least one bank account must be set as primary.","example":true},"allocationPercentage":{"type":"integer","format":"int32","description":"Percentage of salary allocated to this account. All accounts must total 100%.","example":100}}},"description":"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.","uniqueKey":"content.data.bankAccounts.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.bankAccounts","typeLabel":"object[] | null"},"studentDetails":{"oneOf":[{"type":"object","description":"The employee's student loan and postgraduate loan plans, with the dates each starts and ends.","properties":{"studentLoanDetails":{"oneOf":[{"type":"object","description":"The details of the student loan","properties":{"loanType":{"type":"string","enum":["Plan1","Plan2","Plan4","Plan5"],"description":"Type of student loan","example":"Plan2","uniqueKey":"content.data.studentDetails.oneOf.0.studentLoanDetails.oneOf.0.loanType","typeLabel":"enum\u003cstring>"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the student loan","example":"2010-09-01","uniqueKey":"content.data.studentDetails.oneOf.0.studentLoanDetails.oneOf.0.startDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The start date of the student loan","example":"2010-09-01","uniqueKey":"content.data.studentDetails.oneOf.0.studentLoanDetails.oneOf.0.startDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.studentDetails.oneOf.0.studentLoanDetails.oneOf.0.startDate","typeLabel":"string | null"},"endDate":{"oneOf":[{"type":"string","description":"The end date of the student loan","example":"2025-07-31","uniqueKey":"content.data.studentDetails.oneOf.0.studentLoanDetails.oneOf.0.endDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The end date of the student loan","example":"2025-07-31","uniqueKey":"content.data.studentDetails.oneOf.0.studentLoanDetails.oneOf.0.endDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.studentDetails.oneOf.0.studentLoanDetails.oneOf.0.endDate","typeLabel":"string | null"}},"example":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"},"uniqueKey":"content.data.studentDetails.oneOf.0.studentLoanDetails.oneOf.0","typeLabel":"object"},{"type":"null","description":"The details of the student loan","properties":{"loanType":{"type":"string","enum":["Plan1","Plan2","Plan4","Plan5"],"description":"Type of student loan","example":"Plan2"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the student loan","example":"2010-09-01"},{"type":"null","description":"The start date of the student loan","example":"2010-09-01"}]},"endDate":{"oneOf":[{"type":"string","description":"The end date of the student loan","example":"2025-07-31"},{"type":"null","description":"The end date of the student loan","example":"2025-07-31"}]}},"example":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"},"uniqueKey":"content.data.studentDetails.oneOf.0.studentLoanDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.studentDetails.oneOf.0.studentLoanDetails","typeLabel":"object | null"},"postgraduateLoanDetails":{"oneOf":[{"type":"object","description":"The details of the postgraduate loan","properties":{"loanType":{"type":"string","enum":["PostgraduateLoan"],"description":"Type of postgraduate loan","example":"PostgraduateLoan","uniqueKey":"content.data.studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.loanType","typeLabel":"enum\u003cstring>"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the postgraduate loan","example":"2015-09-01","uniqueKey":"content.data.studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.startDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The start date of the postgraduate loan","example":"2015-09-01","uniqueKey":"content.data.studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.startDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.startDate","typeLabel":"string | null"},"endDate":{"oneOf":[{"type":"string","description":"The end date of the postgraduate loan","example":"2028-07-31","uniqueKey":"content.data.studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.endDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The end date of the postgraduate loan","example":"2028-07-31","uniqueKey":"content.data.studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.endDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0.endDate","typeLabel":"string | null"}},"example":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"},"uniqueKey":"content.data.studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.0","typeLabel":"object"},{"type":"null","description":"The details of the postgraduate loan","properties":{"loanType":{"type":"string","enum":["PostgraduateLoan"],"description":"Type of postgraduate loan","example":"PostgraduateLoan"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the postgraduate loan","example":"2015-09-01"},{"type":"null","description":"The start date of the postgraduate loan","example":"2015-09-01"}]},"endDate":{"oneOf":[{"type":"string","description":"The end date of the postgraduate loan","example":"2028-07-31"},{"type":"null","description":"The end date of the postgraduate loan","example":"2028-07-31"}]}},"example":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"},"uniqueKey":"content.data.studentDetails.oneOf.0.postgraduateLoanDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.studentDetails.oneOf.0.postgraduateLoanDetails","typeLabel":"object | null"}},"example":{"studentLoanDetails":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"},"postgraduateLoanDetails":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"}},"uniqueKey":"content.data.studentDetails.oneOf.0","typeLabel":"object"},{"type":"null","description":"The employee's student loan and postgraduate loan plans, with the dates each starts and ends.","properties":{"studentLoanDetails":{"oneOf":[{"type":"object","description":"The details of the student loan","properties":{"loanType":{"type":"string","enum":["Plan1","Plan2","Plan4","Plan5"],"description":"Type of student loan","example":"Plan2"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the student loan","example":"2010-09-01"},{"type":"null","description":"The start date of the student loan","example":"2010-09-01"}]},"endDate":{"oneOf":[{"type":"string","description":"The end date of the student loan","example":"2025-07-31"},{"type":"null","description":"The end date of the student loan","example":"2025-07-31"}]}},"example":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"}},{"type":"null","description":"The details of the student loan","properties":{"loanType":{"type":"string","enum":["Plan1","Plan2","Plan4","Plan5"],"description":"Type of student loan","example":"Plan2"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the student loan","example":"2010-09-01"},{"type":"null","description":"The start date of the student loan","example":"2010-09-01"}]},"endDate":{"oneOf":[{"type":"string","description":"The end date of the student loan","example":"2025-07-31"},{"type":"null","description":"The end date of the student loan","example":"2025-07-31"}]}},"example":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"}}]},"postgraduateLoanDetails":{"oneOf":[{"type":"object","description":"The details of the postgraduate loan","properties":{"loanType":{"type":"string","enum":["PostgraduateLoan"],"description":"Type of postgraduate loan","example":"PostgraduateLoan"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the postgraduate loan","example":"2015-09-01"},{"type":"null","description":"The start date of the postgraduate loan","example":"2015-09-01"}]},"endDate":{"oneOf":[{"type":"string","description":"The end date of the postgraduate loan","example":"2028-07-31"},{"type":"null","description":"The end date of the postgraduate loan","example":"2028-07-31"}]}},"example":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"}},{"type":"null","description":"The details of the postgraduate loan","properties":{"loanType":{"type":"string","enum":["PostgraduateLoan"],"description":"Type of postgraduate loan","example":"PostgraduateLoan"},"startDate":{"oneOf":[{"type":"string","description":"The start date of the postgraduate loan","example":"2015-09-01"},{"type":"null","description":"The start date of the postgraduate loan","example":"2015-09-01"}]},"endDate":{"oneOf":[{"type":"string","description":"The end date of the postgraduate loan","example":"2028-07-31"},{"type":"null","description":"The end date of the postgraduate loan","example":"2028-07-31"}]}},"example":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"}}]}},"example":{"studentLoanDetails":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"},"postgraduateLoanDetails":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"}},"uniqueKey":"content.data.studentDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.studentDetails","typeLabel":"object | null"},"tags":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The tag's name within its group.","example":"FullTime","uniqueKey":"content.data.tags.oneOf.0.items.[INDEX].name","typeLabel":"string"},"group":{"type":"string","description":"The group the tag belongs to.","example":"EmploymentType","uniqueKey":"content.data.tags.oneOf.0.items.[INDEX].group","typeLabel":"string"},"value":{"type":"string","description":"The tag's value for that name.","example":"FullTime","uniqueKey":"content.data.tags.oneOf.0.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"content.data.tags.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Tags on the employee, copied onto the employee details of each payslip.","uniqueKey":"content.data.tags.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"name":{"type":"string","description":"The tag's name within its group.","example":"FullTime"},"group":{"type":"string","description":"The group the tag belongs to.","example":"EmploymentType"},"value":{"type":"string","description":"The tag's value for that name.","example":"FullTime"}}},"description":"Tags on the employee, copied onto the employee details of each payslip.","uniqueKey":"content.data.tags.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.tags","typeLabel":"object[] | null"},"previousEmployment":{"type":"object","additionalProperties":{"type":"object","description":"Earnings from a previous employer in the same tax year (P45 previous employment). Only grossTaxable and tax are needed for cumulative tax calculations.","properties":{"grossTaxable":{"type":"number","format":"decimal","description":"Taxable gross earnings from the previous employer (P45 taxable pay).","example":15000,"uniqueKey":"content.data.previousEmployment.additionalProperties.grossTaxable","typeLabel":"number\u003cdecimal>"},"tax":{"type":"number","format":"decimal","description":"Tax paid at the previous employer (P45 tax paid).","example":3000,"uniqueKey":"content.data.previousEmployment.additionalProperties.tax","typeLabel":"number\u003cdecimal>"}},"uniqueKey":"content.data.previousEmployment.additionalProperties","typeLabel":"object"},"description":"Earnings from a previous employer in the same tax year. Used for cumulative tax calculations only. Does not affect FPS reporting.","example":{"2026":{"grossTaxable":15000,"tax":3000}},"uniqueKey":"content.data.previousEmployment","typeLabel":"object"},"gender":{"oneOf":[{"type":"string","description":"The employee's gender as free text, stored and returned as sent; birthGender is the value reported to HMRC.","example":"Male","uniqueKey":"content.data.gender.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's gender as free text, stored and returned as sent; birthGender is the value reported to HMRC.","example":"Male","uniqueKey":"content.data.gender.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.gender","typeLabel":"string | null"},"secondaryPhone":{"oneOf":[{"type":"string","description":"An optional second phone number for the employee, stored and returned as sent.","uniqueKey":"content.data.secondaryPhone.oneOf.0","typeLabel":"string"},{"type":"null","description":"An optional second phone number for the employee, stored and returned as sent.","uniqueKey":"content.data.secondaryPhone.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.secondaryPhone","typeLabel":"string | null"},"passportNumber":{"oneOf":[{"type":"string","description":"The employee's passport number, reported to HMRC on the FPS; 1 to 35 letters, numbers, spaces and standard punctuation.","example":"123456789","uniqueKey":"content.data.passportNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's passport number, reported to HMRC on the FPS; 1 to 35 letters, numbers, spaces and standard punctuation.","example":"123456789","uniqueKey":"content.data.passportNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.passportNumber","typeLabel":"string | null"},"previousNames":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"content.data.previousNames.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Names the employee was previously known by; each must meet the same rules as a name and none may repeat.","example":["John Doe"],"uniqueKey":"content.data.previousNames.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Names the employee was previously known by; each must meet the same rules as a name and none may repeat.","example":["John Doe"],"uniqueKey":"content.data.previousNames.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.previousNames","typeLabel":"string[] | null"},"directorDetails":{"oneOf":[{"type":"object","properties":{"directorsNICType":{"type":"string","enum":["Annual","Alternative"],"description":"Director's National Insurance contribution calculation method. Put 'Annual' if you're using the standard annual method of work out the director's National Insurance contributions, or 'Alternative' if you're using the alternative method","example":"Annual","uniqueKey":"content.data.directorDetails.oneOf.0.directorsNICType","typeLabel":"enum\u003cstring>"},"appointmentDate":{"type":"string","description":"The date of appointment of the employee's director.","example":"2024-01-15","uniqueKey":"content.data.directorDetails.oneOf.0.appointmentDate","typeLabel":"string"},"endDate":{"oneOf":[{"type":"string","description":"The date the employee ceased to be a director.","example":"2025-03-31","uniqueKey":"content.data.directorDetails.oneOf.0.endDate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The date the employee ceased to be a director.","example":"2025-03-31","uniqueKey":"content.data.directorDetails.oneOf.0.endDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.directorDetails.oneOf.0.endDate","typeLabel":"string | null"}},"description":"Set when the employee is a director: the director's NI calculation method, appointment date and, once it ends, the end date.","uniqueKey":"content.data.directorDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"directorsNICType":{"type":"string","enum":["Annual","Alternative"],"description":"Director's National Insurance contribution calculation method. Put 'Annual' if you're using the standard annual method of work out the director's National Insurance contributions, or 'Alternative' if you're using the alternative method","example":"Annual"},"appointmentDate":{"type":"string","description":"The date of appointment of the employee's director.","example":"2024-01-15"},"endDate":{"oneOf":[{"type":"string","description":"The date the employee ceased to be a director.","example":"2025-03-31"},{"type":"null","description":"The date the employee ceased to be a director.","example":"2025-03-31"}]}},"description":"Set when the employee is a director: the director's NI calculation method, appointment date and, once it ends, the end date.","uniqueKey":"content.data.directorDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.directorDetails","typeLabel":"object | null"},"isIrregularEmployment":{"oneOf":[{"type":"boolean","description":"Whether the employee is paid on an irregular pattern, reported to HMRC on the FPS; treated as false when absent.","example":false,"uniqueKey":"content.data.isIrregularEmployment.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the employee is paid on an irregular pattern, reported to HMRC on the FPS; treated as false when absent.","example":false,"uniqueKey":"content.data.isIrregularEmployment.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.isIrregularEmployment","typeLabel":"boolean | null"},"isOffPayrollWorker":{"oneOf":[{"type":"boolean","description":"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,"uniqueKey":"content.data.isOffPayrollWorker.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"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,"uniqueKey":"content.data.isOffPayrollWorker.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.isOffPayrollWorker","typeLabel":"boolean | null"},"workplaceDetails":{"oneOf":[{"type":"object","properties":{"workplacePostcode":{"oneOf":[{"type":"string","description":"The postcode of the workplace this employee reports to.","example":"E1 6AN","uniqueKey":"content.data.workplaceDetails.oneOf.0.workplacePostcode.oneOf.0","typeLabel":"string"},{"type":"null","description":"The postcode of the workplace this employee reports to.","example":"E1 6AN","uniqueKey":"content.data.workplaceDetails.oneOf.0.workplacePostcode.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.workplaceDetails.oneOf.0.workplacePostcode","typeLabel":"string | null"}},"description":"Where the employee works; its workplace postcode is reported to HMRC on the FPS.","uniqueKey":"content.data.workplaceDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"workplacePostcode":{"oneOf":[{"type":"string","description":"The postcode of the workplace this employee reports to.","example":"E1 6AN"},{"type":"null","description":"The postcode of the workplace this employee reports to.","example":"E1 6AN"}]}},"description":"Where the employee works; its workplace postcode is reported to HMRC on the FPS.","uniqueKey":"content.data.workplaceDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.workplaceDetails","typeLabel":"object | null"},"workingDays":{"oneOf":[{"type":"object","description":"The employee's working pattern in force today; its dated history is kept by the employee working pattern endpoints.","properties":{"standardWorkingDays":{"oneOf":[{"type":"object","description":"Standard working days configuration","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.standardWorkingDays.oneOf.0.monday","typeLabel":"boolean"},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.standardWorkingDays.oneOf.0.tuesday","typeLabel":"boolean"},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.standardWorkingDays.oneOf.0.wednesday","typeLabel":"boolean"},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.standardWorkingDays.oneOf.0.thursday","typeLabel":"boolean"},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.standardWorkingDays.oneOf.0.friday","typeLabel":"boolean"},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false,"uniqueKey":"content.data.workingDays.oneOf.0.standardWorkingDays.oneOf.0.saturday","typeLabel":"boolean"},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false,"uniqueKey":"content.data.workingDays.oneOf.0.standardWorkingDays.oneOf.0.sunday","typeLabel":"boolean"}},"example":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"uniqueKey":"content.data.workingDays.oneOf.0.standardWorkingDays.oneOf.0","typeLabel":"object"},{"type":"null","description":"Standard working days configuration","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}},"example":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"uniqueKey":"content.data.workingDays.oneOf.0.standardWorkingDays.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.workingDays.oneOf.0.standardWorkingDays","typeLabel":"object | null"},"shiftPattern":{"oneOf":[{"type":"object","description":"Shift pattern configuration (if applicable)","required":["rotationStartDate","shifts"],"properties":{"rotationStartDate":{"type":"string","format":"date","description":"The date when the shift pattern rotation begins","example":"2024-01-01","isRequired":true,"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.rotationStartDate","typeLabel":"string\u003cdate>"},"shifts":{"type":"array","items":{"type":"object","description":"One shift within a rotation: the days worked, and how long the shift lasts before the rotation moves on to the next entry in the list.","required":["name","workingDays"],"properties":{"name":{"type":"string","description":"Name of the shift","example":"Morning Shift","isRequired":true,"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].name","typeLabel":"string"},"workingDays":{"type":"object","description":"Working days configuration for this shift","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.monday","typeLabel":"boolean"},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.tuesday","typeLabel":"boolean"},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.wednesday","typeLabel":"boolean"},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.thursday","typeLabel":"boolean"},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.friday","typeLabel":"boolean"},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false,"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.saturday","typeLabel":"boolean"},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false,"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays.sunday","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].workingDays","typeLabel":"object"},"durationInDays":{"type":"integer","format":"int32","description":"How many days this shift lasts before the next one starts. Use 7 for a shift covering a whole week.","example":5,"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX].durationInDays","typeLabel":"integer\u003cint32>"}},"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.shifts.items.[INDEX]","typeLabel":"object"},"description":"The shifts making up one cycle, in the order they are worked. Only read when patternType is \"Custom\".","example":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}],"isRequired":true,"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.shifts","typeLabel":"object[]"},"patternType":{"type":"string","enum":["Custom","FourFourFive","FourOnFourOff","ThreeOnThreeOff","TwoOnTwoOff","FiveOnTwoOff"],"description":"Type of shift pattern","example":"FourOnFourOff","uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0.patternType","typeLabel":"enum\u003cstring>"}},"example":{"rotationStartDate":"2024-01-01","shifts":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}],"patternType":"FourOnFourOff"},"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.0","typeLabel":"object"},{"type":"null","description":"Shift pattern configuration (if applicable)","required":["rotationStartDate","shifts"],"properties":{"rotationStartDate":{"type":"string","format":"date","description":"The date when the shift pattern rotation begins","example":"2024-01-01"},"shifts":{"type":"array","items":{"type":"object","description":"One shift within a rotation: the days worked, and how long the shift lasts before the rotation moves on to the next entry in the list.","required":["name","workingDays"],"properties":{"name":{"type":"string","description":"Name of the shift","example":"Morning Shift"},"workingDays":{"type":"object","description":"Working days configuration for this shift","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}}},"durationInDays":{"type":"integer","format":"int32","description":"How many days this shift lasts before the next one starts. Use 7 for a shift covering a whole week.","example":5}}},"description":"The shifts making up one cycle, in the order they are worked. Only read when patternType is \"Custom\".","example":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}]},"patternType":{"type":"string","enum":["Custom","FourFourFive","FourOnFourOff","ThreeOnThreeOff","TwoOnTwoOff","FiveOnTwoOff"],"description":"Type of shift pattern","example":"FourOnFourOff"}},"example":{"rotationStartDate":"2024-01-01","shifts":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}],"patternType":"FourOnFourOff"},"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.workingDays.oneOf.0.shiftPattern","typeLabel":"object | null"},"workingPattern":{"type":"string","enum":["Standard","Shift","Explicit"],"description":"Type of working pattern","example":"Standard","uniqueKey":"content.data.workingDays.oneOf.0.workingPattern","typeLabel":"enum\u003cstring>"},"explicitSchedule":{"oneOf":[{"type":"object","description":"Explicit week-by-week schedule, used when workingPattern is \"Explicit\"","required":["weeks"],"properties":{"weeks":{"type":"array","items":{"type":"object","description":"The working days for a single calendar week within an explicit schedule.","required":["weekCommencing","workingDays"],"properties":{"weekCommencing":{"type":"string","description":"The date this week starts on (any weekday; a 7-day block). Format YYYY-MM-DD.","example":"2026-07-06","isRequired":true,"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].weekCommencing","typeLabel":"string"},"workingDays":{"type":"object","description":"Which days of that week are worked.","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.monday","typeLabel":"boolean"},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.tuesday","typeLabel":"boolean"},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.wednesday","typeLabel":"boolean"},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.thursday","typeLabel":"boolean"},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true,"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.friday","typeLabel":"boolean"},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false,"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.saturday","typeLabel":"boolean"},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false,"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays.sunday","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX].workingDays","typeLabel":"object"}},"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks.items.[INDEX]","typeLabel":"object"},"description":"The scheduled weeks. A week that is not listed counts as not worked.","isRequired":true,"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.0.weeks","typeLabel":"object[]"}},"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.0","typeLabel":"object"},{"type":"null","description":"Explicit week-by-week schedule, used when workingPattern is \"Explicit\"","required":["weeks"],"properties":{"weeks":{"type":"array","items":{"type":"object","description":"The working days for a single calendar week within an explicit schedule.","required":["weekCommencing","workingDays"],"properties":{"weekCommencing":{"type":"string","description":"The date this week starts on (any weekday; a 7-day block). Format YYYY-MM-DD.","example":"2026-07-06"},"workingDays":{"type":"object","description":"Which days of that week are worked.","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}}}}},"description":"The scheduled weeks. A week that is not listed counts as not worked."}},"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.workingDays.oneOf.0.explicitSchedule","typeLabel":"object | null"}},"uniqueKey":"content.data.workingDays.oneOf.0","typeLabel":"object"},{"type":"null","description":"The employee's working pattern in force today; its dated history is kept by the employee working pattern endpoints.","properties":{"standardWorkingDays":{"oneOf":[{"type":"object","description":"Standard working days configuration","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}},"example":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false}},{"type":"null","description":"Standard working days configuration","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}},"example":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false}}]},"shiftPattern":{"oneOf":[{"type":"object","description":"Shift pattern configuration (if applicable)","required":["rotationStartDate","shifts"],"properties":{"rotationStartDate":{"type":"string","format":"date","description":"The date when the shift pattern rotation begins","example":"2024-01-01"},"shifts":{"type":"array","items":{"type":"object","description":"One shift within a rotation: the days worked, and how long the shift lasts before the rotation moves on to the next entry in the list.","required":["name","workingDays"],"properties":{"name":{"type":"string","description":"Name of the shift","example":"Morning Shift"},"workingDays":{"type":"object","description":"Working days configuration for this shift","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}}},"durationInDays":{"type":"integer","format":"int32","description":"How many days this shift lasts before the next one starts. Use 7 for a shift covering a whole week.","example":5}}},"description":"The shifts making up one cycle, in the order they are worked. Only read when patternType is \"Custom\".","example":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}]},"patternType":{"type":"string","enum":["Custom","FourFourFive","FourOnFourOff","ThreeOnThreeOff","TwoOnTwoOff","FiveOnTwoOff"],"description":"Type of shift pattern","example":"FourOnFourOff"}},"example":{"rotationStartDate":"2024-01-01","shifts":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}],"patternType":"FourOnFourOff"}},{"type":"null","description":"Shift pattern configuration (if applicable)","required":["rotationStartDate","shifts"],"properties":{"rotationStartDate":{"type":"string","format":"date","description":"The date when the shift pattern rotation begins","example":"2024-01-01"},"shifts":{"type":"array","items":{"type":"object","description":"One shift within a rotation: the days worked, and how long the shift lasts before the rotation moves on to the next entry in the list.","required":["name","workingDays"],"properties":{"name":{"type":"string","description":"Name of the shift","example":"Morning Shift"},"workingDays":{"type":"object","description":"Working days configuration for this shift","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}}},"durationInDays":{"type":"integer","format":"int32","description":"How many days this shift lasts before the next one starts. Use 7 for a shift covering a whole week.","example":5}}},"description":"The shifts making up one cycle, in the order they are worked. Only read when patternType is \"Custom\".","example":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}]},"patternType":{"type":"string","enum":["Custom","FourFourFive","FourOnFourOff","ThreeOnThreeOff","TwoOnTwoOff","FiveOnTwoOff"],"description":"Type of shift pattern","example":"FourOnFourOff"}},"example":{"rotationStartDate":"2024-01-01","shifts":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}],"patternType":"FourOnFourOff"}}]},"workingPattern":{"type":"string","enum":["Standard","Shift","Explicit"],"description":"Type of working pattern","example":"Standard"},"explicitSchedule":{"oneOf":[{"type":"object","description":"Explicit week-by-week schedule, used when workingPattern is \"Explicit\"","required":["weeks"],"properties":{"weeks":{"type":"array","items":{"type":"object","description":"The working days for a single calendar week within an explicit schedule.","required":["weekCommencing","workingDays"],"properties":{"weekCommencing":{"type":"string","description":"The date this week starts on (any weekday; a 7-day block). Format YYYY-MM-DD.","example":"2026-07-06"},"workingDays":{"type":"object","description":"Which days of that week are worked.","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}}}}},"description":"The scheduled weeks. A week that is not listed counts as not worked."}}},{"type":"null","description":"Explicit week-by-week schedule, used when workingPattern is \"Explicit\"","required":["weeks"],"properties":{"weeks":{"type":"array","items":{"type":"object","description":"The working days for a single calendar week within an explicit schedule.","required":["weekCommencing","workingDays"],"properties":{"weekCommencing":{"type":"string","description":"The date this week starts on (any weekday; a 7-day block). Format YYYY-MM-DD.","example":"2026-07-06"},"workingDays":{"type":"object","description":"Which days of that week are worked.","properties":{"monday":{"type":"boolean","description":"Whether Monday is a working day","example":true},"tuesday":{"type":"boolean","description":"Whether Tuesday is a working day","example":true},"wednesday":{"type":"boolean","description":"Whether Wednesday is a working day","example":true},"thursday":{"type":"boolean","description":"Whether Thursday is a working day","example":true},"friday":{"type":"boolean","description":"Whether Friday is a working day","example":true},"saturday":{"type":"boolean","description":"Whether Saturday is a working day","example":false},"sunday":{"type":"boolean","description":"Whether Sunday is a working day","example":false}}}}},"description":"The scheduled weeks. A week that is not listed counts as not worked."}}}]}},"uniqueKey":"content.data.workingDays.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.workingDays","typeLabel":"object | null"},"partnerDetails":{"oneOf":[{"type":"object","properties":{"nationalInsuranceNumber":{"oneOf":[{"type":"string","description":"The partner's National Insurance number; optional, and checked against the NI number format when sent.","example":"QQ654321A","uniqueKey":"content.data.partnerDetails.oneOf.0.nationalInsuranceNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"The partner's National Insurance number; optional, and checked against the NI number format when sent.","example":"QQ654321A","uniqueKey":"content.data.partnerDetails.oneOf.0.nationalInsuranceNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.partnerDetails.oneOf.0.nationalInsuranceNumber","typeLabel":"string | null"},"name":{"type":"object","required":["firstName","lastName"],"properties":{"firstName":{"type":"string","description":"The first forename, reported to HMRC; 1 to 35 characters starting with a letter, using letters, spaces, hyphens and apostrophes.","example":"John","isRequired":true,"uniqueKey":"content.data.partnerDetails.oneOf.0.name.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"The surname, reported to HMRC; 1 to 35 characters starting with a letter, using letters, spaces, hyphens and apostrophes.","example":"Smith","isRequired":true,"uniqueKey":"content.data.partnerDetails.oneOf.0.name.lastName","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"The person's title, such as Mr or Ms; optional, and checked against HMRC's title rules when sent.","example":"Mr","uniqueKey":"content.data.partnerDetails.oneOf.0.name.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"The person's title, such as Mr or Ms; optional, and checked against HMRC's title rules when sent.","example":"Mr","uniqueKey":"content.data.partnerDetails.oneOf.0.name.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.partnerDetails.oneOf.0.name.title","typeLabel":"string | null"},"initials":{"oneOf":[{"type":"string","description":"The employee's initials.","uniqueKey":"content.data.partnerDetails.oneOf.0.name.initials.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's initials.","uniqueKey":"content.data.partnerDetails.oneOf.0.name.initials.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.partnerDetails.oneOf.0.name.initials","typeLabel":"string | null"},"middleName":{"oneOf":[{"type":"string","description":"A second forename; optional, and checked against the same rules as firstName when sent.","example":"Edward","uniqueKey":"content.data.partnerDetails.oneOf.0.name.middleName.oneOf.0","typeLabel":"string"},{"type":"null","description":"A second forename; optional, and checked against the same rules as firstName when sent.","example":"Edward","uniqueKey":"content.data.partnerDetails.oneOf.0.name.middleName.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.partnerDetails.oneOf.0.name.middleName","typeLabel":"string | null"}},"description":"The partner's name, reported to HMRC on the FPS with the first payment of Shared Parental Pay.","uniqueKey":"content.data.partnerDetails.oneOf.0.name","typeLabel":"object"}},"description":"The employee's partner, reported to HMRC on the FPS with the first payment of Shared Parental Pay.","uniqueKey":"content.data.partnerDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"nationalInsuranceNumber":{"oneOf":[{"type":"string","description":"The partner's National Insurance number; optional, and checked against the NI number format when sent.","example":"QQ654321A"},{"type":"null","description":"The partner's National Insurance number; optional, and checked against the NI number format when sent.","example":"QQ654321A"}]},"name":{"type":"object","required":["firstName","lastName"],"properties":{"title":{"oneOf":[{"type":"string","description":"The person's title, such as Mr or Ms; optional, and checked against HMRC's title rules when sent.","example":"Mr"},{"type":"null","description":"The person's title, such as Mr or Ms; optional, and checked against HMRC's title rules when sent.","example":"Mr"}]},"firstName":{"type":"string","description":"The first forename, reported to HMRC; 1 to 35 characters starting with a letter, using letters, spaces, hyphens and apostrophes.","example":"John"},"lastName":{"type":"string","description":"The surname, reported to HMRC; 1 to 35 characters starting with a letter, using letters, spaces, hyphens and apostrophes.","example":"Smith"},"initials":{"oneOf":[{"type":"string","description":"The employee's initials."},{"type":"null","description":"The employee's initials."}]},"middleName":{"oneOf":[{"type":"string","description":"A second forename; optional, and checked against the same rules as firstName when sent.","example":"Edward"},{"type":"null","description":"A second forename; optional, and checked against the same rules as firstName when sent.","example":"Edward"}]}},"description":"The partner's name, reported to HMRC on the FPS with the first payment of Shared Parental Pay."}},"description":"The employee's partner, reported to HMRC on the FPS with the first payment of Shared Parental Pay.","uniqueKey":"content.data.partnerDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.partnerDetails","typeLabel":"object | null"},"department":{"oneOf":[{"type":"string","description":"The employee's department as free text, copied onto the employee details of each payslip.","example":"Engineering","uniqueKey":"content.data.department.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's department as free text, copied onto the employee details of each payslip.","example":"Engineering","uniqueKey":"content.data.department.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.department","typeLabel":"string | null"},"jobTitle":{"oneOf":[{"type":"string","description":"The employee's job title as free text, copied onto the employee details of each payslip.","example":"Software Engineer","uniqueKey":"content.data.jobTitle.oneOf.0","typeLabel":"string"},{"type":"null","description":"The employee's job title as free text, copied onto the employee details of each payslip.","example":"Software Engineer","uniqueKey":"content.data.jobTitle.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.jobTitle","typeLabel":"string | null"},"payrollId":{"oneOf":[{"type":"string","description":"Payroll ID used as the payId field in HMRC FPS submissions. Updated via PUT /employees/{id}/payroll-id.","example":"PAY123","uniqueKey":"content.data.payrollId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Payroll ID used as the payId field in HMRC FPS submissions. Updated via PUT /employees/{id}/payroll-id.","example":"PAY123","uniqueKey":"content.data.payrollId.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.payrollId","typeLabel":"string | null"},"payrollIdChanged":{"oneOf":[{"type":"object","description":"The employee's previous payroll ID, kept when the payroll ID is replaced and reported to HMRC on the FPS as a payroll ID change.","properties":{"oldPayId":{"oneOf":[{"type":"string","description":"The payroll id this employee had before it was changed.","uniqueKey":"content.data.payrollIdChanged.oneOf.0.oldPayId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The payroll id this employee had before it was changed.","uniqueKey":"content.data.payrollIdChanged.oneOf.0.oldPayId.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.payrollIdChanged.oneOf.0.oldPayId","typeLabel":"string | null"}},"uniqueKey":"content.data.payrollIdChanged.oneOf.0","typeLabel":"object"},{"type":"null","description":"The employee's previous payroll ID, kept when the payroll ID is replaced and reported to HMRC on the FPS as a payroll ID change.","properties":{"oldPayId":{"oneOf":[{"type":"string","description":"The payroll id this employee had before it was changed."},{"type":"null","description":"The payroll id this employee had before it was changed."}]}},"uniqueKey":"content.data.payrollIdChanged.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.payrollIdChanged","typeLabel":"object | null"},"leaverDetails":{"oneOf":[{"type":"object","properties":{"leavingDate":{"type":"string","description":"The date the employee left the company.","example":"2024-12-31","uniqueKey":"content.data.leaverDetails.oneOf.0.leavingDate","typeLabel":"string"},"reason":{"oneOf":[{"type":"string","description":"The reason the employee left the company.","example":"Retirement","uniqueKey":"content.data.leaverDetails.oneOf.0.reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"The reason the employee left the company.","example":"Retirement","uniqueKey":"content.data.leaverDetails.oneOf.0.reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.leaverDetails.oneOf.0.reason","typeLabel":"string | null"},"issuedBy":{"oneOf":[{"type":"string","description":"The entity that issued the leaver certificate.","example":"Employer","uniqueKey":"content.data.leaverDetails.oneOf.0.issuedBy.oneOf.0","typeLabel":"string"},{"type":"null","description":"The entity that issued the leaver certificate.","example":"Employer","uniqueKey":"content.data.leaverDetails.oneOf.0.issuedBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.leaverDetails.oneOf.0.issuedBy","typeLabel":"string | null"},"reportedToHmrc":{"type":"boolean","description":"Whether the leaver details have been reported to HMRC.","example":false,"uniqueKey":"content.data.leaverDetails.oneOf.0.reportedToHmrc","typeLabel":"boolean"},"finalisedOnPayslip":{"type":"boolean","description":"Whether the leaver has been reported on a finalised payslip.","uniqueKey":"content.data.leaverDetails.oneOf.0.finalisedOnPayslip","typeLabel":"boolean"}},"description":"The leaving date and reason once the employee is marked as a leaver; null otherwise.","uniqueKey":"content.data.leaverDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"leavingDate":{"type":"string","description":"The date the employee left the company.","example":"2024-12-31"},"reason":{"oneOf":[{"type":"string","description":"The reason the employee left the company.","example":"Retirement"},{"type":"null","description":"The reason the employee left the company.","example":"Retirement"}]},"issuedBy":{"oneOf":[{"type":"string","description":"The entity that issued the leaver certificate.","example":"Employer"},{"type":"null","description":"The entity that issued the leaver certificate.","example":"Employer"}]},"reportedToHmrc":{"type":"boolean","description":"Whether the leaver details have been reported to HMRC.","example":false},"finalisedOnPayslip":{"type":"boolean","description":"Whether the leaver has been reported on a finalised payslip."}},"description":"The leaving date and reason once the employee is marked as a leaver; null otherwise.","uniqueKey":"content.data.leaverDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.leaverDetails","typeLabel":"object | null"},"isLeaver":{"oneOf":[{"type":"boolean","description":"Whether the employee has left: marked as a leaver, or their leaving date has passed. Read only.","uniqueKey":"content.data.isLeaver.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the employee has left: marked as a leaver, or their leaving date has passed. Read only.","uniqueKey":"content.data.isLeaver.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.isLeaver","typeLabel":"boolean | null"},"earningsToDatePerYear":{"type":"object","additionalProperties":{"type":"object","description":"The earnings to date for the employee","properties":{"gross":{"type":"number","format":"decimal","description":"The total gross earnings to date","example":25000,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.gross","typeLabel":"number\u003cdecimal>"},"tax":{"type":"number","format":"decimal","description":"The total tax paid to date","example":5000,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.tax","typeLabel":"number\u003cdecimal>"},"taxable":{"type":"number","format":"decimal","description":"The total taxable earnings to date","example":24000,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.taxable","typeLabel":"number\u003cdecimal>"},"ni":{"type":"number","format":"decimal","description":"The total National Insurance contributions to date","example":2000,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.ni","typeLabel":"number\u003cdecimal>"},"employerNi":{"type":"number","format":"decimal","description":"The total employer National Insurance contributions to date","example":2500,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.employerNi","typeLabel":"number\u003cdecimal>"},"employerClass1ANi":{"type":"number","format":"decimal","description":"The total employer Class 1A National Insurance contributions to date","example":2500,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.employerClass1ANi","typeLabel":"number\u003cdecimal>"},"studentLoan":{"type":"number","format":"decimal","description":"The total student loan repayments to date","example":500,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.studentLoan","typeLabel":"number\u003cdecimal>"},"postgraduateLoan":{"type":"number","format":"decimal","description":"The total postgraduate loan repayments to date","example":300,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.postgraduateLoan","typeLabel":"number\u003cdecimal>"},"net":{"type":"number","format":"decimal","description":"The total net earnings to date","example":17200,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.net","typeLabel":"number\u003cdecimal>"},"netDeductions":{"type":"number","format":"decimal","description":"Deductions taken from net pay, to date.","uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.netDeductions","typeLabel":"number\u003cdecimal>"},"totalEmployerCost":{"type":"number","format":"decimal","description":"The total employer cost to date","example":27500,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.totalEmployerCost","typeLabel":"number\u003cdecimal>"},"totalCost":{"type":"number","format":"decimal","description":"The total cost to date","example":30000,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.totalCost","typeLabel":"number\u003cdecimal>"},"grossForEmployeeNi":{"type":"number","format":"decimal","description":"The gross earnings for employee NI calculations to date","example":25000,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.grossForEmployeeNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerNi":{"type":"number","format":"decimal","description":"The gross earnings for employer NI calculations to date","example":25000,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.grossForEmployerNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerClass1ANi":{"type":"number","format":"decimal","description":"The gross earnings for employer Class 1A NI calculations to date","example":25000,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.grossForEmployerClass1ANi","typeLabel":"number\u003cdecimal>"},"pension":{"type":"number","format":"decimal","description":"Deprecated as input: the employee's total pension contributions to date. Send 'pensionContributionsByType' instead (employee contributions broken down by pension scheme type) so FPS YTD reporting can split NetPayArrangement vs ReliefAtSource correctly. On responses, this field is always populated as the sum of 'pensionContributionsByType' for client convenience. Will be removed from input in a future version.","example":500,"deprecated":true,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.pension","typeLabel":"number\u003cdecimal>"},"employerPension":{"type":"number","format":"decimal","description":"The employer pension contributions to date","example":375,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.employerPension","typeLabel":"number\u003cdecimal>"},"grossPensionable":{"type":"number","format":"decimal","description":"The gross pensionable earnings to date","example":25000,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.grossPensionable","typeLabel":"number\u003cdecimal>"},"qualifyingEarningsForPension":{"type":"number","format":"decimal","description":"Qualifying earnings for pension, to date.","uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.qualifyingEarningsForPension","typeLabel":"number\u003cdecimal>"},"statutory":{"type":"object","additionalProperties":{"type":"number","format":"decimal","uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.statutory.additionalProperties","typeLabel":"number\u003cdecimal>"},"description":"Dictionary of statutory payment types and amounts. Possible keys: None, StatutorySickPay, StatutoryMaternityPay, StatutoryPaternityPay, StatutoryAdoptionPay, SharedParentalPay, StatutoryParentalBereavementPay, StatutorySharedParentalPay, StatutoryNeoNatalCarePay","example":{"StatutorySickPay":500,"StatutoryMaternityPay":1000},"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.statutory","typeLabel":"object"},"niBandResult":{"type":"object","additionalProperties":{"type":"object","properties":{"employeeNi":{"type":"number","format":"decimal","description":"Employee National Insurance under this NI category letter.","uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.employeeNi","typeLabel":"number\u003cdecimal>"},"employerNi":{"type":"number","format":"decimal","description":"Employer National Insurance under this NI category letter.","uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.employerNi","typeLabel":"number\u003cdecimal>"},"totalNi":{"type":"number","format":"decimal","description":"Employee and employer National Insurance added together.","uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.totalNi","typeLabel":"number\u003cdecimal>"},"grossForEmployeeNi":{"type":"number","format":"decimal","description":"Earnings that employee National Insurance was worked out on under this letter.","uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.grossForEmployeeNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerNi":{"type":"number","format":"decimal","description":"Earnings that employer National Insurance was worked out on under this letter.","uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.grossForEmployerNi","typeLabel":"number\u003cdecimal>"},"bandResults":{"type":"object","additionalProperties":{"type":"object","properties":{"grossInBand":{"type":"number","format":"decimal","description":"Gross pay in this NI band","example":12570,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.grossInBand","typeLabel":"number\u003cdecimal>"},"employeeNiForBand":{"type":"number","format":"decimal","description":"Employee NI contribution for this band","example":0,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.employeeNiForBand","typeLabel":"number\u003cdecimal>"},"employerNiForBand":{"type":"number","format":"decimal","description":"Employer NI contribution for this band","example":0,"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.employerNiForBand","typeLabel":"number\u003cdecimal>"}},"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties","typeLabel":"object"},"description":"The same figures split by National Insurance band, keyed by band name.","uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.bandResults","typeLabel":"object"}},"example":{"employeeNi":290.1,"employerNi":310.25,"totalNi":600.35,"grossForEmployeeNi":3500,"grossForEmployerNi":3500,"bandResults":{"PT-UEL":{"grossInBand":2000,"employeeNiForBand":180,"employerNiForBand":220},"UEL+":{"grossInBand":500,"employeeNiForBand":110.1,"employerNiForBand":90.25}}},"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.niBandResult.additionalProperties","typeLabel":"object"},"description":"Map of NI category letter (single char) to NI calculation results. Keys must be a single letter (A-Z, case insensitive). Example keys: \"A\", \"B\", \"C\", etc. The band splits (bandResults) in each entry cover the whole employment, both stretches — the same coverage as the per-letter scalar totals (gross, contributions). For directors, the portion of these band splits paid while the director basis applied must also be entered in openingBalanceDirector niBandResult[letter].bandResults as a subset of this map, so the annualised calculation can supersede exactly that portion.","uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.niBandResult","typeLabel":"object"},"pensionContributionsByType":{"type":"object","additionalProperties":{"type":"number","format":"decimal","uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.pensionContributionsByType.additionalProperties","typeLabel":"number\u003cdecimal>"},"description":"Employee pension contributions broken down by pension scheme type. This represents the employee's contributions only, as employer contributions are tracked separately via 'employerPension' and are not part of this breakdown. Allowed keys: NetPayArrangement, ReliefAtSource, SalarySacrifice. Required at migration time so FPS YTD reporting (EmpeePenContribnsPaidYTD for NetPayArrangement, EmpeePenContribnsNotPaidYTD for ReliefAtSource) reflects opening-balance contributions correctly. The aggregate 'pension' field on responses is the sum of these values.","example":{"NetPayArrangement":300,"ReliefAtSource":200},"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties.pensionContributionsByType","typeLabel":"object"}},"uniqueKey":"content.data.earningsToDatePerYear.additionalProperties","typeLabel":"object"},"description":"Computed year-to-date earnings (opening balance + accumulated payslips). Read-only.","uniqueKey":"content.data.earningsToDatePerYear","typeLabel":"object"},"openingBalance":{"type":"object","additionalProperties":{"type":"object","description":"The earnings to date for the employee","properties":{"gross":{"type":"number","format":"decimal","description":"The total gross earnings to date","example":25000,"uniqueKey":"content.data.openingBalance.additionalProperties.gross","typeLabel":"number\u003cdecimal>"},"tax":{"type":"number","format":"decimal","description":"The total tax paid to date","example":5000,"uniqueKey":"content.data.openingBalance.additionalProperties.tax","typeLabel":"number\u003cdecimal>"},"taxable":{"type":"number","format":"decimal","description":"The total taxable earnings to date","example":24000,"uniqueKey":"content.data.openingBalance.additionalProperties.taxable","typeLabel":"number\u003cdecimal>"},"ni":{"type":"number","format":"decimal","description":"The total National Insurance contributions to date","example":2000,"uniqueKey":"content.data.openingBalance.additionalProperties.ni","typeLabel":"number\u003cdecimal>"},"employerNi":{"type":"number","format":"decimal","description":"The total employer National Insurance contributions to date","example":2500,"uniqueKey":"content.data.openingBalance.additionalProperties.employerNi","typeLabel":"number\u003cdecimal>"},"employerClass1ANi":{"type":"number","format":"decimal","description":"The total employer Class 1A National Insurance contributions to date","example":2500,"uniqueKey":"content.data.openingBalance.additionalProperties.employerClass1ANi","typeLabel":"number\u003cdecimal>"},"studentLoan":{"type":"number","format":"decimal","description":"The total student loan repayments to date","example":500,"uniqueKey":"content.data.openingBalance.additionalProperties.studentLoan","typeLabel":"number\u003cdecimal>"},"postgraduateLoan":{"type":"number","format":"decimal","description":"The total postgraduate loan repayments to date","example":300,"uniqueKey":"content.data.openingBalance.additionalProperties.postgraduateLoan","typeLabel":"number\u003cdecimal>"},"net":{"type":"number","format":"decimal","description":"The total net earnings to date","example":17200,"uniqueKey":"content.data.openingBalance.additionalProperties.net","typeLabel":"number\u003cdecimal>"},"netDeductions":{"type":"number","format":"decimal","description":"Deductions taken from net pay, to date.","uniqueKey":"content.data.openingBalance.additionalProperties.netDeductions","typeLabel":"number\u003cdecimal>"},"totalEmployerCost":{"type":"number","format":"decimal","description":"The total employer cost to date","example":27500,"uniqueKey":"content.data.openingBalance.additionalProperties.totalEmployerCost","typeLabel":"number\u003cdecimal>"},"totalCost":{"type":"number","format":"decimal","description":"The total cost to date","example":30000,"uniqueKey":"content.data.openingBalance.additionalProperties.totalCost","typeLabel":"number\u003cdecimal>"},"grossForEmployeeNi":{"type":"number","format":"decimal","description":"The gross earnings for employee NI calculations to date","example":25000,"uniqueKey":"content.data.openingBalance.additionalProperties.grossForEmployeeNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerNi":{"type":"number","format":"decimal","description":"The gross earnings for employer NI calculations to date","example":25000,"uniqueKey":"content.data.openingBalance.additionalProperties.grossForEmployerNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerClass1ANi":{"type":"number","format":"decimal","description":"The gross earnings for employer Class 1A NI calculations to date","example":25000,"uniqueKey":"content.data.openingBalance.additionalProperties.grossForEmployerClass1ANi","typeLabel":"number\u003cdecimal>"},"pension":{"type":"number","format":"decimal","description":"Deprecated as input: the employee's total pension contributions to date. Send 'pensionContributionsByType' instead (employee contributions broken down by pension scheme type) so FPS YTD reporting can split NetPayArrangement vs ReliefAtSource correctly. On responses, this field is always populated as the sum of 'pensionContributionsByType' for client convenience. Will be removed from input in a future version.","example":500,"deprecated":true,"uniqueKey":"content.data.openingBalance.additionalProperties.pension","typeLabel":"number\u003cdecimal>"},"employerPension":{"type":"number","format":"decimal","description":"The employer pension contributions to date","example":375,"uniqueKey":"content.data.openingBalance.additionalProperties.employerPension","typeLabel":"number\u003cdecimal>"},"grossPensionable":{"type":"number","format":"decimal","description":"The gross pensionable earnings to date","example":25000,"uniqueKey":"content.data.openingBalance.additionalProperties.grossPensionable","typeLabel":"number\u003cdecimal>"},"qualifyingEarningsForPension":{"type":"number","format":"decimal","description":"Qualifying earnings for pension, to date.","uniqueKey":"content.data.openingBalance.additionalProperties.qualifyingEarningsForPension","typeLabel":"number\u003cdecimal>"},"statutory":{"type":"object","additionalProperties":{"type":"number","format":"decimal","uniqueKey":"content.data.openingBalance.additionalProperties.statutory.additionalProperties","typeLabel":"number\u003cdecimal>"},"description":"Dictionary of statutory payment types and amounts. Possible keys: None, StatutorySickPay, StatutoryMaternityPay, StatutoryPaternityPay, StatutoryAdoptionPay, SharedParentalPay, StatutoryParentalBereavementPay, StatutorySharedParentalPay, StatutoryNeoNatalCarePay","example":{"StatutorySickPay":500,"StatutoryMaternityPay":1000},"uniqueKey":"content.data.openingBalance.additionalProperties.statutory","typeLabel":"object"},"niBandResult":{"type":"object","additionalProperties":{"type":"object","properties":{"employeeNi":{"type":"number","format":"decimal","description":"Employee National Insurance under this NI category letter.","uniqueKey":"content.data.openingBalance.additionalProperties.niBandResult.additionalProperties.employeeNi","typeLabel":"number\u003cdecimal>"},"employerNi":{"type":"number","format":"decimal","description":"Employer National Insurance under this NI category letter.","uniqueKey":"content.data.openingBalance.additionalProperties.niBandResult.additionalProperties.employerNi","typeLabel":"number\u003cdecimal>"},"totalNi":{"type":"number","format":"decimal","description":"Employee and employer National Insurance added together.","uniqueKey":"content.data.openingBalance.additionalProperties.niBandResult.additionalProperties.totalNi","typeLabel":"number\u003cdecimal>"},"grossForEmployeeNi":{"type":"number","format":"decimal","description":"Earnings that employee National Insurance was worked out on under this letter.","uniqueKey":"content.data.openingBalance.additionalProperties.niBandResult.additionalProperties.grossForEmployeeNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerNi":{"type":"number","format":"decimal","description":"Earnings that employer National Insurance was worked out on under this letter.","uniqueKey":"content.data.openingBalance.additionalProperties.niBandResult.additionalProperties.grossForEmployerNi","typeLabel":"number\u003cdecimal>"},"bandResults":{"type":"object","additionalProperties":{"type":"object","properties":{"grossInBand":{"type":"number","format":"decimal","description":"Gross pay in this NI band","example":12570,"uniqueKey":"content.data.openingBalance.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.grossInBand","typeLabel":"number\u003cdecimal>"},"employeeNiForBand":{"type":"number","format":"decimal","description":"Employee NI contribution for this band","example":0,"uniqueKey":"content.data.openingBalance.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.employeeNiForBand","typeLabel":"number\u003cdecimal>"},"employerNiForBand":{"type":"number","format":"decimal","description":"Employer NI contribution for this band","example":0,"uniqueKey":"content.data.openingBalance.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.employerNiForBand","typeLabel":"number\u003cdecimal>"}},"uniqueKey":"content.data.openingBalance.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties","typeLabel":"object"},"description":"The same figures split by National Insurance band, keyed by band name.","uniqueKey":"content.data.openingBalance.additionalProperties.niBandResult.additionalProperties.bandResults","typeLabel":"object"}},"example":{"employeeNi":290.1,"employerNi":310.25,"totalNi":600.35,"grossForEmployeeNi":3500,"grossForEmployerNi":3500,"bandResults":{"PT-UEL":{"grossInBand":2000,"employeeNiForBand":180,"employerNiForBand":220},"UEL+":{"grossInBand":500,"employeeNiForBand":110.1,"employerNiForBand":90.25}}},"uniqueKey":"content.data.openingBalance.additionalProperties.niBandResult.additionalProperties","typeLabel":"object"},"description":"Map of NI category letter (single char) to NI calculation results. Keys must be a single letter (A-Z, case insensitive). Example keys: \"A\", \"B\", \"C\", etc. The band splits (bandResults) in each entry cover the whole employment, both stretches — the same coverage as the per-letter scalar totals (gross, contributions). For directors, the portion of these band splits paid while the director basis applied must also be entered in openingBalanceDirector niBandResult[letter].bandResults as a subset of this map, so the annualised calculation can supersede exactly that portion.","uniqueKey":"content.data.openingBalance.additionalProperties.niBandResult","typeLabel":"object"},"pensionContributionsByType":{"type":"object","additionalProperties":{"type":"number","format":"decimal","uniqueKey":"content.data.openingBalance.additionalProperties.pensionContributionsByType.additionalProperties","typeLabel":"number\u003cdecimal>"},"description":"Employee pension contributions broken down by pension scheme type. This represents the employee's contributions only, as employer contributions are tracked separately via 'employerPension' and are not part of this breakdown. Allowed keys: NetPayArrangement, ReliefAtSource, SalarySacrifice. Required at migration time so FPS YTD reporting (EmpeePenContribnsPaidYTD for NetPayArrangement, EmpeePenContribnsNotPaidYTD for ReliefAtSource) reflects opening-balance contributions correctly. The aggregate 'pension' field on responses is the sum of these values.","example":{"NetPayArrangement":300,"ReliefAtSource":200},"uniqueKey":"content.data.openingBalance.additionalProperties.pensionContributionsByType","typeLabel":"object"}},"uniqueKey":"content.data.openingBalance.additionalProperties","typeLabel":"object"},"description":"Opening balance for this employment. Updated via PUT /employees/{id}/opening-balance.","uniqueKey":"content.data.openingBalance","typeLabel":"object"},"openingBalanceDirector":{"type":"object","additionalProperties":{"type":"object","description":"Director earnings to date. Only contains the fields relevant to the annual NI calculation for directors. Send niBandResult keyed by NI category letter; when present it is authoritative and the deprecated scalar totals are ignored. When absent, the scalar totals are attributed to the employee's latest effective NI letter for the year — a lossy fallback that cannot express a director who paid NI under more than one letter.","properties":{"grossForEmployeeNi":{"type":"number","format":"decimal","description":"Deprecated as input: send niBandResult instead. Ignored when niBandResult is present. Always populated on responses as the sum across letters.","deprecated":true,"uniqueKey":"content.data.openingBalanceDirector.additionalProperties.grossForEmployeeNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerNi":{"type":"number","format":"decimal","description":"Deprecated as input: send niBandResult instead. Ignored when niBandResult is present. Always populated on responses as the sum across letters.","deprecated":true,"uniqueKey":"content.data.openingBalanceDirector.additionalProperties.grossForEmployerNi","typeLabel":"number\u003cdecimal>"},"ni":{"type":"number","format":"decimal","description":"Deprecated as input: send niBandResult instead. Ignored when niBandResult is present. Always populated on responses as the sum across letters.","deprecated":true,"uniqueKey":"content.data.openingBalanceDirector.additionalProperties.ni","typeLabel":"number\u003cdecimal>"},"employerNi":{"type":"number","format":"decimal","description":"Deprecated as input: send niBandResult instead. Ignored when niBandResult is present. Always populated on responses as the sum across letters.","deprecated":true,"uniqueKey":"content.data.openingBalanceDirector.additionalProperties.employerNi","typeLabel":"number\u003cdecimal>"},"niBandResult":{"type":"object","additionalProperties":{"type":"object","description":"Director NI-able earnings, contributions, and band splits accrued under a single NI category letter while the director basis applied.","properties":{"grossForEmployeeNi":{"type":"number","format":"decimal","description":"Gross earnings for employee NI accrued under this letter","uniqueKey":"content.data.openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.grossForEmployeeNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerNi":{"type":"number","format":"decimal","description":"Gross earnings for employer NI accrued under this letter","uniqueKey":"content.data.openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.grossForEmployerNi","typeLabel":"number\u003cdecimal>"},"employeeNi":{"type":"number","format":"decimal","description":"Employee NI already paid under this letter","uniqueKey":"content.data.openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.employeeNi","typeLabel":"number\u003cdecimal>"},"employerNi":{"type":"number","format":"decimal","description":"Employer NI already paid under this letter","uniqueKey":"content.data.openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.employerNi","typeLabel":"number\u003cdecimal>"},"bandResults":{"type":"object","additionalProperties":{"type":"object","properties":{"grossInBand":{"type":"number","format":"decimal","description":"Gross pay in this NI band","example":12570,"uniqueKey":"content.data.openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.grossInBand","typeLabel":"number\u003cdecimal>"},"employeeNiForBand":{"type":"number","format":"decimal","description":"Employee NI contribution for this band","example":0,"uniqueKey":"content.data.openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.employeeNiForBand","typeLabel":"number\u003cdecimal>"},"employerNiForBand":{"type":"number","format":"decimal","description":"Employer NI contribution for this band","example":0,"uniqueKey":"content.data.openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.employerNiForBand","typeLabel":"number\u003cdecimal>"}},"uniqueKey":"content.data.openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties","typeLabel":"object"},"description":"NI band splits for earnings paid under this letter while the director basis applied — a subset of the main opening balance's niBandResult band splits, which cover the whole employment. This mirrors the per-letter scalar totals: the main opening balance carries the whole-employment figures, this entry carries the director portion, and for a director for the whole year the two are the same values. Populate for the Alternative method: at the annual reassessment the director portion of the accumulated band splits is superseded by the recomputed annual-basis split, and this subset identifies that portion. For the Annual method the values are stored as a record of what was previously reported, but the annualised calculation and FPS reporting re-derive the band split from cumulative gross and ignore what is entered here. Keys are NI band names matching the main opening balance's band split keys.","uniqueKey":"content.data.openingBalanceDirector.additionalProperties.niBandResult.additionalProperties.bandResults","typeLabel":"object"}},"uniqueKey":"content.data.openingBalanceDirector.additionalProperties.niBandResult.additionalProperties","typeLabel":"object"},"description":"Director NI-able gross, contributions, and band splits broken down by NI category letter — the same name and shape as the main opening balance's niBandResult, dedicated here to earnings paid while the director basis applied (from appointment). Earnings paid before the appointment belong in the main opening balance's niBandResult, which is dedicated to earnings assessed as a regular employee.","uniqueKey":"content.data.openingBalanceDirector.additionalProperties.niBandResult","typeLabel":"object"}},"uniqueKey":"content.data.openingBalanceDirector.additionalProperties","typeLabel":"object"},"description":"Opening balance for director earnings. Updated via PUT /employees/{id}/opening-balance. Only NI-relevant fields.","uniqueKey":"content.data.openingBalanceDirector","typeLabel":"object"},"directorEarningsToDatePerYear":{"type":"object","additionalProperties":{"type":"object","description":"Director earnings to date. Only contains the fields relevant to the annual NI calculation for directors. Send niBandResult keyed by NI category letter; when present it is authoritative and the deprecated scalar totals are ignored. When absent, the scalar totals are attributed to the employee's latest effective NI letter for the year — a lossy fallback that cannot express a director who paid NI under more than one letter.","properties":{"grossForEmployeeNi":{"type":"number","format":"decimal","description":"Deprecated as input: send niBandResult instead. Ignored when niBandResult is present. Always populated on responses as the sum across letters.","deprecated":true,"uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.grossForEmployeeNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerNi":{"type":"number","format":"decimal","description":"Deprecated as input: send niBandResult instead. Ignored when niBandResult is present. Always populated on responses as the sum across letters.","deprecated":true,"uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.grossForEmployerNi","typeLabel":"number\u003cdecimal>"},"ni":{"type":"number","format":"decimal","description":"Deprecated as input: send niBandResult instead. Ignored when niBandResult is present. Always populated on responses as the sum across letters.","deprecated":true,"uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.ni","typeLabel":"number\u003cdecimal>"},"employerNi":{"type":"number","format":"decimal","description":"Deprecated as input: send niBandResult instead. Ignored when niBandResult is present. Always populated on responses as the sum across letters.","deprecated":true,"uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.employerNi","typeLabel":"number\u003cdecimal>"},"niBandResult":{"type":"object","additionalProperties":{"type":"object","description":"Director NI-able earnings, contributions, and band splits accrued under a single NI category letter while the director basis applied.","properties":{"grossForEmployeeNi":{"type":"number","format":"decimal","description":"Gross earnings for employee NI accrued under this letter","uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.grossForEmployeeNi","typeLabel":"number\u003cdecimal>"},"grossForEmployerNi":{"type":"number","format":"decimal","description":"Gross earnings for employer NI accrued under this letter","uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.grossForEmployerNi","typeLabel":"number\u003cdecimal>"},"employeeNi":{"type":"number","format":"decimal","description":"Employee NI already paid under this letter","uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.employeeNi","typeLabel":"number\u003cdecimal>"},"employerNi":{"type":"number","format":"decimal","description":"Employer NI already paid under this letter","uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.employerNi","typeLabel":"number\u003cdecimal>"},"bandResults":{"type":"object","additionalProperties":{"type":"object","properties":{"grossInBand":{"type":"number","format":"decimal","description":"Gross pay in this NI band","example":12570,"uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.grossInBand","typeLabel":"number\u003cdecimal>"},"employeeNiForBand":{"type":"number","format":"decimal","description":"Employee NI contribution for this band","example":0,"uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.employeeNiForBand","typeLabel":"number\u003cdecimal>"},"employerNiForBand":{"type":"number","format":"decimal","description":"Employer NI contribution for this band","example":0,"uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties.employerNiForBand","typeLabel":"number\u003cdecimal>"}},"uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.bandResults.additionalProperties","typeLabel":"object"},"description":"NI band splits for earnings paid under this letter while the director basis applied — a subset of the main opening balance's niBandResult band splits, which cover the whole employment. This mirrors the per-letter scalar totals: the main opening balance carries the whole-employment figures, this entry carries the director portion, and for a director for the whole year the two are the same values. Populate for the Alternative method: at the annual reassessment the director portion of the accumulated band splits is superseded by the recomputed annual-basis split, and this subset identifies that portion. For the Annual method the values are stored as a record of what was previously reported, but the annualised calculation and FPS reporting re-derive the band split from cumulative gross and ignore what is entered here. Keys are NI band names matching the main opening balance's band split keys.","uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.niBandResult.additionalProperties.bandResults","typeLabel":"object"}},"uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.niBandResult.additionalProperties","typeLabel":"object"},"description":"Director NI-able gross, contributions, and band splits broken down by NI category letter — the same name and shape as the main opening balance's niBandResult, dedicated here to earnings paid while the director basis applied (from appointment). Earnings paid before the appointment belong in the main opening balance's niBandResult, which is dedicated to earnings assessed as a regular employee.","uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties.niBandResult","typeLabel":"object"}},"uniqueKey":"content.data.directorEarningsToDatePerYear.additionalProperties","typeLabel":"object"},"description":"Computed year-to-date director earnings for NI calculation (opening balance + accumulated payslips). Read-only.","uniqueKey":"content.data.directorEarningsToDatePerYear","typeLabel":"object"},"salaryHistory":{"oneOf":[{"type":"object","description":"The effective-dated salary history, oldest first, with the version in force today. Managed via PUT /employees/{id}/salary; `salary` is the amount of the version in force.","required":["versions"],"properties":{"versions":{"type":"array","items":{"type":"object","description":"An effective-dated salary version with audit metadata.","required":["effectiveFrom","annualSalary","createdDate","createdBy","updatedDate","updatedBy"],"properties":{"effectiveFrom":{"type":"string","format":"date","description":"The date this salary takes effect (YYYY-MM-DD).","example":"2026-04-06","isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX].effectiveFrom","typeLabel":"string\u003cdate>"},"annualSalary":{"type":"number","format":"decimal","description":"The annual salary in pounds in force from effectiveFrom.","example":52000,"isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX].annualSalary","typeLabel":"number\u003cdecimal>"},"createdDate":{"type":"string","description":"When this version was first saved, as a UTC date and time.","isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX].createdDate","typeLabel":"string"},"createdBy":{"type":"string","description":"The user who first saved this version.","isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX].createdBy","typeLabel":"string"},"updatedDate":{"type":"string","description":"When this version was last saved, as a UTC date and time.","isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX].updatedDate","typeLabel":"string"},"updatedBy":{"type":"string","description":"The user who last saved this version.","isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX].updatedBy","typeLabel":"string"},"reason":{"oneOf":[{"type":"string","description":"The note given when the salary was set, if any.","example":"Annual review","uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX].reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"The note given when the salary was set, if any.","example":"Annual review","uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX].reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX].reason","typeLabel":"string | null"},"contractedHoursPerWeek":{"oneOf":[{"type":"number","format":"decimal","description":"The hours a week the employee is contracted to work at this salary; null when none were stated.","example":37.5,"uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX].contractedHoursPerWeek.oneOf.0","typeLabel":"number\u003cdecimal>"},{"type":"null","format":"decimal","description":"The hours a week the employee is contracted to work at this salary; null when none were stated.","example":37.5,"uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX].contractedHoursPerWeek.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX].contractedHoursPerWeek","typeLabel":"number\u003cdecimal> | null"}},"uniqueKey":"content.data.salaryHistory.oneOf.0.versions.items.[INDEX]","typeLabel":"object"},"description":"Every version, oldest first.","isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.versions","typeLabel":"object[]"},"inForce":{"oneOf":[{"type":"object","description":"The version in force today; null when every version is still in the future.","required":["effectiveFrom","annualSalary","createdDate","createdBy","updatedDate","updatedBy"],"properties":{"effectiveFrom":{"type":"string","format":"date","description":"The date this salary takes effect (YYYY-MM-DD).","example":"2026-04-06","isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0.effectiveFrom","typeLabel":"string\u003cdate>"},"annualSalary":{"type":"number","format":"decimal","description":"The annual salary in pounds in force from effectiveFrom.","example":52000,"isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0.annualSalary","typeLabel":"number\u003cdecimal>"},"createdDate":{"type":"string","description":"When this version was first saved, as a UTC date and time.","isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0.createdDate","typeLabel":"string"},"createdBy":{"type":"string","description":"The user who first saved this version.","isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0.createdBy","typeLabel":"string"},"updatedDate":{"type":"string","description":"When this version was last saved, as a UTC date and time.","isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0.updatedDate","typeLabel":"string"},"updatedBy":{"type":"string","description":"The user who last saved this version.","isRequired":true,"uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0.updatedBy","typeLabel":"string"},"reason":{"oneOf":[{"type":"string","description":"The note given when the salary was set, if any.","example":"Annual review","uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0.reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"The note given when the salary was set, if any.","example":"Annual review","uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0.reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0.reason","typeLabel":"string | null"},"contractedHoursPerWeek":{"oneOf":[{"type":"number","format":"decimal","description":"The hours a week the employee is contracted to work at this salary; null when none were stated.","example":37.5,"uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0.contractedHoursPerWeek.oneOf.0","typeLabel":"number\u003cdecimal>"},{"type":"null","format":"decimal","description":"The hours a week the employee is contracted to work at this salary; null when none were stated.","example":37.5,"uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0.contractedHoursPerWeek.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0.contractedHoursPerWeek","typeLabel":"number\u003cdecimal> | null"}},"uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"content.data.salaryHistory.oneOf.0.inForce.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.salaryHistory.oneOf.0.inForce","typeLabel":"object | null"}},"uniqueKey":"content.data.salaryHistory.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"content.data.salaryHistory.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.salaryHistory","typeLabel":"object | null"},"createdDate":{"oneOf":[{"type":"string","format":"date-time","description":"When the employee record was created, as a UTC date and time.","example":"2023-01-15T10:00:00Z","uniqueKey":"content.data.createdDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the employee record was created, as a UTC date and time.","example":"2023-01-15T10:00:00Z","uniqueKey":"content.data.createdDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.createdDate","typeLabel":"string\u003cdate-time> | null"},"createdBy":{"oneOf":[{"type":"string","description":"The user who created the employee record.","example":"admin@company.com","uniqueKey":"content.data.createdBy.oneOf.0","typeLabel":"string"},{"type":"null","description":"The user who created the employee record.","example":"admin@company.com","uniqueKey":"content.data.createdBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.createdBy","typeLabel":"string | null"},"updatedDate":{"oneOf":[{"type":"string","format":"date-time","description":"When the employee record was last changed, as a UTC date and time.","example":"2023-06-01T12:00:00Z","uniqueKey":"content.data.updatedDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the employee record was last changed, as a UTC date and time.","example":"2023-06-01T12:00:00Z","uniqueKey":"content.data.updatedDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.updatedDate","typeLabel":"string\u003cdate-time> | null"},"updatedBy":{"oneOf":[{"type":"string","description":"The user who last changed the employee record.","example":"hr@company.com","uniqueKey":"content.data.updatedBy.oneOf.0","typeLabel":"string"},{"type":"null","description":"The user who last changed the employee record.","example":"hr@company.com","uniqueKey":"content.data.updatedBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.data.updatedBy","typeLabel":"string | null"}},"uniqueKey":"content.data","typeLabel":"object"}},"uniqueKey":"content","typeLabel":"object"},"validationIssues":{"oneOf":[{"type":"array","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].field","typeLabel":"string"},"reason":{"type":"string","description":"Default human-readable message.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reason","typeLabel":"string"},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonToken","typeLabel":"string"},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments","typeLabel":"object[] | null"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1)."},"reason":{"type":"string","description":"Default human-readable message."},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case)."},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."}]}}},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues","typeLabel":"object[] | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":{"text":"\u003cstring>","token":"\u003cstring>","tokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]},"content":{"metadata":{"dateFormat":"\u003cstring>","dateTimeFormat":"\u003cstring>","paginationToken":"\u003cstring>"},"data":{"name":{"firstName":"John","lastName":"Smith","title":"Mr","initials":"\u003cstring>","middleName":"Edward"},"email":"john.smith@company.com","birthGender":"Male","birthDate":"1985-07-23","hoursWorkedCategory":"Above30Hours","id":"emp_12345","payrollConfigId":"payroll_config_001","starterDetails":{"startDate":"2024-01-15","starterDeclaration":"ThisIsMyOnlyJob","secondedDetails":{"stayStatus":"Stay183DaysOrMore","eEACitizen":true,"ePM6":false},"alreadySentToHmrcFps":false},"taxCodesPerYear":{"2025":[{"code":"1257L","effectiveDate":"2025-04-06","reason":"HMRC Update","issuedBy":"HMRC","week1Month1":false}]},"niDetails":{"nationalInsuranceNumber":"QQ123456C","categoriesPerYear":{}},"phone":"\u003cstring>","maritalStatus":"Married","salary":35000,"employeeCode":"EMP001","secondaryEmail":"john.secondary@company.com","address":{"line1":"123 Main Street","line2":"Apt 4B","city":"London","county":"Greater London","postcode":"SW1A 1AA","countryCode":"GB"},"bankAccounts":[{"accountNumber":"12345678","sortCode":"123456","accountHolderName":"John Smith","isPrimaryPayrollAccount":true,"allocationPercentage":100}],"studentDetails":{"studentLoanDetails":{"loanType":"Plan2","startDate":"2010-09-01","endDate":"2025-07-31"},"postgraduateLoanDetails":{"loanType":"PostgraduateLoan","startDate":"2015-09-01","endDate":"2028-07-31"}},"tags":[{"name":"FullTime","group":"EmploymentType","value":"FullTime"}],"previousEmployment":{"2026":{"grossTaxable":15000,"tax":3000}},"gender":"Male","secondaryPhone":"\u003cstring>","passportNumber":"123456789","previousNames":["John Doe"],"directorDetails":{"directorsNICType":"Annual","appointmentDate":"2024-01-15","endDate":"2025-03-31"},"isIrregularEmployment":false,"isOffPayrollWorker":false,"workplaceDetails":{"workplacePostcode":"E1 6AN"},"workingDays":{"standardWorkingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"shiftPattern":{"rotationStartDate":"2024-01-01","shifts":[{"name":"Morning Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5},{"name":"Night Shift","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false},"durationInDays":5}],"patternType":"FourOnFourOff"},"workingPattern":"Standard","explicitSchedule":{"weeks":[{"weekCommencing":"2026-07-06","workingDays":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false}}]}},"partnerDetails":{"nationalInsuranceNumber":"QQ654321A","name":{"firstName":"John","lastName":"Smith","title":"Mr","initials":"\u003cstring>","middleName":"Edward"}},"department":"Engineering","jobTitle":"Software Engineer","payrollId":"PAY123","payrollIdChanged":{"oldPayId":"\u003cstring>"},"leaverDetails":{"leavingDate":"2024-12-31","reason":"Retirement","issuedBy":"Employer","reportedToHmrc":false,"finalisedOnPayslip":true},"isLeaver":true,"earningsToDatePerYear":{},"openingBalance":{},"openingBalanceDirector":{},"directorEarningsToDatePerYear":{},"salaryHistory":{"versions":[{"effectiveFrom":"2026-04-06","annualSalary":52000,"createdDate":"\u003cstring>","createdBy":"\u003cstring>","updatedDate":"\u003cstring>","updatedBy":"\u003cstring>","reason":"Annual review","contractedHoursPerWeek":37.5}],"inForce":{"effectiveFrom":"2026-04-06","annualSalary":52000,"createdDate":"\u003cstring>","createdBy":"\u003cstring>","updatedDate":"\u003cstring>","updatedBy":"\u003cstring>","reason":"Annual review","contractedHoursPerWeek":37.5}},"createdDate":"2023-01-15T10:00:00Z","createdBy":"admin@company.com","updatedDate":"2023-06-01T12:00:00Z","updatedBy":"hr@company.com"}},"validationIssues":[{"field":"\u003cstring>","reason":"\u003cstring>","reasonToken":"\u003cstring>","reasonTokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]}]}}},"exampleType":"generated"}},"exampleType":"generated"},"7620bea6-d6f5-434f-bc91-39398ad928c1":{"description":"Invalid employee data","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"object","required":["text","token"],"properties":{"text":{"type":"string","description":"The message in English, ready to show to a user.","isRequired":true,"uniqueKey":"message.text","typeLabel":"string"},"token":{"type":"string","description":"A stable snake_case key for the message, so a client can show its own wording or a translation instead of text.","isRequired":true,"uniqueKey":"message.token","typeLabel":"string"},"tokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"message.tokenArguments","typeLabel":"object[] | null"}},"description":"A readable message about the outcome and a stable token a client can branch on.","isRequired":true,"uniqueKey":"message","typeLabel":"object"},"content":{"type":"object","required":["metadata"],"properties":{"metadata":{"type":"object","required":["dateFormat","dateTimeFormat"],"properties":{"dateFormat":{"type":"string","description":"The format of the dates in this response, yyyy-MM-dd.","isRequired":true,"uniqueKey":"content.metadata.dateFormat","typeLabel":"string"},"dateTimeFormat":{"type":"string","description":"The format of the timestamps in this response, yyyy-MM-ddTHH:mm:ss.fffZ in UTC.","isRequired":true,"uniqueKey":"content.metadata.dateTimeFormat","typeLabel":"string"},"paginationToken":{"oneOf":[{"type":"string","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.0","typeLabel":"string"},{"type":"null","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.metadata.paginationToken","typeLabel":"string | null"}},"description":"The date formats the response uses and, on a paged list, the token for the next page.","isRequired":true,"uniqueKey":"content.metadata","typeLabel":"object"},"data":{"description":"The resource or list the request asked for; left out when there is none.","uniqueKey":"content.data","typeLabel":"any"}},"description":"The data the request returns with its metadata; left out on a response that carries no data, such as most errors.","uniqueKey":"content","typeLabel":"object"},"validationIssues":{"oneOf":[{"type":"array","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].field","typeLabel":"string"},"reason":{"type":"string","description":"Default human-readable message.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reason","typeLabel":"string"},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonToken","typeLabel":"string"},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments","typeLabel":"object[] | null"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1)."},"reason":{"type":"string","description":"Default human-readable message."},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case)."},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."}]}}},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues","typeLabel":"object[] | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":{"text":"\u003cstring>","token":"\u003cstring>","tokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]},"content":{"metadata":{"dateFormat":"\u003cstring>","dateTimeFormat":"\u003cstring>","paginationToken":"\u003cstring>"},"data":"\u003cunknown>"},"validationIssues":[{"field":"\u003cstring>","reason":"\u003cstring>","reasonToken":"\u003cstring>","reasonTokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]}]}}},"exampleType":"generated"}},"exampleType":"generated"},"12ce1508-dc80-45ba-9679-5e10edeac96d":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"object","required":["text","token"],"properties":{"text":{"type":"string","description":"The message in English, ready to show to a user.","isRequired":true,"uniqueKey":"message.text","typeLabel":"string"},"token":{"type":"string","description":"A stable snake_case key for the message, so a client can show its own wording or a translation instead of text.","isRequired":true,"uniqueKey":"message.token","typeLabel":"string"},"tokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"message.tokenArguments","typeLabel":"object[] | null"}},"description":"A readable message about the outcome and a stable token a client can branch on.","isRequired":true,"uniqueKey":"message","typeLabel":"object"},"content":{"type":"object","required":["metadata"],"properties":{"metadata":{"type":"object","required":["dateFormat","dateTimeFormat"],"properties":{"dateFormat":{"type":"string","description":"The format of the dates in this response, yyyy-MM-dd.","isRequired":true,"uniqueKey":"content.metadata.dateFormat","typeLabel":"string"},"dateTimeFormat":{"type":"string","description":"The format of the timestamps in this response, yyyy-MM-ddTHH:mm:ss.fffZ in UTC.","isRequired":true,"uniqueKey":"content.metadata.dateTimeFormat","typeLabel":"string"},"paginationToken":{"oneOf":[{"type":"string","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.0","typeLabel":"string"},{"type":"null","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.metadata.paginationToken","typeLabel":"string | null"}},"description":"The date formats the response uses and, on a paged list, the token for the next page.","isRequired":true,"uniqueKey":"content.metadata","typeLabel":"object"},"data":{"description":"The resource or list the request asked for; left out when there is none.","uniqueKey":"content.data","typeLabel":"any"}},"description":"The data the request returns with its metadata; left out on a response that carries no data, such as most errors.","uniqueKey":"content","typeLabel":"object"},"validationIssues":{"oneOf":[{"type":"array","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].field","typeLabel":"string"},"reason":{"type":"string","description":"Default human-readable message.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reason","typeLabel":"string"},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonToken","typeLabel":"string"},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments","typeLabel":"object[] | null"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1)."},"reason":{"type":"string","description":"Default human-readable message."},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case)."},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."}]}}},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues","typeLabel":"object[] | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":{"text":"\u003cstring>","token":"\u003cstring>","tokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]},"content":{"metadata":{"dateFormat":"\u003cstring>","dateTimeFormat":"\u003cstring>","paginationToken":"\u003cstring>"},"data":"\u003cunknown>"},"validationIssues":[{"field":"\u003cstring>","reason":"\u003cstring>","reasonToken":"\u003cstring>","reasonTokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]}]}}},"exampleType":"generated"}},"exampleType":"generated"},"746f0336-650e-439e-b7ba-ee4f06036402":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"object","required":["text","token"],"properties":{"text":{"type":"string","description":"The message in English, ready to show to a user.","isRequired":true,"uniqueKey":"message.text","typeLabel":"string"},"token":{"type":"string","description":"A stable snake_case key for the message, so a client can show its own wording or a translation instead of text.","isRequired":true,"uniqueKey":"message.token","typeLabel":"string"},"tokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"message.tokenArguments","typeLabel":"object[] | null"}},"description":"A readable message about the outcome and a stable token a client can branch on.","isRequired":true,"uniqueKey":"message","typeLabel":"object"},"content":{"type":"object","required":["metadata"],"properties":{"metadata":{"type":"object","required":["dateFormat","dateTimeFormat"],"properties":{"dateFormat":{"type":"string","description":"The format of the dates in this response, yyyy-MM-dd.","isRequired":true,"uniqueKey":"content.metadata.dateFormat","typeLabel":"string"},"dateTimeFormat":{"type":"string","description":"The format of the timestamps in this response, yyyy-MM-ddTHH:mm:ss.fffZ in UTC.","isRequired":true,"uniqueKey":"content.metadata.dateTimeFormat","typeLabel":"string"},"paginationToken":{"oneOf":[{"type":"string","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.0","typeLabel":"string"},{"type":"null","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.metadata.paginationToken","typeLabel":"string | null"}},"description":"The date formats the response uses and, on a paged list, the token for the next page.","isRequired":true,"uniqueKey":"content.metadata","typeLabel":"object"},"data":{"description":"The resource or list the request asked for; left out when there is none.","uniqueKey":"content.data","typeLabel":"any"}},"description":"The data the request returns with its metadata; left out on a response that carries no data, such as most errors.","uniqueKey":"content","typeLabel":"object"},"validationIssues":{"oneOf":[{"type":"array","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].field","typeLabel":"string"},"reason":{"type":"string","description":"Default human-readable message.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reason","typeLabel":"string"},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonToken","typeLabel":"string"},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments","typeLabel":"object[] | null"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1)."},"reason":{"type":"string","description":"Default human-readable message."},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case)."},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."}]}}},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues","typeLabel":"object[] | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":{"text":"\u003cstring>","token":"\u003cstring>","tokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]},"content":{"metadata":{"dateFormat":"\u003cstring>","dateTimeFormat":"\u003cstring>","paginationToken":"\u003cstring>"},"data":"\u003cunknown>"},"validationIssues":[{"field":"\u003cstring>","reason":"\u003cstring>","reasonToken":"\u003cstring>","reasonTokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]}]}}},"exampleType":"generated"}},"exampleType":"generated"},"a3cce44e-ee14-4f4c-9c67-780d4dc173bd":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"object","required":["text","token"],"properties":{"text":{"type":"string","description":"The message in English, ready to show to a user.","isRequired":true,"uniqueKey":"message.text","typeLabel":"string"},"token":{"type":"string","description":"A stable snake_case key for the message, so a client can show its own wording or a translation instead of text.","isRequired":true,"uniqueKey":"message.token","typeLabel":"string"},"tokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"message.tokenArguments","typeLabel":"object[] | null"}},"description":"A readable message about the outcome and a stable token a client can branch on.","isRequired":true,"uniqueKey":"message","typeLabel":"object"},"content":{"type":"object","required":["metadata"],"properties":{"metadata":{"type":"object","required":["dateFormat","dateTimeFormat"],"properties":{"dateFormat":{"type":"string","description":"The format of the dates in this response, yyyy-MM-dd.","isRequired":true,"uniqueKey":"content.metadata.dateFormat","typeLabel":"string"},"dateTimeFormat":{"type":"string","description":"The format of the timestamps in this response, yyyy-MM-ddTHH:mm:ss.fffZ in UTC.","isRequired":true,"uniqueKey":"content.metadata.dateTimeFormat","typeLabel":"string"},"paginationToken":{"oneOf":[{"type":"string","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.0","typeLabel":"string"},{"type":"null","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.metadata.paginationToken","typeLabel":"string | null"}},"description":"The date formats the response uses and, on a paged list, the token for the next page.","isRequired":true,"uniqueKey":"content.metadata","typeLabel":"object"},"data":{"description":"The resource or list the request asked for; left out when there is none.","uniqueKey":"content.data","typeLabel":"any"}},"description":"The data the request returns with its metadata; left out on a response that carries no data, such as most errors.","uniqueKey":"content","typeLabel":"object"},"validationIssues":{"oneOf":[{"type":"array","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].field","typeLabel":"string"},"reason":{"type":"string","description":"Default human-readable message.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reason","typeLabel":"string"},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonToken","typeLabel":"string"},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments","typeLabel":"object[] | null"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1)."},"reason":{"type":"string","description":"Default human-readable message."},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case)."},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."}]}}},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues","typeLabel":"object[] | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":{"text":"\u003cstring>","token":"\u003cstring>","tokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]},"content":{"metadata":{"dateFormat":"\u003cstring>","dateTimeFormat":"\u003cstring>","paginationToken":"\u003cstring>"},"data":"\u003cunknown>"},"validationIssues":[{"field":"\u003cstring>","reason":"\u003cstring>","reasonToken":"\u003cstring>","reasonTokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]}]}}},"exampleType":"generated"}},"exampleType":"generated"},"ed67addb-6f2f-42ca-81f8-02252cc0ac94":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"object","required":["text","token"],"properties":{"text":{"type":"string","description":"The message in English, ready to show to a user.","isRequired":true,"uniqueKey":"message.text","typeLabel":"string"},"token":{"type":"string","description":"A stable snake_case key for the message, so a client can show its own wording or a translation instead of text.","isRequired":true,"uniqueKey":"message.token","typeLabel":"string"},"tokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"message.tokenArguments","typeLabel":"object[] | null"}},"description":"A readable message about the outcome and a stable token a client can branch on.","isRequired":true,"uniqueKey":"message","typeLabel":"object"},"content":{"type":"object","required":["metadata"],"properties":{"metadata":{"type":"object","required":["dateFormat","dateTimeFormat"],"properties":{"dateFormat":{"type":"string","description":"The format of the dates in this response, yyyy-MM-dd.","isRequired":true,"uniqueKey":"content.metadata.dateFormat","typeLabel":"string"},"dateTimeFormat":{"type":"string","description":"The format of the timestamps in this response, yyyy-MM-ddTHH:mm:ss.fffZ in UTC.","isRequired":true,"uniqueKey":"content.metadata.dateTimeFormat","typeLabel":"string"},"paginationToken":{"oneOf":[{"type":"string","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.0","typeLabel":"string"},{"type":"null","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.metadata.paginationToken","typeLabel":"string | null"}},"description":"The date formats the response uses and, on a paged list, the token for the next page.","isRequired":true,"uniqueKey":"content.metadata","typeLabel":"object"},"data":{"description":"The resource or list the request asked for; left out when there is none.","uniqueKey":"content.data","typeLabel":"any"}},"description":"The data the request returns with its metadata; left out on a response that carries no data, such as most errors.","uniqueKey":"content","typeLabel":"object"},"validationIssues":{"oneOf":[{"type":"array","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].field","typeLabel":"string"},"reason":{"type":"string","description":"Default human-readable message.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reason","typeLabel":"string"},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonToken","typeLabel":"string"},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments","typeLabel":"object[] | null"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1)."},"reason":{"type":"string","description":"Default human-readable message."},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case)."},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."}]}}},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues","typeLabel":"object[] | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":{"text":"\u003cstring>","token":"\u003cstring>","tokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]},"content":{"metadata":{"dateFormat":"\u003cstring>","dateTimeFormat":"\u003cstring>","paginationToken":"\u003cstring>"},"data":"\u003cunknown>"},"validationIssues":[{"field":"\u003cstring>","reason":"\u003cstring>","reasonToken":"\u003cstring>","reasonTokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]}]}}},"exampleType":"generated"}},"exampleType":"generated"},"16d49623-49c9-409b-b3d3-4421b8275667":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"object","required":["text","token"],"properties":{"text":{"type":"string","description":"The message in English, ready to show to a user.","isRequired":true,"uniqueKey":"message.text","typeLabel":"string"},"token":{"type":"string","description":"A stable snake_case key for the message, so a client can show its own wording or a translation instead of text.","isRequired":true,"uniqueKey":"message.token","typeLabel":"string"},"tokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"message.tokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for token, such as the request id; absent when the message has none.","uniqueKey":"message.tokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"message.tokenArguments","typeLabel":"object[] | null"}},"description":"A readable message about the outcome and a stable token a client can branch on.","isRequired":true,"uniqueKey":"message","typeLabel":"object"},"content":{"type":"object","required":["metadata"],"properties":{"metadata":{"type":"object","required":["dateFormat","dateTimeFormat"],"properties":{"dateFormat":{"type":"string","description":"The format of the dates in this response, yyyy-MM-dd.","isRequired":true,"uniqueKey":"content.metadata.dateFormat","typeLabel":"string"},"dateTimeFormat":{"type":"string","description":"The format of the timestamps in this response, yyyy-MM-ddTHH:mm:ss.fffZ in UTC.","isRequired":true,"uniqueKey":"content.metadata.dateTimeFormat","typeLabel":"string"},"paginationToken":{"oneOf":[{"type":"string","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.0","typeLabel":"string"},{"type":"null","description":"Send this value back as the paginationToken query parameter to get the next page; absent when there are no more pages.","uniqueKey":"content.metadata.paginationToken.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.metadata.paginationToken","typeLabel":"string | null"}},"description":"The date formats the response uses and, on a paged list, the token for the next page.","isRequired":true,"uniqueKey":"content.metadata","typeLabel":"object"},"data":{"description":"The resource or list the request asked for; left out when there is none.","uniqueKey":"content.data","typeLabel":"any"}},"description":"The data the request returns with its metadata; left out on a response that carries no data, such as most errors.","uniqueKey":"content","typeLabel":"object"},"validationIssues":{"oneOf":[{"type":"array","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].field","typeLabel":"string"},"reason":{"type":"string","description":"Default human-readable message.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reason","typeLabel":"string"},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case).","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonToken","typeLabel":"string"},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].name","typeLabel":"string"},"value":{"description":"The value itself, as a string, number or other JSON value.","isRequired":true,"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none.","uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues.oneOf.0.items.[INDEX].reasonTokenArguments","typeLabel":"object[] | null"}},"uniqueKey":"validationIssues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","description":"Field validation item. `reasonToken` is a stable snake_case key for i18n or custom client messages; `reason` is the default English text from the API.","required":["field","reason","reasonToken"],"properties":{"field":{"type":"string","description":"Dot-path of the field (e.g. name.firstName, address.line1)."},"reason":{"type":"string","description":"Default human-readable message."},"reasonToken":{"type":"string","description":"Machine-readable error identifier (snake_case)."},"reasonTokenArguments":{"oneOf":[{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."},{"type":"null","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","description":"The name of the value, as a client's wording refers to it."},"value":{"description":"The value itself, as a string, number or other JSON value."}}},"description":"Values to fill into the client's own wording for reasonToken; absent when the reason has none."}]}}},"description":"Each field the request was refused for and why; left out when the request was not refused for its fields.","uniqueKey":"validationIssues.oneOf.1","typeLabel":"null"}],"uniqueKey":"validationIssues","typeLabel":"object[] | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":{"text":"\u003cstring>","token":"\u003cstring>","tokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]},"content":{"metadata":{"dateFormat":"\u003cstring>","dateTimeFormat":"\u003cstring>","paginationToken":"\u003cstring>"},"data":"\u003cunknown>"},"validationIssues":[{"field":"\u003cstring>","reason":"\u003cstring>","reasonToken":"\u003cstring>","reasonTokenArguments":[{"name":"\u003cstring>","value":"\u003cunknown>"}]}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"973976aa-1bf6-4af6-9e68-200c04a60a73":{"XAuthToken":{"type":"apiKey","in":"header","name":"X-Auth-Token","description":"Access token obtained from OAuth2 client credentials flow","scopes":[],"schemeName":"XAuthToken"},"XOrgId":{"type":"apiKey","in":"header","name":"X-Org-Id","description":"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).","scopes":[],"schemeName":"XOrgId"}}},"servers":{"4f10880e-c0ad-40a3-a61a-d2a198e39654":{"url":"https://api.sandbox.flowpayroll.ai/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Auth-Token","description":"Access token obtained from OAuth2 client credentials flow","scopes":[],"schemeName":"XAuthToken"},"schema":{"title":"X-Auth-Token","type":"string","description":"Access token obtained from OAuth2 client credentials flow","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"XAuthToken","name":"X-Auth-Token"},{"scheme":{"type":"apiKey","in":"header","name":"X-Org-Id","description":"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).","scopes":[],"schemeName":"XOrgId"},"schema":{"title":"X-Org-Id","type":"string","description":"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).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"XOrgId","name":"X-Org-Id"}],"title":"XAuthToken \u0026 XOrgId"}]},"originalFileLocation":"api-reference/specs/pay-api.yaml"},"subdomain":"flowpayroll-1ca487e0","siteName":"Flow Payroll","title":"Create a new employee - Flow Payroll","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-02T16:49:01.847Z","originalFileLocation":"api-reference/pay-api/employees/create-a-new-employee.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"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\u0026#x27;s other fields are judged as on any change: a Payroll ID needs employee-payroll-id:write (left out, it is the employee\u0026#x27;s ID), working patterns working-pattern:write.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Flow Payroll\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/flowpayroll-1ca487e0/zIWjxBHuf7oDNvih/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/flowpayroll-1ca487e0/zIWjxBHuf7oDNvih/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flowpayroll-1ca487e0/zIWjxBHuf7oDNvih/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/flowpayroll-1ca487e0/zIWjxBHuf7oDNvih/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/flowpayroll-1ca487e0/zIWjxBHuf7oDNvih/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/flowpayroll-1ca487e0/zIWjxBHuf7oDNvih/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flowpayroll-1ca487e0/zIWjxBHuf7oDNvih/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/flowpayroll-1ca487e0/zIWjxBHuf7oDNvih/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/flowpayroll-1ca487e0/zIWjxBHuf7oDNvih/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a new employee - Flow Payroll\">\u003cmeta data-mint-head property=\"og:description\" content=\"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\u0026#x27;s other fields are judged as on any change: a Payroll ID needs employee-payroll-id:write (left out, it is the employee\u0026#x27;s ID), working patterns working-pattern:write.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Flow Payroll\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.flowpayroll.ai/api-reference/pay-api/employees/create-a-new-employee\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://flowpayroll-1ca487e0.mintlify.site/_mintlify/api/og/v2?division=Employees\u0026amp;title=Create+a+new+employee\u0026amp;description=Needs+permission+employee%3Awrite%2C+and+employee-payroll%3Awrite%2C+employee-pay-schedule%3Awrite.%0A%0AAdding+an+employee+writes+their+details%2C+their+payroll+details+and+th\u0026amp;theme=cd67eca79f792077d60a7663\u0026amp;signature=856f5a78a0aa08f84516c6d5955ec0b8172b85d4a9c29d71e59299c0821387e4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a new employee - Flow Payroll\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"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\u0026#x27;s other fields are judged as on any change: a Payroll ID needs employee-payroll-id:write (left out, it is the employee\u0026#x27;s ID), working patterns working-pattern:write.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://flowpayroll-1ca487e0.mintlify.site/_mintlify/api/og/v2?division=Employees\u0026amp;title=Create+a+new+employee\u0026amp;description=Needs+permission+employee%3Awrite%2C+and+employee-payroll%3Awrite%2C+employee-pay-schedule%3Awrite.%0A%0AAdding+an+employee+writes+their+details%2C+their+payroll+details+and+th\u0026amp;theme=cd67eca79f792077d60a7663\u0026amp;signature=856f5a78a0aa08f84516c6d5955ec0b8172b85d4a9c29d71e59299c0821387e4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/flowpayroll-1ca487e0/zIWjxBHuf7oDNvih/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Flow Payroll\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#635BFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.flowpayroll.ai/api-reference/pay-api/employees/create-a-new-employee\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/pay-api/employees/create-a-new-employee.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.flowpayroll.ai/#organization\",\"name\":\"Flow Payroll\",\"url\":\"https://docs.flowpayroll.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/flowpayroll-1ca487e0/ySOA_2Ay6nr7ISKu/logo/light.svg?fit=max\u0026auto=format\u0026n=ySOA_2Ay6nr7ISKu\u0026q=85\u0026s=a1a7d7d96acdc04b96f0d043180b6ae8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.flowpayroll.ai#website\",\"name\":\"Flow Payroll\",\"url\":\"https://docs.flowpayroll.ai\",\"publisher\":{\"@id\":\"https://docs.flowpayroll.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.flowpayroll.ai/api-reference/pay-api/employees/create-a-new-employee#webpage\",\"url\":\"https://docs.flowpayroll.ai/api-reference/pay-api/employees/create-a-new-employee\",\"name\":\"Create a new employee\",\"description\":\"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.\",\"dateModified\":\"2026-12-02T16:49:01.847Z\",\"isPartOf\":{\"@id\":\"https://docs.flowpayroll.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.flowpayroll.ai/api-reference/pay-api/employees/create-a-new-employee#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.flowpayroll.ai/api-reference/pay-api/employees/create-a-new-employee#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Pay API\",\"item\":\"https://docs.flowpayroll.ai/api-reference/pay-api/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Employees\",\"item\":\"https://docs.flowpayroll.ai/api-reference/pay-api/employees/list-every-employee-field-your-role-can-read\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a new employee\",\"item\":\"https://docs.flowpayroll.ai/api-reference/pay-api/employees/create-a-new-employee\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.flowpayroll.ai/api-reference/pay-api/employees/create-a-new-employee#apireference\",\"headline\":\"Create a new employee\",\"name\":\"Create a new employee\",\"description\":\"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.\",\"url\":\"https://docs.flowpayroll.ai/api-reference/pay-api/employees/create-a-new-employee\",\"mainEntityOfPage\":{\"@id\":\"https://docs.flowpayroll.ai/api-reference/pay-api/employees/create-a-new-employee#webpage\"},\"dateModified\":\"2026-12-02T16:49:01.847Z\",\"publisher\":{\"@id\":\"https://docs.flowpayroll.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.flowpayroll.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Flow Payroll\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Flow Payroll\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/pay-api/employees/create-a-new-employee.md","siteName":"Flow Payroll","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://app.flowpayroll.ai"},{"anchor":"Download OpenAPI","icon":"download","href":"/api-reference/use-in-postman"},{"anchor":"Support","icon":"envelope","href":"mailto:hello@flowpayroll.ai"}]},"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":""}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/welcome"}]},{"tab":"Onboarding","pages":[{"title":"Onboarding","href":"/onboarding/overview"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"UK payroll API","sidebarTitle":"API reference","icon":"code","href":"/api-reference/introduction"},{"title":"Build an integration","sidebarTitle":"Integration patterns","icon":"plug","href":"/api-reference/integration-patterns"},{"title":"What's new in the API","sidebarTitle":"What's new","icon":"sparkles","href":"/api-reference/whats-new"},{"title":"Deprecations","icon":"clock-rotate-left","href":"/api-reference/deprecations"},{"title":"Authentication","icon":"key","href":"/api-reference/authentication"},{"title":"Response format","icon":"brackets-curly","href":"/api-reference/response-format"},{"title":"Use in Postman","icon":"download","href":"/api-reference/use-in-postman"},{"title":"MCP server","icon":"plug","href":"/api-reference/mcp-server"},{"title":"Payroll for AI agents","sidebarTitle":"AI agents","icon":"sparkles","href":"/api-reference/agentic-payroll"}]},{"group":"Administration API","pages":[{"title":"Administration API overview","sidebarTitle":"Overview","href":"/api-reference/administration/overview"},{"title":"Users, roles and permissions","href":"/api-reference/administration/users-roles-and-permissions"},{"title":"Permission errors","href":"/api-reference/administration/permission-errors"},{"title":"Provisioning users with SCIM 2.0","href":"/api-reference/administration/scim-provisioning"},{"title":"Show your own support inside Flow Payroll","sidebarTitle":"Support panel","href":"/api-reference/administration/partner-support-panel"},{"title":"Tell your people what to do when their role can't change something","sidebarTitle":"Access messages","href":"/api-reference/administration/access-messages"},{"group":"Activity","pages":[{"title":"List recent administration activity","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /activity","href":"/api-reference/administration/activity/list-recent-administration-activity"},{"title":"List changes to who has access","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /access-changes","href":"/api-reference/administration/activity/list-changes-to-who-has-access"}]},{"group":"API tokens","pages":[{"title":"List your API tokens","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /api-tokens","href":"/api-reference/administration/api-tokens/list-your-api-tokens"},{"title":"Create an API token","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /api-tokens","href":"/api-reference/administration/api-tokens/create-an-api-token"},{"title":"Get an API token and its access","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /api-tokens/{clientId}","href":"/api-reference/administration/api-tokens/get-an-api-token-and-its-access"},{"title":"Revoke an API token","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /api-tokens/{clientId}","href":"/api-reference/administration/api-tokens/revoke-an-api-token"},{"title":"Rename an API token, or change where it may be used from","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json patch /api-tokens/{clientId}","href":"/api-reference/administration/api-tokens/rename-an-api-token-or-change-where-it-may-be-used-from"},{"title":"Rotate an API token's secret","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /api-tokens/{clientId}/rotate","href":"/api-reference/administration/api-tokens/rotate-an-api-tokens-secret"},{"title":"List the organisations an API token reaches","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /api-tokens/{clientId}/organisations","href":"/api-reference/administration/api-tokens/list-the-organisations-an-api-token-reaches"},{"title":"Replace the organisations an API token reaches","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json put /api-tokens/{clientId}/organisations","href":"/api-reference/administration/api-tokens/replace-the-organisations-an-api-token-reaches"},{"title":"Grant an API token one organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json put /api-tokens/{clientId}/organisations/{organisationId}","href":"/api-reference/administration/api-tokens/grant-an-api-token-one-organisation"},{"title":"Remove an API token's grant on one organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /api-tokens/{clientId}/organisations/{organisationId}","href":"/api-reference/administration/api-tokens/remove-an-api-tokens-grant-on-one-organisation"},{"title":"Check whether an API token has account-wide access","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /api-tokens/{clientId}/customer-access","href":"/api-reference/administration/api-tokens/check-whether-an-api-token-has-account-wide-access"},{"title":"Grant an API token account-wide access","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json put /api-tokens/{clientId}/customer-access","href":"/api-reference/administration/api-tokens/grant-an-api-token-account-wide-access"},{"title":"Remove an API token's account-wide access","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /api-tokens/{clientId}/customer-access","href":"/api-reference/administration/api-tokens/remove-an-api-tokens-account-wide-access"}]},{"group":"Branding","pages":[{"title":"Get your published brand","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /customer/branding","href":"/api-reference/administration/branding/get-your-published-brand"},{"title":"Go back to the Flow brand","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /customer/branding","href":"/api-reference/administration/branding/go-back-to-the-flow-brand"},{"title":"Get your brand draft","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /customer/branding/draft","href":"/api-reference/administration/branding/get-your-brand-draft"},{"title":"Start your brand again","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /customer/branding/draft","href":"/api-reference/administration/branding/start-your-brand-again"},{"title":"Change your brand draft","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json patch /customer/branding/draft","href":"/api-reference/administration/branding/change-your-brand-draft"},{"title":"List your published brand history","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /customer/branding/revisions","href":"/api-reference/administration/branding/list-your-published-brand-history"},{"title":"Publish your brand","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /customer/branding/revisions","href":"/api-reference/administration/branding/publish-your-brand"},{"title":"Upload a logo, icon or font","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /customer/branding/assets","href":"/api-reference/administration/branding/upload-a-logo-icon-or-font"},{"title":"Check an upload","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /customer/branding/assets/{uploadId}","href":"/api-reference/administration/branding/check-an-upload"},{"title":"List your web addresses","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /customer/branding/domains","href":"/api-reference/administration/branding/list-your-web-addresses"},{"title":"List your email sending domains","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /customer/branding/sending-domains","href":"/api-reference/administration/branding/list-your-email-sending-domains"}]},{"group":"Customer","pages":[{"title":"Transfer ownership of your account","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json put /customer/owner","href":"/api-reference/administration/customer/transfer-ownership-of-your-account"},{"title":"Get your account","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /customer","href":"/api-reference/administration/customer/get-your-account"},{"title":"Rename your account","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json patch /customer","href":"/api-reference/administration/customer/rename-your-account"}]},{"group":"Organisation groups","pages":[{"title":"Give a person access through an organisation group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json put /users/{userId}/organisation-groups/{groupId}","href":"/api-reference/administration/organisation-groups/give-a-person-access-through-an-organisation-group"},{"title":"End a person's access through an organisation group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /users/{userId}/organisation-groups/{groupId}","href":"/api-reference/administration/organisation-groups/end-a-persons-access-through-an-organisation-group"},{"title":"Give an API token access through an organisation group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json put /api-tokens/{clientId}/organisation-groups/{groupId}","href":"/api-reference/administration/organisation-groups/give-an-api-token-access-through-an-organisation-group"},{"title":"End an API token's access through an organisation group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /api-tokens/{clientId}/organisation-groups/{groupId}","href":"/api-reference/administration/organisation-groups/end-an-api-tokens-access-through-an-organisation-group"},{"title":"List your organisation groups","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisation-groups","href":"/api-reference/administration/organisation-groups/list-your-organisation-groups"},{"title":"Create an organisation group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /organisation-groups","href":"/api-reference/administration/organisation-groups/create-an-organisation-group"},{"title":"Get an organisation group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisation-groups/{groupId}","href":"/api-reference/administration/organisation-groups/get-an-organisation-group"},{"title":"Delete an organisation group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /organisation-groups/{groupId}","href":"/api-reference/administration/organisation-groups/delete-an-organisation-group"},{"title":"Rename an organisation group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json patch /organisation-groups/{groupId}","href":"/api-reference/administration/organisation-groups/rename-an-organisation-group"},{"title":"List the organisations in a group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisation-groups/{groupId}/organisations","href":"/api-reference/administration/organisation-groups/list-the-organisations-in-a-group"},{"title":"Add an organisation to a group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json put /organisation-groups/{groupId}/organisations/{organisationId}","href":"/api-reference/administration/organisation-groups/add-an-organisation-to-a-group"},{"title":"Take an organisation out of a group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /organisation-groups/{groupId}/organisations/{organisationId}","href":"/api-reference/administration/organisation-groups/take-an-organisation-out-of-a-group"},{"title":"List who has access through an organisation group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisation-groups/{groupId}/access","href":"/api-reference/administration/organisation-groups/list-who-has-access-through-an-organisation-group"}]},{"group":"Organisations","pages":[{"title":"List the organisations you can see","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisations","href":"/api-reference/administration/organisations/list-the-organisations-you-can-see"},{"title":"Add an organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /organisations","href":"/api-reference/administration/organisations/add-an-organisation"},{"title":"Add up the organisations you can see","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisations/summary","href":"/api-reference/administration/organisations/add-up-the-organisations-you-can-see"},{"title":"Add several organisations at once","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /organisations/bulk","href":"/api-reference/administration/organisations/add-several-organisations-at-once"},{"title":"Get an organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisations/{organisationId}","href":"/api-reference/administration/organisations/get-an-organisation"},{"title":"Change what your account records about an organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json patch /organisations/{organisationId}","href":"/api-reference/administration/organisations/change-what-your-account-records-about-an-organisation"},{"title":"List who has access to an organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisations/{organisationId}/access","href":"/api-reference/administration/organisations/list-who-has-access-to-an-organisation"},{"title":"Name who did something in an organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisations/{organisationId}/people","href":"/api-reference/administration/organisations/name-who-did-something-in-an-organisation"},{"title":"Get several organisations' company logos","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisations/branding","href":"/api-reference/administration/organisations/get-several-organisations-company-logos"},{"title":"Get an organisation's branding","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisations/{organisationId}/branding","href":"/api-reference/administration/organisations/get-an-organisations-branding"},{"title":"Change an organisation's company logo","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json patch /organisations/{organisationId}/branding","href":"/api-reference/administration/organisations/change-an-organisations-company-logo"},{"title":"Upload a company logo","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /organisations/{organisationId}/branding/assets","href":"/api-reference/administration/organisations/upload-a-company-logo"},{"title":"Check a company logo upload","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisations/{organisationId}/branding/assets/{uploadId}","href":"/api-reference/administration/organisations/check-a-company-logo-upload"},{"title":"Get the brand the app shows for an organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /organisations/{organisationId}/resolved-branding","href":"/api-reference/administration/organisations/get-the-brand-the-app-shows-for-an-organisation"},{"title":"Start a support session for an organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /organisations/{organisationId}/support-sessions","href":"/api-reference/administration/organisations/start-a-support-session-for-an-organisation"}]},{"group":"Roles","pages":[{"title":"List the roles you can give","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /roles","href":"/api-reference/administration/roles/list-the-roles-you-can-give"},{"title":"Create a role of your own","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /roles","href":"/api-reference/administration/roles/create-a-role-of-your-own"},{"title":"Get a role","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /roles/{roleId}","href":"/api-reference/administration/roles/get-a-role"},{"title":"Delete one of your own roles","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /roles/{roleId}","href":"/api-reference/administration/roles/delete-one-of-your-own-roles"},{"title":"Change one of your own roles","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json patch /roles/{roleId}","href":"/api-reference/administration/roles/change-one-of-your-own-roles"},{"title":"See how a role has changed","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /roles/{roleId}/revisions","href":"/api-reference/administration/roles/see-how-a-role-has-changed"},{"title":"Get your access settings","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /customer/access-settings","href":"/api-reference/administration/roles/get-your-access-settings"},{"title":"Choose your default role","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json patch /customer/access-settings","href":"/api-reference/administration/roles/choose-your-default-role"}]},{"group":"SCIM","pages":[{"title":"List or find users","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /scim/v2/Users","href":"/api-reference/administration/scim/list-or-find-users"},{"title":"Provision a user","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /scim/v2/Users","href":"/api-reference/administration/scim/provision-a-user"},{"title":"Get a user","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /scim/v2/Users/{id}","href":"/api-reference/administration/scim/get-a-user"},{"title":"Replace a user","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json put /scim/v2/Users/{id}","href":"/api-reference/administration/scim/replace-a-user"},{"title":"Remove a user","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /scim/v2/Users/{id}","href":"/api-reference/administration/scim/remove-a-user"},{"title":"Change a user","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json patch /scim/v2/Users/{id}","href":"/api-reference/administration/scim/change-a-user"},{"title":"List roles as groups","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /scim/v2/Groups","href":"/api-reference/administration/scim/list-roles-as-groups"},{"title":"Not supported","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /scim/v2/Groups","href":"/api-reference/administration/scim/not-supported"},{"title":"Get a role as a group","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /scim/v2/Groups/{id}","href":"/api-reference/administration/scim/get-a-role-as-a-group"},{"title":"Replace the members","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json put /scim/v2/Groups/{id}","href":"/api-reference/administration/scim/replace-the-members"},{"title":"Not supported","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /scim/v2/Groups/{id}","href":"/api-reference/administration/scim/not-supported-1"},{"title":"Add or remove members","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json patch /scim/v2/Groups/{id}","href":"/api-reference/administration/scim/add-or-remove-members"},{"title":"What SCIM features are supported","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /scim/v2/ServiceProviderConfig","href":"/api-reference/administration/scim/what-scim-features-are-supported"},{"title":"The resource types","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /scim/v2/ResourceTypes","href":"/api-reference/administration/scim/the-resource-types"},{"title":"One resource type","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /scim/v2/ResourceTypes/{id}","href":"/api-reference/administration/scim/one-resource-type"},{"title":"The schemas","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /scim/v2/Schemas","href":"/api-reference/administration/scim/the-schemas"},{"title":"One schema","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /scim/v2/Schemas/{id}","href":"/api-reference/administration/scim/one-schema"}]},{"group":"Users","pages":[{"title":"Get yourself and your access","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /users/me","href":"/api-reference/administration/users/get-yourself-and-your-access"},{"title":"List the people in your account","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /users","href":"/api-reference/administration/users/list-the-people-in-your-account"},{"title":"Invite somebody, or give somebody more access","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /users","href":"/api-reference/administration/users/invite-somebody-or-give-somebody-more-access"},{"title":"Invite several people at once","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /users/bulk","href":"/api-reference/administration/users/invite-several-people-at-once"},{"title":"Get a person and their access","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /users/{principalId}","href":"/api-reference/administration/users/get-a-person-and-their-access"},{"title":"Remove somebody from your account","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /users/{principalId}","href":"/api-reference/administration/users/remove-somebody-from-your-account"},{"title":"Change what your account records about a person","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json patch /users/{principalId}","href":"/api-reference/administration/users/change-what-your-account-records-about-a-person"},{"title":"List the organisations a person reaches","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /users/{principalId}/organisations","href":"/api-reference/administration/users/list-the-organisations-a-person-reaches"},{"title":"Replace a person's direct grants","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json put /users/{principalId}/organisations","href":"/api-reference/administration/users/replace-a-persons-direct-grants"},{"title":"Grant a person one organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json put /users/{principalId}/organisations/{organisationId}","href":"/api-reference/administration/users/grant-a-person-one-organisation"},{"title":"Remove a person's grant on one organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /users/{principalId}/organisations/{organisationId}","href":"/api-reference/administration/users/remove-a-persons-grant-on-one-organisation"},{"title":"Check whether a person has account-wide access","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /users/{principalId}/customer-access","href":"/api-reference/administration/users/check-whether-a-person-has-account-wide-access"},{"title":"Grant a person account-wide access","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json put /users/{principalId}/customer-access","href":"/api-reference/administration/users/grant-a-person-account-wide-access"},{"title":"Remove a person's account-wide access","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /users/{principalId}/customer-access","href":"/api-reference/administration/users/remove-a-persons-account-wide-access"},{"title":"Resend an invitation","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /users/{principalId}/resend-invitation","href":"/api-reference/administration/users/resend-an-invitation"},{"title":"Stop managing a guest","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /users/{principalId}/release","href":"/api-reference/administration/users/stop-managing-a-guest"},{"title":"Upload your profile photo","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json post /users/me/photo/uploads","href":"/api-reference/administration/users/upload-your-profile-photo"},{"title":"Check a profile photo upload","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /users/me/photo/uploads/{uploadId}","href":"/api-reference/administration/users/check-a-profile-photo-upload"},{"title":"Get your profile photo","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /users/me/photo","href":"/api-reference/administration/users/get-your-profile-photo"},{"title":"Remove your profile photo","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json delete /users/me/photo","href":"/api-reference/administration/users/remove-your-profile-photo"},{"title":"Get your preferences","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json get /users/me/preferences","href":"/api-reference/administration/users/get-your-preferences"},{"title":"Change your preferences","deprecated":null,"version":null,"openapi":"/api-reference/specs/administration.json patch /users/me/preferences","href":"/api-reference/administration/users/change-your-preferences"}]}]},{"group":"Email Wording API","pages":[{"title":"Email Wording API overview","sidebarTitle":"Overview","href":"/api-reference/email-wording/overview"},{"group":"Account emails","pages":[{"title":"List your account's email wording","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json get /customer/email-settings","href":"/api-reference/email-wording/account-emails/list-your-accounts-email-wording"},{"title":"Get your account's wording for one email","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json get /customer/email-settings/{eventType}","href":"/api-reference/email-wording/account-emails/get-your-accounts-wording-for-one-email"},{"title":"Change your account's wording for one email","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json patch /customer/email-settings/{eventType}","href":"/api-reference/email-wording/account-emails/change-your-accounts-wording-for-one-email"},{"title":"Preview your account's wording for one email","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json post /customer/email-settings/{eventType}/previews","href":"/api-reference/email-wording/account-emails/preview-your-accounts-wording-for-one-email"},{"title":"Preview your account's email as it would be sent","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json post /customer/email-settings/{eventType}/rendered-previews","href":"/api-reference/email-wording/account-emails/preview-your-accounts-email-as-it-would-be-sent"},{"title":"List the saved versions of your account's wording for one email","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json get /customer/email-settings/{eventType}/revisions","href":"/api-reference/email-wording/account-emails/list-the-saved-versions-of-your-accounts-wording-for-one-email"},{"title":"Restore a saved version of your account's wording for one email","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json post /customer/email-settings/{eventType}/revisions/{revisionId}/restorations","href":"/api-reference/email-wording/account-emails/restore-a-saved-version-of-your-accounts-wording-for-one-email"},{"title":"Send yourself a test of one email (account)","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json post /customer/email-settings/{eventType}/test-sends","href":"/api-reference/email-wording/account-emails/send-yourself-a-test-of-one-email-account"}]},{"group":"Organisation emails","pages":[{"title":"List an organisation's email wording","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json get /organisations/{organisationId}/email-settings","href":"/api-reference/email-wording/organisation-emails/list-an-organisations-email-wording"},{"title":"Get an organisation's wording for one email","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json get /organisations/{organisationId}/email-settings/{eventType}","href":"/api-reference/email-wording/organisation-emails/get-an-organisations-wording-for-one-email"},{"title":"Change an organisation's wording for one email","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json patch /organisations/{organisationId}/email-settings/{eventType}","href":"/api-reference/email-wording/organisation-emails/change-an-organisations-wording-for-one-email"},{"title":"Preview an organisation's wording for one email","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json post /organisations/{organisationId}/email-settings/{eventType}/previews","href":"/api-reference/email-wording/organisation-emails/preview-an-organisations-wording-for-one-email"},{"title":"Preview an organisation's email as it would be sent","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json post /organisations/{organisationId}/email-settings/{eventType}/rendered-previews","href":"/api-reference/email-wording/organisation-emails/preview-an-organisations-email-as-it-would-be-sent"},{"title":"List the saved versions of an organisation's wording for one email","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json get /organisations/{organisationId}/email-settings/{eventType}/revisions","href":"/api-reference/email-wording/organisation-emails/list-the-saved-versions-of-an-organisations-wording-for-one-email"},{"title":"Restore a saved version of an organisation's wording for one email","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json post /organisations/{organisationId}/email-settings/{eventType}/revisions/{revisionId}/restorations","href":"/api-reference/email-wording/organisation-emails/restore-a-saved-version-of-an-organisations-wording-for-one-email"},{"title":"Send yourself a test of one email","deprecated":null,"version":null,"openapi":"/api-reference/specs/notification.json post /organisations/{organisationId}/email-settings/{eventType}/test-sends","href":"/api-reference/email-wording/organisation-emails/send-yourself-a-test-of-one-email"}]}]},{"group":"Authentication API","pages":[{"title":"Authentication API overview","sidebarTitle":"Overview","href":"/api-reference/authentication-api/overview"},{"group":"Organisations","pages":[{"title":"List the organisations the authenticated principal can act on","deprecated":null,"version":null,"openapi":"/api-reference/specs/authentication.json get /my-organisations","href":"/api-reference/authentication-api/organisations/list-the-organisations-the-authenticated-principal-can-act-on"}]}]},{"group":"Billing","pages":[{"title":"Billing API overview","sidebarTitle":"Overview","href":"/api-reference/billing/overview"},{"group":"Accounting Sync","pages":[{"title":"Push invoice to accounting provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /clients/{clientId}/invoices/{invoiceId}/sync","href":"/api-reference/billing/accounting-sync/push-invoice-to-accounting-provider"},{"title":"Push client and contacts to accounting provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /clients/{clientId}/sync","href":"/api-reference/billing/accounting-sync/push-client-and-contacts-to-accounting-provider"},{"title":"Push credit note to accounting provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /clients/{clientId}/credit-notes/{creditNoteId}/sync","href":"/api-reference/billing/accounting-sync/push-credit-note-to-accounting-provider"},{"title":"Download invoice PDF from provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /clients/{clientId}/invoices/{invoiceId}/external-pdf","href":"/api-reference/billing/accounting-sync/download-invoice-pdf-from-provider"},{"title":"Download credit note PDF from provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /clients/{clientId}/credit-notes/{creditNoteId}/external-pdf","href":"/api-reference/billing/accounting-sync/download-credit-note-pdf-from-provider"},{"title":"List tax rates from connected provider (paginated, no import)","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /finance/tax-rates/provider-rates","href":"/api-reference/billing/accounting-sync/list-tax-rates-from-connected-provider-paginated-no-import"},{"title":"Import selected tax rates from connected provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /finance/tax-rates/import-from-provider","href":"/api-reference/billing/accounting-sync/import-selected-tax-rates-from-connected-provider"},{"title":"List account codes from connected provider (paginated, no import)","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /finance/accounts/provider-accounts","href":"/api-reference/billing/accounting-sync/list-account-codes-from-connected-provider-paginated-no-import"},{"title":"Import selected account codes from connected provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /finance/accounts/import-from-provider","href":"/api-reference/billing/accounting-sync/import-selected-account-codes-from-connected-provider"},{"title":"List contacts from connected provider (paginated, no import)","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /clients/provider-contacts","href":"/api-reference/billing/accounting-sync/list-contacts-from-connected-provider-paginated-no-import"},{"title":"Import selected contacts from connected provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /clients/import-from-provider","href":"/api-reference/billing/accounting-sync/import-selected-contacts-from-connected-provider"}]},{"group":"Clients","pages":[{"title":"List Invoices for Client","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /clients/{clientId}/invoices","href":"/api-reference/billing/clients/list-invoices-for-client"},{"title":"Get Client Finance Settings","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /clients/{clientId}/finance-settings","href":"/api-reference/billing/clients/get-client-finance-settings"},{"title":"Update Client Finance Settings","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json put /clients/{clientId}/finance-settings","href":"/api-reference/billing/clients/update-client-finance-settings"},{"title":"Get Client by Id","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /clients/{clientId}","href":"/api-reference/billing/clients/get-client-by-id"},{"title":"Update Client","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json put /clients/{clientId}","href":"/api-reference/billing/clients/update-client"},{"title":"Delete Client","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json delete /clients/{clientId}","href":"/api-reference/billing/clients/delete-client"},{"title":"List Clients","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /clients","href":"/api-reference/billing/clients/list-clients"},{"title":"Create Client","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /clients","href":"/api-reference/billing/clients/create-client"},{"title":"Unarchive Client","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json patch /clients/{clientId}/unarchive","href":"/api-reference/billing/clients/unarchive-client"}]},{"group":"Credit Notes","pages":[{"title":"List Credit Notes for Organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /credit-notes","href":"/api-reference/billing/credit-notes/list-credit-notes-for-organisation"},{"title":"Create Draft Credit Note","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /credit-notes","href":"/api-reference/billing/credit-notes/create-draft-credit-note"},{"title":"List Credit Notes for Client","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /clients/{clientId}/credit-notes","href":"/api-reference/billing/credit-notes/list-credit-notes-for-client"},{"title":"Get Credit Note by ID","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /clients/{clientId}/credit-notes/{creditNoteId}","href":"/api-reference/billing/credit-notes/get-credit-note-by-id"},{"title":"Update Draft Credit Note","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json put /clients/{clientId}/credit-notes/{creditNoteId}","href":"/api-reference/billing/credit-notes/update-draft-credit-note"},{"title":"Delete Draft Credit Note","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json delete /clients/{clientId}/credit-notes/{creditNoteId}","href":"/api-reference/billing/credit-notes/delete-draft-credit-note"},{"title":"List Credit Note Line Items","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /clients/{clientId}/credit-notes/{creditNoteId}/line-items","href":"/api-reference/billing/credit-notes/list-credit-note-line-items"},{"title":"Add Credit Note Attachments","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /clients/{clientId}/credit-notes/{creditNoteId}/attachments","href":"/api-reference/billing/credit-notes/add-credit-note-attachments"},{"title":"Delete Credit Note Attachment","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json delete /clients/{clientId}/credit-notes/{creditNoteId}/attachments/{attachmentId}","href":"/api-reference/billing/credit-notes/delete-credit-note-attachment"},{"title":"Authorise Credit Note","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /clients/{clientId}/credit-notes/{creditNoteId}/authorise","href":"/api-reference/billing/credit-notes/authorise-credit-note"},{"title":"Void Credit Note","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /clients/{clientId}/credit-notes/{creditNoteId}/void","href":"/api-reference/billing/credit-notes/void-credit-note"},{"title":"Allocate Credit to Invoice","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /clients/{clientId}/credit-notes/{creditNoteId}/allocations","href":"/api-reference/billing/credit-notes/allocate-credit-to-invoice"},{"title":"Remove Credit Allocation","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json delete /clients/{clientId}/credit-notes/{creditNoteId}/allocations/{allocationId}","href":"/api-reference/billing/credit-notes/remove-credit-allocation"}]},{"group":"Tax rates","pages":[{"title":"List Tax Rates","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /finance/tax-rates","href":"/api-reference/billing/tax-rates/list-tax-rates"},{"title":"Create Custom Tax Rate","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /finance/tax-rates","href":"/api-reference/billing/tax-rates/create-custom-tax-rate"},{"title":"Update Tax Rate","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json put /finance/tax-rates/{taxType}","href":"/api-reference/billing/tax-rates/update-tax-rate"},{"title":"Delete Tax Rate","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json delete /finance/tax-rates/{taxType}","href":"/api-reference/billing/tax-rates/delete-tax-rate"},{"title":"Archive Tax Rate","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /finance/tax-rates/{taxType}/archive","href":"/api-reference/billing/tax-rates/archive-tax-rate"},{"title":"Unarchive Tax Rate","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /finance/tax-rates/{taxType}/unarchive","href":"/api-reference/billing/tax-rates/unarchive-tax-rate"}]},{"group":"Account codes","pages":[{"title":"List Account Codes","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /finance/accounts","href":"/api-reference/billing/account-codes/list-account-codes"},{"title":"Create Account Code","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /finance/accounts","href":"/api-reference/billing/account-codes/create-account-code"},{"title":"Update Account Code","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json put /finance/accounts/{code}","href":"/api-reference/billing/account-codes/update-account-code"},{"title":"Delete Account Code","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json delete /finance/accounts/{code}","href":"/api-reference/billing/account-codes/delete-account-code"},{"title":"Archive Account Code","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /finance/accounts/{code}/archive","href":"/api-reference/billing/account-codes/archive-account-code"},{"title":"Unarchive Account Code","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /finance/accounts/{code}/unarchive","href":"/api-reference/billing/account-codes/unarchive-account-code"}]},{"group":"Finance defaults","pages":[{"title":"Get organisation pay element mappings","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /finance/pay-element-mappings","href":"/api-reference/billing/finance-defaults/get-organisation-pay-element-mappings"},{"title":"Update organisation pay element mappings","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json put /finance/pay-element-mappings","href":"/api-reference/billing/finance-defaults/update-organisation-pay-element-mappings"},{"title":"Get organisation finance defaults","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /finance/finance-defaults","href":"/api-reference/billing/finance-defaults/get-organisation-finance-defaults"},{"title":"Update organisation finance defaults","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json put /finance/finance-defaults","href":"/api-reference/billing/finance-defaults/update-organisation-finance-defaults"},{"title":"Get attachment limits for connected provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /finance/attachment-limits","href":"/api-reference/billing/finance-defaults/get-attachment-limits-for-connected-provider"}]},{"group":"Invoice \u0026 credit note templates","pages":[{"title":"Get organisation invoice template","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /finance/invoice-template","href":"/api-reference/billing/invoice-\u0026-credit-note-templates/get-organisation-invoice-template"},{"title":"Update organisation invoice template","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json put /finance/invoice-template","href":"/api-reference/billing/invoice-\u0026-credit-note-templates/update-organisation-invoice-template"},{"title":"Get organisation credit note template","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /finance/credit-note-template","href":"/api-reference/billing/invoice-\u0026-credit-note-templates/get-organisation-credit-note-template"},{"title":"Update organisation credit note template","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json put /finance/credit-note-template","href":"/api-reference/billing/invoice-\u0026-credit-note-templates/update-organisation-credit-note-template"},{"title":"Get line item description formula placeholders","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /finance/line-item-description-fields","href":"/api-reference/billing/invoice-\u0026-credit-note-templates/get-line-item-description-formula-placeholders"},{"title":"Get invoice reference formula tokens for a given invoice format","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /finance/invoice-reference-fields","href":"/api-reference/billing/invoice-\u0026-credit-note-templates/get-invoice-reference-formula-tokens-for-a-given-invoice-format"}]},{"group":"Invoices","pages":[{"title":"List Invoices for Organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /invoices","href":"/api-reference/billing/invoices/list-invoices-for-organisation"},{"title":"Get Invoice by Id","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /invoices/{clientId}/{invoiceId}","href":"/api-reference/billing/invoices/get-invoice-by-id"},{"title":"Update open invoice","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json put /invoices/{clientId}/{invoiceId}","href":"/api-reference/billing/invoices/update-open-invoice"},{"title":"Update Invoice (e.g. close)","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json patch /invoices/{clientId}/{invoiceId}","href":"/api-reference/billing/invoices/update-invoice-eg-close"},{"title":"Get Invoice Line Items","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json get /invoices/{clientId}/{invoiceId}/line-items","href":"/api-reference/billing/invoices/get-invoice-line-items"},{"title":"Add Invoice Attachments","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /invoices/{clientId}/{invoiceId}/attachments","href":"/api-reference/billing/invoices/add-invoice-attachments"},{"title":"Delete Invoice Attachment","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json delete /invoices/{clientId}/{invoiceId}/attachments/{attachmentId}","href":"/api-reference/billing/invoices/delete-invoice-attachment"},{"title":"Void Invoice","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /invoices/{clientId}/{invoiceId}/void","href":"/api-reference/billing/invoices/void-invoice"},{"title":"Refresh line item mappings","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /invoices/{clientId}/{invoiceId}/refresh-line-item-mappings","href":"/api-reference/billing/invoices/refresh-line-item-mappings"},{"title":"Credit Entire Invoice","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /invoices/{clientId}/{invoiceId}/full-credit","href":"/api-reference/billing/invoices/credit-entire-invoice"},{"title":"Bulk invoice action","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /invoices/bulk-action","href":"/api-reference/billing/invoices/bulk-invoice-action"},{"title":"Email Invoice","deprecated":null,"version":null,"openapi":"/api-reference/specs/billing.json post /invoices/{clientId}/{invoiceId}/email","href":"/api-reference/billing/invoices/email-invoice"}]}]},{"group":"Court orders","pages":[{"title":"Court orders API overview","sidebarTitle":"Overview","href":"/api-reference/court-orders/overview"},{"group":"Court orders","pages":[{"title":"Get court orders by organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json get /orders","href":"/api-reference/court-orders/court-orders/get-court-orders-by-organisation"},{"title":"Create court order","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json post /orders","href":"/api-reference/court-orders/court-orders/create-court-order"},{"title":"Get court order","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json get /orders/{orderId}","href":"/api-reference/court-orders/court-orders/get-court-order"},{"title":"Update court order","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json put /orders/{orderId}","href":"/api-reference/court-orders/court-orders/update-court-order"},{"title":"Delete court order","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json delete /orders/{orderId}","href":"/api-reference/court-orders/court-orders/delete-court-order"},{"title":"Get court orders by employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json get /orders/employees/{employeeId}","href":"/api-reference/court-orders/court-orders/get-court-orders-by-employee"},{"title":"Reconcile court orders","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json post /orders/reconcile","href":"/api-reference/court-orders/court-orders/reconcile-court-orders"}]},{"group":"Attachments","pages":[{"title":"Add court order attachments","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json post /orders/{orderId}/attachments","href":"/api-reference/court-orders/attachments/add-court-order-attachments"},{"title":"Delete court order attachment","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json delete /orders/{orderId}/attachments/{attachmentId}","href":"/api-reference/court-orders/attachments/delete-court-order-attachment"}]},{"group":"Reference data","pages":[{"title":"List tax years with court order constants","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json get /orders/constants/available-years","href":"/api-reference/court-orders/reference-data/list-tax-years-with-court-order-constants"},{"title":"Get court order constants for a tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json get /orders/constants/{taxYear}","href":"/api-reference/court-orders/reference-data/get-court-order-constants-for-a-tax-year"}]},{"group":"Payees","pages":[{"title":"Get all payees","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json get /payees","href":"/api-reference/court-orders/payees/get-all-payees"},{"title":"Create payee","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json post /payees","href":"/api-reference/court-orders/payees/create-payee"},{"title":"Get payee","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json get /payees/{payeeId}","href":"/api-reference/court-orders/payees/get-payee"},{"title":"Update payee","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json put /payees/{payeeId}","href":"/api-reference/court-orders/payees/update-payee"},{"title":"Delete payee","deprecated":null,"version":null,"openapi":"/api-reference/specs/court-orders.json delete /payees/{payeeId}","href":"/api-reference/court-orders/payees/delete-payee"}]}]},{"group":"HMRC DPS","pages":[{"title":"HMRC DPS API overview","sidebarTitle":"Overview","href":"/api-reference/hmrc-dps/overview"},{"group":"Notifications","pages":[{"title":"Get stored notifications","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json get /notifications","href":"/api-reference/hmrc-dps/notifications/get-stored-notifications"},{"title":"Get notification","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json get /notifications/{notificationId}","href":"/api-reference/hmrc-dps/notifications/get-notification"},{"title":"Update notification status","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json put /notifications/{notificationId}/status","href":"/api-reference/hmrc-dps/notifications/update-notification-status"},{"title":"Apply notification","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json post /notifications/{notificationId}/apply","href":"/api-reference/hmrc-dps/notifications/apply-notification"},{"title":"Dismiss notification","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json post /notifications/{notificationId}/ignore","href":"/api-reference/hmrc-dps/notifications/dismiss-notification"},{"title":"Assign employee to notification","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json put /notifications/{notificationId}/employee","href":"/api-reference/hmrc-dps/notifications/assign-employee-to-notification"},{"title":"Get notification counts","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json get /notifications/counts","href":"/api-reference/hmrc-dps/notifications/get-notification-counts"}]},{"group":"Bulk actions","pages":[{"title":"Start bulk apply of notifications","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json post /notifications/bulk-apply-async","href":"/api-reference/hmrc-dps/bulk-actions/start-bulk-apply-of-notifications"},{"title":"Start bulk dismiss of notifications","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json post /notifications/bulk-dismiss-async","href":"/api-reference/hmrc-dps/bulk-actions/start-bulk-dismiss-of-notifications"},{"title":"Retry matching for unmatched notifications","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json post /notifications/retry-matching","href":"/api-reference/hmrc-dps/bulk-actions/retry-matching-for-unmatched-notifications"},{"title":"Start retrieving all notifications","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json post /notifications/retrieve-all","href":"/api-reference/hmrc-dps/bulk-actions/start-retrieving-all-notifications"}]},{"group":"Pagination","pages":[{"title":"Initialize pagination states for all data types","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json post /notifications/pagination/initialise","href":"/api-reference/hmrc-dps/pagination/initialize-pagination-states-for-all-data-types"},{"title":"Get all pagination states for the organization","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json get /notifications/pagination","href":"/api-reference/hmrc-dps/pagination/get-all-pagination-states-for-the-organization"}]},{"group":"Jobs","pages":[{"title":"Get job status","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json get /notifications/jobs/{jobId}/status","href":"/api-reference/hmrc-dps/jobs/get-job-status"},{"title":"Get jobs","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json get /notifications/jobs","href":"/api-reference/hmrc-dps/jobs/get-jobs"},{"title":"Get the last job of a specific type for the organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json get /notifications/jobs/last/{jobType}","href":"/api-reference/hmrc-dps/jobs/get-the-last-job-of-a-specific-type-for-the-organisation"},{"title":"Cancel job","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-dps.json post /notifications/jobs/{jobId}/cancel","href":"/api-reference/hmrc-dps/jobs/cancel-job"}]}]},{"group":"HMRC P-forms","pages":[{"title":"HMRC P-forms API overview","sidebarTitle":"Overview","href":"/api-reference/hmrc-p-forms/overview"},{"group":"P32","pages":[{"title":"Download a P32 PDF","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p32/{year}/{month}/pdf","href":"/api-reference/hmrc-p-forms/p32/download-a-p32-pdf"},{"title":"Get P32 for a tax month","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p32/{year}/{month}","href":"/api-reference/hmrc-p-forms/p32/get-p32-for-a-tax-month"},{"title":"Get all P32s for a tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p32/{year}","href":"/api-reference/hmrc-p-forms/p32/get-all-p32s-for-a-tax-year"}]},{"group":"P45","pages":[{"title":"List tax years with available P45s","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p45/tax-years","href":"/api-reference/hmrc-p-forms/p45/list-tax-years-with-available-p45s"},{"title":"List finalised P45s for a tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p45/list/{taxYear}/finalised","href":"/api-reference/hmrc-p-forms/p45/list-finalised-p45s-for-a-tax-year"},{"title":"List finalised P45s for a payroll config and tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p45/list/{payrollConfigId}/{taxYear}/finalised","href":"/api-reference/hmrc-p-forms/p45/list-finalised-p45s-for-a-payroll-config-and-tax-year"},{"title":"Get the P45 document","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p45/{employeeId}/file","href":"/api-reference/hmrc-p-forms/p45/get-the-p45-document"},{"title":"List the earlier versions of the P45","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p45/{employeeId}/versions","href":"/api-reference/hmrc-p-forms/p45/list-the-earlier-versions-of-the-p45"},{"title":"Preview an employee's P45 PDF","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p45/{employeeId}/preview","href":"/api-reference/hmrc-p-forms/p45/preview-an-employees-p45-pdf"},{"title":"Create a P45 replacement","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml post /p45/{employeeId}/replacements","href":"/api-reference/hmrc-p-forms/p45/create-a-p45-replacement"},{"title":"Send P45 emails to one or more employees","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml post /p45/send-notification","href":"/api-reference/hmrc-p-forms/p45/send-p45-emails-to-one-or-more-employees"},{"title":"Get P45 data for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p45/{employeeId}","href":"/api-reference/hmrc-p-forms/p45/get-p45-data-for-an-employee"}]},{"group":"P60","pages":[{"title":"Get a P60 for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p60/{employeeId}/{taxYear}","href":"/api-reference/hmrc-p-forms/p60/get-a-p60-for-an-employee"},{"title":"Download a P60 PDF","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p60/{employeeId}/{taxYear}/file","href":"/api-reference/hmrc-p-forms/p60/download-a-p60-pdf"},{"title":"List tax years with available P60s","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p60/tax-years","href":"/api-reference/hmrc-p-forms/p60/list-tax-years-with-available-p60s"},{"title":"List preview P60 tax years for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p60/{employeeId}/preview-years","href":"/api-reference/hmrc-p-forms/p60/list-preview-p60-tax-years-for-an-employee"},{"title":"List finalised P60 tax years for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p60/{employeeId}/finalised-years","href":"/api-reference/hmrc-p-forms/p60/list-finalised-p60-tax-years-for-an-employee"},{"title":"List preview P60s for a tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p60/list/{taxYear}/preview","href":"/api-reference/hmrc-p-forms/p60/list-preview-p60s-for-a-tax-year"},{"title":"List finalised P60s for a tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p60/list/{taxYear}/finalised","href":"/api-reference/hmrc-p-forms/p60/list-finalised-p60s-for-a-tax-year"},{"title":"List finalised P60s for a payroll config and tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /p60/list/{payrollConfigId}/{taxYear}/finalised","href":"/api-reference/hmrc-p-forms/p60/list-finalised-p60s-for-a-payroll-config-and-tax-year"},{"title":"Regenerate a finalised P60","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml post /p60/{employeeId}/{taxYear}/regenerate","href":"/api-reference/hmrc-p-forms/p60/regenerate-a-finalised-p60"},{"title":"Send P60 emails to one or more employees","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml post /p60/send-notification","href":"/api-reference/hmrc-p-forms/p60/send-p60-emails-to-one-or-more-employees"}]},{"group":"PFormBulkSend","pages":[{"title":"Check a P45 or P60 email send","deprecated":null,"version":null,"openapi":"/api-reference/specs/hmrc-p-forms.yaml get /pforms/send-notification/jobs/{jobId}","href":"/api-reference/hmrc-p-forms/pformbulksend/check-a-p45-or-p60-email-send"}]}]},{"group":"Holiday \u0026 leave","pages":[{"title":"Holiday \u0026 leave API overview","sidebarTitle":"Overview","href":"/api-reference/holiday/overview"},{"group":"Holiday Employee Configuration","pages":[{"title":"Get employee holiday configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json get /employees/{employeeId}","href":"/api-reference/holiday/holiday-employee-configuration/get-employee-holiday-configuration"},{"title":"Update employee holiday configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json put /employees/{employeeId}","href":"/api-reference/holiday/holiday-employee-configuration/update-employee-holiday-configuration"},{"title":"Create employee holiday configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json post /employees/{employeeId}","href":"/api-reference/holiday/holiday-employee-configuration/create-employee-holiday-configuration"},{"title":"Delete employee holiday configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json delete /employees/{employeeId}","href":"/api-reference/holiday/holiday-employee-configuration/delete-employee-holiday-configuration"}]},{"group":"Holiday History","pages":[{"title":"Get holiday history for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json get /employees/{employeeId}/history","href":"/api-reference/holiday/holiday-history/get-holiday-history-for-an-employee"},{"title":"Get 52-week average rate for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json get /employees/{employeeId}/average-rate","href":"/api-reference/holiday/holiday-history/get-52-week-average-rate-for-an-employee"}]},{"group":"Holiday Organisation Configuration","pages":[{"title":"Get the holiday configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json get /organisation","href":"/api-reference/holiday/holiday-organisation-configuration/get-the-holiday-configuration"},{"title":"Update the holiday configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json put /organisation","href":"/api-reference/holiday/holiday-organisation-configuration/update-the-holiday-configuration"},{"title":"Create a holiday configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json post /organisation","href":"/api-reference/holiday/holiday-organisation-configuration/create-a-holiday-configuration"},{"title":"Delete the holiday configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json delete /organisation","href":"/api-reference/holiday/holiday-organisation-configuration/delete-the-holiday-configuration"}]},{"group":"Holiday Taken","pages":[{"title":"Get a holiday taken record","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json get /employees/{employeeId}/taken/{id}","href":"/api-reference/holiday/holiday-taken/get-a-holiday-taken-record"},{"title":"Update holiday taken record","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json put /employees/{employeeId}/taken/{id}","href":"/api-reference/holiday/holiday-taken/update-holiday-taken-record"},{"title":"Delete holiday taken record","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json delete /employees/{employeeId}/taken/{id}","href":"/api-reference/holiday/holiday-taken/delete-holiday-taken-record"},{"title":"Record holiday taken","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json post /employees/{employeeId}/taken","href":"/api-reference/holiday/holiday-taken/record-holiday-taken"}]},{"group":"Opening Balance","pages":[{"title":"Get opening balance","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json get /employees/{employeeId}/opening-balance","href":"/api-reference/holiday/opening-balance/get-opening-balance"},{"title":"Update opening balance","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json put /employees/{employeeId}/opening-balance","href":"/api-reference/holiday/opening-balance/update-opening-balance"},{"title":"Create opening balance","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json post /employees/{employeeId}/opening-balance","href":"/api-reference/holiday/opening-balance/create-opening-balance"},{"title":"Delete opening balance","deprecated":null,"version":null,"openapi":"/api-reference/specs/holiday.json delete /employees/{employeeId}/opening-balance","href":"/api-reference/holiday/opening-balance/delete-opening-balance"}]}]},{"group":"Integrations","pages":[{"title":"Integrations API overview","sidebarTitle":"Overview","href":"/api-reference/integrations/overview"},{"group":"Scheme links","pages":[{"title":"Read which connection a record is linked to","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /bindings/{consumer}/{resourceType}/{resourceId}","href":"/api-reference/integrations/scheme-links/read-which-connection-a-record-is-linked-to"},{"title":"Link a record to a connection","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json put /bindings/{consumer}/{resourceType}/{resourceId}","href":"/api-reference/integrations/scheme-links/link-a-record-to-a-connection"},{"title":"Unlink a record from its connection","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json delete /bindings/{consumer}/{resourceType}/{resourceId}","href":"/api-reference/integrations/scheme-links/unlink-a-record-from-its-connection"}]},{"group":"Connections","pages":[{"title":"List your connections","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections","href":"/api-reference/integrations/connections/list-your-connections"},{"title":"Create a connection","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json post /connections","href":"/api-reference/integrations/connections/create-a-connection"},{"title":"Get a connection","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections/{connectionId}","href":"/api-reference/integrations/connections/get-a-connection"},{"title":"Rename or pause a connection","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json put /connections/{connectionId}","href":"/api-reference/integrations/connections/rename-or-pause-a-connection"},{"title":"Delete a connection for good","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json delete /connections/{connectionId}","href":"/api-reference/integrations/connections/delete-a-connection-for-good"},{"title":"Disconnect a connection, removing this organisation's access","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json post /connections/{connectionId}/disconnect","href":"/api-reference/integrations/connections/disconnect-a-connection-removing-this-organisations-access"},{"title":"Start signing in at the provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json post /connections/{connectionId}/authorise","href":"/api-reference/integrations/connections/start-signing-in-at-the-provider"},{"title":"Finish connecting with the provider's authorisation code","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json post /connections/{connectionId}/exchange","href":"/api-reference/integrations/connections/finish-connecting-with-the-providers-authorisation-code"},{"title":"List the organisations this sign-in can reach","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections/{connectionId}/tenants","href":"/api-reference/integrations/connections/list-the-organisations-this-sign-in-can-reach"},{"title":"Choose which provider organisation this connection uses","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json put /connections/{connectionId}/tenant","href":"/api-reference/integrations/connections/choose-which-provider-organisation-this-connection-uses"},{"title":"Save the provider sign-in details","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json put /connections/{connectionId}/credentials","href":"/api-reference/integrations/connections/save-the-provider-sign-in-details"},{"title":"Test the connection with the provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json post /connections/{connectionId}/test","href":"/api-reference/integrations/connections/test-the-connection-with-the-provider"},{"title":"List what is linked to a connection","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections/{connectionId}/bindings","href":"/api-reference/integrations/connections/list-what-is-linked-to-a-connection"},{"title":"Groups and payment sources held by the provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections/{connectionId}/pension/setup","href":"/api-reference/integrations/connections/groups-and-payment-sources-held-by-the-provider"},{"title":"Read the chart of accounts","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections/{connectionId}/accounting/accounts","href":"/api-reference/integrations/connections/read-the-chart-of-accounts"},{"title":"Read the analysis dimensions","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections/{connectionId}/accounting/tracking-categories","href":"/api-reference/integrations/connections/read-the-analysis-dimensions"},{"title":"Read the tax rates","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections/{connectionId}/accounting/tax-rates","href":"/api-reference/integrations/connections/read-the-tax-rates"},{"title":"One page of the provider's contacts","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections/{connectionId}/accounting/contacts","href":"/api-reference/integrations/connections/one-page-of-the-providers-contacts"},{"title":"The provider's own rendering of a document","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections/{connectionId}/accounting/documents/{documentType}/{externalId}/pdf","href":"/api-reference/integrations/connections/the-providers-own-rendering-of-a-document"},{"title":"How many files the document already holds","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections/{connectionId}/accounting/documents/{documentType}/{externalId}/attachment-count","href":"/api-reference/integrations/connections/how-many-files-the-document-already-holds"}]},{"group":"Provider data","pages":[{"title":"How fresh the connection's provider data is","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections/{connectionId}/imports","href":"/api-reference/integrations/provider-data/how-fresh-the-connections-provider-data-is"},{"title":"Refresh the connection's provider data","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json post /connections/{connectionId}/imports","href":"/api-reference/integrations/provider-data/refresh-the-connections-provider-data"}]},{"group":"Activity","pages":[{"title":"List activity","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /operations","href":"/api-reference/integrations/activity/list-activity"},{"title":"Get one operation","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /operations/{operationId}","href":"/api-reference/integrations/activity/get-one-operation"},{"title":"Retry a failed operation","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json post /operations/{operationId}/retry","href":"/api-reference/integrations/activity/retry-a-failed-operation"},{"title":"Cancel a queued operation","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json post /operations/{operationId}/cancel","href":"/api-reference/integrations/activity/cancel-a-queued-operation"}]},{"group":"Providers","pages":[{"title":"List the providers you can connect","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /providers","href":"/api-reference/integrations/providers/list-the-providers-you-can-connect"},{"title":"Get one provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /providers/{slug}","href":"/api-reference/integrations/providers/get-one-provider"}]},{"group":"Initial import","pages":[{"title":"Import the connection's existing provider data","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json post /connections/{connectionId}/sync-sessions","href":"/api-reference/integrations/initial-import/import-the-connections-existing-provider-data"},{"title":"Progress of the connection's latest import","deprecated":null,"version":null,"openapi":"/api-reference/specs/integrations.json get /connections/{connectionId}/sync-sessions/latest","href":"/api-reference/integrations/initial-import/progress-of-the-connections-latest-import"}]}]},{"group":"Pay API","pages":[{"title":"Pay API overview","sidebarTitle":"Overview","href":"/api-reference/pay-api/overview"},{"group":"Calculator","pages":[{"title":"Calculate gross to net values","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /calculator/grosstonet","href":"/api-reference/pay-api/calculator/calculate-gross-to-net-values"}]},{"group":"Employees","pages":[{"title":"List every employee field your role can read","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employee-fields","href":"/api-reference/pay-api/employees/list-every-employee-field-your-role-can-read"},{"title":"List employees with pagination","description":"Needs permission employee:read.","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees","href":"/api-reference/pay-api/employees/list-employees-with-pagination"},{"title":"Create a new employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees","href":"/api-reference/pay-api/employees/create-a-new-employee"},{"title":"Find employee by National Insurance Number","description":"Needs permission employee:read.","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/by-ni/{nationalInsuranceNumber}","href":"/api-reference/pay-api/employees/find-employee-by-national-insurance-number"},{"title":"Find employee by Payroll ID","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/by-payroll-id/{payrollId}","href":"/api-reference/pay-api/employees/find-employee-by-payroll-id"},{"title":"List the organisation's latest employee exports","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/exports","href":"/api-reference/pay-api/employees/list-the-organisations-latest-employee-exports"},{"title":"Export the employees a search matches as a CSV","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees/exports","href":"/api-reference/pay-api/employees/export-the-employees-a-search-matches-as-a-csv"},{"title":"Get one of the organisation's employee exports","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/exports/{exportId}","href":"/api-reference/pay-api/employees/get-one-of-the-organisations-employee-exports"},{"title":"Count the organisation's employees: total, active, leavers and future leavers","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/headcounts","href":"/api-reference/pay-api/employees/count-the-organisations-employees:-total-active-leavers-and-future-leavers"},{"title":"Send a CSV of changes to existing employees","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees/imports","href":"/api-reference/pay-api/employees/send-a-csv-of-changes-to-existing-employees"},{"title":"Get one of your employee imports","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/imports/{importId}","href":"/api-reference/pay-api/employees/get-one-of-your-employee-imports"},{"title":"Apply one of your employee imports","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees/imports/{importId}/apply","href":"/api-reference/pay-api/employees/apply-one-of-your-employee-imports"},{"title":"Search the organisation's employees on any field","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees/search","href":"/api-reference/pay-api/employees/search-the-organisations-employees-on-any-field"},{"title":"Get employee data","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/{employeeId}","href":"/api-reference/pay-api/employees/get-employee-data"},{"title":"Update an existing employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /employees/{employeeId}","href":"/api-reference/pay-api/employees/update-an-existing-employee"},{"title":"Delete an existing employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /employees/{employeeId}","href":"/api-reference/pay-api/employees/delete-an-existing-employee"},{"title":"Partially update an existing employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml patch /employees/{employeeId}","href":"/api-reference/pay-api/employees/partially-update-an-existing-employee"}]},{"group":"Starters \u0026 leavers","pages":[{"title":"Set leaver details for many employees in one call","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /employees/leaver/bulk","href":"/api-reference/pay-api/starters-\u0026-leavers/set-leaver-details-for-many-employees-in-one-call"},{"title":"Cancel leaver details for many employees in one call","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /employees/leaver/bulk","href":"/api-reference/pay-api/starters-\u0026-leavers/cancel-leaver-details-for-many-employees-in-one-call"},{"title":"Update the leaver details for a specific employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /employees/{employeeId}/leaver","href":"/api-reference/pay-api/starters-\u0026-leavers/update-the-leaver-details-for-a-specific-employee"},{"title":"Cancel (clear) the leaver details for a specific employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /employees/{employeeId}/leaver","href":"/api-reference/pay-api/starters-\u0026-leavers/cancel-clear-the-leaver-details-for-a-specific-employee"},{"title":"Update the starter details for a specific employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /employees/{employeeId}/starter","href":"/api-reference/pay-api/starters-\u0026-leavers/update-the-starter-details-for-a-specific-employee"}]},{"group":"Tax codes","pages":[{"title":"Get the effective tax code and NI category for an employee on a specific date","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/{employeeId}/effective-tax-info","href":"/api-reference/pay-api/tax-codes/get-the-effective-tax-code-and-ni-category-for-an-employee-on-a-specific-date"},{"title":"Add or update a tax code for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees/{employeeId}/tax-code","href":"/api-reference/pay-api/tax-codes/add-or-update-a-tax-code-for-an-employee"},{"title":"Get all tax codes for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/{employeeId}/tax-codes","href":"/api-reference/pay-api/tax-codes/get-all-tax-codes-for-an-employee"},{"title":"Delete a specific tax code for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /employees/{employeeId}/tax-codes/{year}/{effectiveDate}","href":"/api-reference/pay-api/tax-codes/delete-a-specific-tax-code-for-an-employee"}]},{"group":"NI \u0026 identifiers","pages":[{"title":"Get all NI categories for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/{employeeId}/ni-categories","href":"/api-reference/pay-api/ni-\u0026-identifiers/get-all-ni-categories-for-an-employee"},{"title":"Delete a specific NI category for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /employees/{employeeId}/ni-categories/{year}/{effectiveDate}","href":"/api-reference/pay-api/ni-\u0026-identifiers/delete-a-specific-ni-category-for-an-employee"},{"title":"Add or update an NI category for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees/{employeeId}/ni-category","href":"/api-reference/pay-api/ni-\u0026-identifiers/add-or-update-an-ni-category-for-an-employee"},{"title":"Update an employee's National Insurance Number","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /employees/{employeeId}/nino","href":"/api-reference/pay-api/ni-\u0026-identifiers/update-an-employees-national-insurance-number"},{"title":"Update an employee's Payroll ID","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /employees/{employeeId}/payroll-id","href":"/api-reference/pay-api/ni-\u0026-identifiers/update-an-employees-payroll-id"}]},{"group":"Payroll setup","pages":[{"title":"Update the opening balance for a specific employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /employees/{employeeId}/opening-balance","href":"/api-reference/pay-api/payroll-setup/update-the-opening-balance-for-a-specific-employee"},{"title":"Update an employee's payroll config assignment","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /employees/{employeeId}/payroll-config","href":"/api-reference/pay-api/payroll-setup/update-an-employees-payroll-config-assignment"}]},{"group":"Student loans","pages":[{"title":"End a postgraduate loan for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees/{employeeId}/postgraduate-loan/end","href":"/api-reference/pay-api/student-loans/end-a-postgraduate-loan-for-an-employee"},{"title":"Start a postgraduate loan for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees/{employeeId}/postgraduate-loan/start","href":"/api-reference/pay-api/student-loans/start-a-postgraduate-loan-for-an-employee"},{"title":"End a student loan for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees/{employeeId}/student-loan/end","href":"/api-reference/pay-api/student-loans/end-a-student-loan-for-an-employee"},{"title":"Start a student loan for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /employees/{employeeId}/student-loan/start","href":"/api-reference/pay-api/student-loans/start-a-student-loan-for-an-employee"}]},{"group":"Working patterns","pages":[{"title":"Get the effective-dated SSP qualifying-day policy history","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/{employeeId}/qualifying-day-policy","href":"/api-reference/pay-api/working-patterns/get-the-effective-dated-ssp-qualifying-day-policy-history"},{"title":"Set the employee's SSP qualifying-day policy from an effective date","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /employees/{employeeId}/qualifying-day-policy","href":"/api-reference/pay-api/working-patterns/set-the-employees-ssp-qualifying-day-policy-from-an-effective-date"},{"title":"Remove an employee's whole qualifying-day policy history","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /employees/{employeeId}/qualifying-day-policy","href":"/api-reference/pay-api/working-patterns/remove-an-employees-whole-qualifying-day-policy-history"},{"title":"Remove an SSP qualifying-day policy version from an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /employees/{employeeId}/qualifying-day-policy/{effectiveFrom}","href":"/api-reference/pay-api/working-patterns/remove-an-ssp-qualifying-day-policy-version-from-an-employee"},{"title":"Get the effective-dated working-pattern history for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/{employeeId}/working-pattern","href":"/api-reference/pay-api/working-patterns/get-the-effective-dated-working-pattern-history-for-an-employee"},{"title":"Set the employee's working pattern from an effective date","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /employees/{employeeId}/working-pattern","href":"/api-reference/pay-api/working-patterns/set-the-employees-working-pattern-from-an-effective-date"},{"title":"Remove an employee's whole working-pattern history","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /employees/{employeeId}/working-pattern","href":"/api-reference/pay-api/working-patterns/remove-an-employees-whole-working-pattern-history"},{"title":"Remove a working-pattern version from an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /employees/{employeeId}/working-pattern/{effectiveFrom}","href":"/api-reference/pay-api/working-patterns/remove-a-working-pattern-version-from-an-employee"},{"title":"Feed a batch of scheduled weeks (merged idempotently by week)","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /employees/{employeeId}/working-schedule","href":"/api-reference/pay-api/working-patterns/feed-a-batch-of-scheduled-weeks-merged-idempotently-by-week"}]},{"group":"Salary","pages":[{"title":"Get the effective-dated salary history for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /employees/{employeeId}/salary","href":"/api-reference/pay-api/salary/get-the-effective-dated-salary-history-for-an-employee"},{"title":"Set the employee's annual salary from an effective date","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /employees/{employeeId}/salary","href":"/api-reference/pay-api/salary/set-the-employees-annual-salary-from-an-effective-date"},{"title":"Remove a salary version from an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /employees/{employeeId}/salary/{effectiveFrom}","href":"/api-reference/pay-api/salary/remove-a-salary-version-from-an-employee"}]},{"group":"Payslip","pages":[{"title":"Send payslip notification emails to employees","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /notification/email/payslip/{payrollConfigId}/{year}/{period}","href":"/api-reference/pay-api/payslip/send-payslip-notification-emails-to-employees"},{"title":"Get all payslip data for an employee within a date range","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payslip/data/{employeeId}","href":"/api-reference/pay-api/payslip/get-all-payslip-data-for-an-employee-within-a-date-range"},{"title":"Get payslip data for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payslip/data/{employeeId}/{year}/{period}","href":"/api-reference/pay-api/payslip/get-payslip-data-for-an-employee"},{"title":"Create or update payslip metadata such as notes and payment date overwrite","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payslip/data/{employeeId}/{year}/{period}","href":"/api-reference/pay-api/payslip/create-or-update-payslip-metadata-such-as-notes-and-payment-date-overwrite"},{"title":"Download the payslip as a PDF","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payslip/data/{employeeId}/{year}/{period}/file","href":"/api-reference/pay-api/payslip/download-the-payslip-as-a-pdf"},{"title":"List the earlier versions of a payslip","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payslip/data/{employeeId}/{year}/{period}/versions","href":"/api-reference/pay-api/payslip/list-the-earlier-versions-of-a-payslip"},{"title":"Get a payslip as it stood for a lock cycle","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payslip/data/{employeeId}/{year}/{period}/versions/{lockCycle}","href":"/api-reference/pay-api/payslip/get-a-payslip-as-it-stood-for-a-lock-cycle"},{"title":"Get all payslips by pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payslip/payrun/{payrollConfigId}/{year}/{period}","href":"/api-reference/pay-api/payslip/get-all-payslips-by-pay-run"},{"title":"Recalculate payslips for employees in the open pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payslip/recalculate","href":"/api-reference/pay-api/payslip/recalculate-payslips-for-employees-in-the-open-pay-run"},{"title":"Make a sample payslip in your brand draft","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payslip/samples","href":"/api-reference/pay-api/payslip/make-a-sample-payslip-in-your-brand-draft"}]},{"group":"Organisation","pages":[{"title":"Get organisation opening balances by tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /organisation/balances/opening/{taxYear}","href":"/api-reference/pay-api/organisation/get-organisation-opening-balances-by-tax-year"},{"title":"Update organisation opening balances by tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /organisation/balances/opening/{taxYear}","href":"/api-reference/pay-api/organisation/update-organisation-opening-balances-by-tax-year"},{"title":"Get tax years with PAYE liability data","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /organisation/balances/paye-liability/tax-years","href":"/api-reference/pay-api/organisation/get-tax-years-with-paye-liability-data"},{"title":"Get PAYE liability summary by tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /organisation/balances/paye-liability/{taxYear}","href":"/api-reference/pay-api/organisation/get-paye-liability-summary-by-tax-year"},{"title":"Update a PAYE payment for a specific tax year and payment ID","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /organisation/balances/paye-payments/{taxYear}/payment/{paymentId}","href":"/api-reference/pay-api/organisation/update-a-paye-payment-for-a-specific-tax-year-and-payment-id"},{"title":"Delete a PAYE payment for a specific tax year, period, and payment ID","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /organisation/balances/paye-payments/{taxYear}/payment/{paymentId}","href":"/api-reference/pay-api/organisation/delete-a-paye-payment-for-a-specific-tax-year-period-and-payment-id"},{"title":"Record a PAYE payment for a specific tax year and period","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /organisation/balances/paye-payments/{taxYear}/period/{period}","href":"/api-reference/pay-api/organisation/record-a-paye-payment-for-a-specific-tax-year-and-period"},{"title":"Get year-to-date running balances by tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /organisation/balances/running/{taxYear}","href":"/api-reference/pay-api/organisation/get-year-to-date-running-balances-by-tax-year"},{"title":"Get month to date running balances by tax year and month","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /organisation/balances/running/{taxYear}/month/{month}","href":"/api-reference/pay-api/organisation/get-month-to-date-running-balances-by-tax-year-and-month"},{"title":"Get the HMRC settings for the current organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /organisation/hmrc/settings","href":"/api-reference/pay-api/organisation/get-the-hmrc-settings-for-the-current-organisation"},{"title":"Update the HMRC settings for the current organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /organisation/hmrc/settings","href":"/api-reference/pay-api/organisation/update-the-hmrc-settings-for-the-current-organisation"},{"title":"Get organisation information","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /organisation/information","href":"/api-reference/pay-api/organisation/get-organisation-information"},{"title":"Update organisation information","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /organisation/information","href":"/api-reference/pay-api/organisation/update-organisation-information"},{"title":"Get multiple organisation information","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /organisation/information/multiple","href":"/api-reference/pay-api/organisation/get-multiple-organisation-information"},{"title":"Get the organisation's default working pattern and qualifying-day policy","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /organisation/working-pattern-defaults","href":"/api-reference/pay-api/organisation/get-the-organisations-default-working-pattern-and-qualifying-day-policy"},{"title":"Set the organisation's default working pattern and qualifying-day policy","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /organisation/working-pattern-defaults","href":"/api-reference/pay-api/organisation/set-the-organisations-default-working-pattern-and-qualifying-day-policy"}]},{"group":"Pay Elements","pages":[{"title":"Get the pay elements for the current organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /organisation/pay-element","href":"/api-reference/pay-api/pay-elements/get-the-pay-elements-for-the-current-organisation"},{"title":"Create a new pay element for the current organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /organisation/pay-element","href":"/api-reference/pay-api/pay-elements/create-a-new-pay-element-for-the-current-organisation"},{"title":"Get a specific pay element by ID","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /organisation/pay-element/{payElementId}","href":"/api-reference/pay-api/pay-elements/get-a-specific-pay-element-by-id"},{"title":"Update a specific pay element by ID","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /organisation/pay-element/{payElementId}","href":"/api-reference/pay-api/pay-elements/update-a-specific-pay-element-by-id"},{"title":"Delete a specific pay element by ID","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /organisation/pay-element/{payElementId}","href":"/api-reference/pay-api/pay-elements/delete-a-specific-pay-element-by-id"}]},{"group":"Payroll lines","pages":[{"title":"Upload payroll lines","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payroll/line/{employeeId}","href":"/api-reference/pay-api/payroll-lines/upload-payroll-lines"},{"title":"Delete a payroll line","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /payroll/line/{employeeId}/{lineId}","href":"/api-reference/pay-api/payroll-lines/delete-a-payroll-line"},{"title":"Add attachments to a payroll line item","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payroll/line/{employeeId}/{lineId}/attachments","href":"/api-reference/pay-api/payroll-lines/add-attachments-to-a-payroll-line-item"},{"title":"Delete an attachment from a payroll line item","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /payroll/line/{employeeId}/{lineId}/attachments/{attachmentId}","href":"/api-reference/pay-api/payroll-lines/delete-an-attachment-from-a-payroll-line-item"}]},{"group":"Payroll","pages":[{"title":"Get tax years with pay runs","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payroll/runs/tax-years-with-pay-runs","href":"/api-reference/pay-api/payroll/get-tax-years-with-pay-runs"},{"title":"List payroll runs by tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payroll/runs/{year}","href":"/api-reference/pay-api/payroll/list-payroll-runs-by-tax-year"},{"title":"Create the next payroll run for a given payroll configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payroll/{payrollConfigId}/next","href":"/api-reference/pay-api/payroll/create-the-next-payroll-run-for-a-given-payroll-configuration"},{"title":"Get payroll run(lock) data","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payroll/{payrollConfigId}/{year}/{period}","href":"/api-reference/pay-api/payroll/get-payroll-runlock-data"},{"title":"Create a payroll run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payroll/{payrollConfigId}/{year}/{period}","href":"/api-reference/pay-api/payroll/create-a-payroll-run"},{"title":"Add a former employee to an open pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payroll/{payrollConfigId}/{year}/{period}/employees","href":"/api-reference/pay-api/payroll/add-a-former-employee-to-an-open-pay-run"},{"title":"Remove a former employee from an open pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /payroll/{payrollConfigId}/{year}/{period}/employees/{employeeId}","href":"/api-reference/pay-api/payroll/remove-a-former-employee-from-an-open-pay-run"},{"title":"List the lock history of a payroll run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payroll/{payrollConfigId}/{year}/{period}/history","href":"/api-reference/pay-api/payroll/list-the-lock-history-of-a-payroll-run"},{"title":"Locks a payroll","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payroll/{payrollConfigId}/{year}/{period}/lock","href":"/api-reference/pay-api/payroll/locks-a-payroll"},{"title":"List the payslips of a pay run still being calculated","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payroll/{payrollConfigId}/{year}/{period}/processing","href":"/api-reference/pay-api/payroll/list-the-payslips-of-a-pay-run-still-being-calculated"},{"title":"Unlock a locked payroll run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payroll/{payrollConfigId}/{year}/{period}/unlock","href":"/api-reference/pay-api/payroll/unlock-a-locked-payroll-run"}]},{"group":"YearEnd","pages":[{"title":"List all year-end finalisations for an organisation in a tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payroll/year-end/{taxYear}","href":"/api-reference/pay-api/yearend/list-all-year-end-finalisations-for-an-organisation-in-a-tax-year"},{"title":"Read year-end finalisation for a payroll configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payroll/year-end/{taxYear}/{payrollConfigId}","href":"/api-reference/pay-api/yearend/read-year-end-finalisation-for-a-payroll-configuration"},{"title":"Finalise year-end for a payroll configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payroll/year-end/{taxYear}/{payrollConfigId}/finalise","href":"/api-reference/pay-api/yearend/finalise-year-end-for-a-payroll-configuration"}]},{"group":"PayrollConfig","pages":[{"title":"Read all payroll configurations","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payrollconfig","href":"/api-reference/pay-api/payrollconfig/read-all-payroll-configurations"},{"title":"Create a new payroll configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payrollconfig","href":"/api-reference/pay-api/payrollconfig/create-a-new-payroll-configuration"},{"title":"Read a payroll configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payrollconfig/{payrollConfigId}","href":"/api-reference/pay-api/payrollconfig/read-a-payroll-configuration"},{"title":"Update a payroll configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml put /payrollconfig/{payrollConfigId}","href":"/api-reference/pay-api/payrollconfig/update-a-payroll-configuration"},{"title":"Delete a payroll configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml delete /payrollconfig/{payrollConfigId}","href":"/api-reference/pay-api/payrollconfig/delete-a-payroll-configuration"},{"title":"Get a payroll config's default working pattern (overrides the organisation default)","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /payrollconfig/{payrollConfigId}/working-pattern-defaults","href":"/api-reference/pay-api/payrollconfig/get-a-payroll-configs-default-working-pattern-overrides-the-organisation-default"},{"title":"Set a payroll config's default working pattern (overrides the organisation default)","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /payrollconfig/{payrollConfigId}/working-pattern-defaults","href":"/api-reference/pay-api/payrollconfig/set-a-payroll-configs-default-working-pattern-overrides-the-organisation-default"}]},{"group":"RTI","pages":[{"title":"Submit EPS from monthly balances","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /rti/eps/monthly-balances/{taxYear}/{taxMonth}","href":"/api-reference/pay-api/rti/submit-eps-from-monthly-balances"},{"title":"Get tax years with EPS submissions","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /rti/eps/tax-years-with-submissions","href":"/api-reference/pay-api/rti/get-tax-years-with-eps-submissions"},{"title":"Submit EPS manually","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /rti/eps/{taxYear}/manual","href":"/api-reference/pay-api/rti/submit-eps-manually"},{"title":"Resubmit EPS manually","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /rti/eps/{taxYear}/manual/{submissionId}/resubmit","href":"/api-reference/pay-api/rti/resubmit-eps-manually"},{"title":"Get all EPS submissions by tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /rti/eps/{taxYear}/submissions","href":"/api-reference/pay-api/rti/get-all-eps-submissions-by-tax-year"},{"title":"Get EPS submission by tax year and submission ID","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /rti/eps/{taxYear}/submissions/{submissionId}","href":"/api-reference/pay-api/rti/get-eps-submission-by-tax-year-and-submission-id"},{"title":"Get HMRC RTI FPS for payroll run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml get /rti/fps/{payrollConfigId}/{taxYear}/{period}","href":"/api-reference/pay-api/rti/get-hmrc-rti-fps-for-payroll-run"},{"title":"Trigger send HMRC RTI FPS for payroll run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pay-api.yaml post /rti/fps/{payrollConfigId}/{taxYear}/{period}","href":"/api-reference/pay-api/rti/trigger-send-hmrc-rti-fps-for-payroll-run"}]}]},{"group":"Payment","pages":[{"title":"Payment API overview","sidebarTitle":"Overview","href":"/api-reference/payment/overview"},{"group":"AvailablePaymentConfig","pages":[{"title":"List all available payment configurations","deprecated":null,"version":null,"openapi":"/api-reference/specs/payment.json get /available/config","href":"/api-reference/payment/availablepaymentconfig/list-all-available-payment-configurations"}]},{"group":"OrganisationPaymentConfig","pages":[{"title":"Get payment configuration for an organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/payment.json get /config/{payrollConfigId}","href":"/api-reference/payment/organisationpaymentconfig/get-payment-configuration-for-an-organisation"},{"title":"Update payment configuration for an organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/payment.json put /config/{payrollConfigId}","href":"/api-reference/payment/organisationpaymentconfig/update-payment-configuration-for-an-organisation"},{"title":"Create payment configuration for an organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/payment.json post /config/{payrollConfigId}","href":"/api-reference/payment/organisationpaymentconfig/create-payment-configuration-for-an-organisation"},{"title":"Delete payment configuration for an organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/payment.json delete /config/{payrollConfigId}","href":"/api-reference/payment/organisationpaymentconfig/delete-payment-configuration-for-an-organisation"}]},{"group":"PaymentFile","pages":[{"title":"Get payment file for a pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/payment.json get /file/run/{payrollConfigId}/year/{year}/frequency/{frequency}/period/{period}","href":"/api-reference/payment/paymentfile/get-payment-file-for-a-pay-run"},{"title":"Create the payment file of a locked pay run that has none","deprecated":null,"version":null,"openapi":"/api-reference/specs/payment.json post /file/run/{payrollConfigId}/year/{year}/frequency/{frequency}/period/{period}/generate","href":"/api-reference/payment/paymentfile/create-the-payment-file-of-a-locked-pay-run-that-has-none"},{"title":"Get the payment file history of a pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/payment.json get /file/run/{payrollConfigId}/year/{year}/frequency/{frequency}/period/{period}/history","href":"/api-reference/payment/paymentfile/get-the-payment-file-history-of-a-pay-run"},{"title":"Rebuild a pay run's payment file with the current payment settings","deprecated":null,"version":null,"openapi":"/api-reference/specs/payment.json post /file/run/{payrollConfigId}/year/{year}/frequency/{frequency}/period/{period}/rebuild","href":"/api-reference/payment/paymentfile/rebuild-a-pay-runs-payment-file-with-the-current-payment-settings"},{"title":"Retry failed payment file generation with refreshed employee data","deprecated":null,"version":null,"openapi":"/api-reference/specs/payment.json post /file/run/{payrollConfigId}/year/{year}/frequency/{frequency}/period/{period}/retry","href":"/api-reference/payment/paymentfile/retry-failed-payment-file-generation-with-refreshed-employee-data"}]}]},{"group":"Payroll journals","pages":[{"title":"Payroll journals API overview","sidebarTitle":"Overview","href":"/api-reference/journal/overview"},{"group":"Control account mappings","pages":[{"title":"Get a control account mapping","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /templates/{templateId}/control-account-mappings/{account}","href":"/api-reference/journal/control-account-mappings/get-a-control-account-mapping"},{"title":"Create or update a control account mapping","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json put /templates/{templateId}/control-account-mappings/{account}","href":"/api-reference/journal/control-account-mappings/create-or-update-a-control-account-mapping"},{"title":"Delete a control account mapping","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json delete /templates/{templateId}/control-account-mappings/{account}","href":"/api-reference/journal/control-account-mappings/delete-a-control-account-mapping"},{"title":"List control account mappings","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /templates/{templateId}/control-account-mappings","href":"/api-reference/journal/control-account-mappings/list-control-account-mappings"}]},{"group":"Journal export metadata","pages":[{"title":"List date-format presets","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /export-options/date-format-presets","href":"/api-reference/journal/journal-export-metadata/list-date-format-presets"},{"title":"List narration tokens","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /export-options/narration-tokens","href":"/api-reference/journal/journal-export-metadata/list-narration-tokens"},{"title":"List reference tokens","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /export-options/reference-tokens","href":"/api-reference/journal/journal-export-metadata/list-reference-tokens"},{"title":"List export presets","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /export-options/presets","href":"/api-reference/journal/journal-export-metadata/list-export-presets"},{"title":"List split sources and their known values","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /export-options/split-sources","href":"/api-reference/journal/journal-export-metadata/list-split-sources-and-their-known-values"},{"title":"List export formats","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /export-options/formats","href":"/api-reference/journal/journal-export-metadata/list-export-formats"},{"title":"List account-code separators","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /export-options/account-code-separators","href":"/api-reference/journal/journal-export-metadata/list-account-code-separators"}]},{"group":"Journal templates","pages":[{"title":"List journal templates","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /templates","href":"/api-reference/journal/journal-templates/list-journal-templates"},{"title":"Create a journal template","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json post /templates","href":"/api-reference/journal/journal-templates/create-a-journal-template"},{"title":"Get a journal template","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /templates/{templateId}","href":"/api-reference/journal/journal-templates/get-a-journal-template"},{"title":"Delete a journal template","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json delete /templates/{templateId}","href":"/api-reference/journal/journal-templates/delete-a-journal-template"},{"title":"Update a journal template","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json patch /templates/{templateId}","href":"/api-reference/journal/journal-templates/update-a-journal-template"},{"title":"Preview a journal template","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json post /templates/{templateId}/preview","href":"/api-reference/journal/journal-templates/preview-a-journal-template"},{"title":"Clone a journal template","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json post /templates/{templateId}/clone","href":"/api-reference/journal/journal-templates/clone-a-journal-template"},{"title":"Export a journal template","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /templates/{templateId}/export","href":"/api-reference/journal/journal-templates/export-a-journal-template"},{"title":"Import a journal template","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json post /templates/import","href":"/api-reference/journal/journal-templates/import-a-journal-template"},{"title":"Import journal template mappings","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json post /templates/{templateId}/imports/mappings","href":"/api-reference/journal/journal-templates/import-journal-template-mappings"},{"title":"Get a journal template's history","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /templates/{templateId}/history","href":"/api-reference/journal/journal-templates/get-a-journal-templates-history"},{"title":"Preview a journal template as CSV","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json post /templates/{templateId}/preview/exports/csv","href":"/api-reference/journal/journal-templates/preview-a-journal-template-as-csv"},{"title":"Preview a journal template as PDF","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json post /templates/{templateId}/preview/exports/pdf","href":"/api-reference/journal/journal-templates/preview-a-journal-template-as-pdf"}]},{"group":"Journals","pages":[{"title":"List journals","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /journals","href":"/api-reference/journal/journals/list-journals"},{"title":"Get the latest journal for a pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /journals/latest","href":"/api-reference/journal/journals/get-the-latest-journal-for-a-pay-run"},{"title":"List journal versions for a pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /journals/versions","href":"/api-reference/journal/journals/list-journal-versions-for-a-pay-run"},{"title":"Get a journal","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /journals/{journalId}","href":"/api-reference/journal/journals/get-a-journal"},{"title":"Get a page of a journal's lines","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /journals/{journalId}/lines","href":"/api-reference/journal/journals/get-a-page-of-a-journals-lines"},{"title":"Download a journal export","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /journals/{journalId}/exports/{format}","href":"/api-reference/journal/journals/download-a-journal-export"},{"title":"Get a journal export download link","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /journals/{journalId}/exports/{format}/download-url","href":"/api-reference/journal/journals/get-a-journal-export-download-link"},{"title":"Rebuild a journal for a pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json post /journals/rebuild","href":"/api-reference/journal/journals/rebuild-a-journal-for-a-pay-run"},{"title":"Reissue a journal for a pay run (async)","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json post /journals/reissue","href":"/api-reference/journal/journals/reissue-a-journal-for-a-pay-run-async"},{"title":"Get a journal's history","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /journals/{journalId}/history","href":"/api-reference/journal/journals/get-a-journals-history"},{"title":"Get a journal's rebuild/re-issue progress","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /journals/{journalId}/reissue-progress","href":"/api-reference/journal/journals/get-a-journals-rebuildre-issue-progress"},{"title":"List this journal's sends","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /journals/{journalId}/postings","href":"/api-reference/journal/journals/list-this-journals-sends"},{"title":"Send a journal to your accounting system","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json post /journals/{journalId}/postings","href":"/api-reference/journal/journals/send-a-journal-to-your-accounting-system"}]},{"group":"Org journal settings","pages":[{"title":"Get organisation journal settings","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /org-journal-settings","href":"/api-reference/journal/org-journal-settings/get-organisation-journal-settings"},{"title":"Create or update organisation journal settings","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json put /org-journal-settings","href":"/api-reference/journal/org-journal-settings/create-or-update-organisation-journal-settings"}]},{"group":"Pay element mappings","pages":[{"title":"Get a pay element mapping","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /templates/{templateId}/pay-element-mappings/{payElementId}","href":"/api-reference/journal/pay-element-mappings/get-a-pay-element-mapping"},{"title":"Create or update a pay element mapping","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json put /templates/{templateId}/pay-element-mappings/{payElementId}","href":"/api-reference/journal/pay-element-mappings/create-or-update-a-pay-element-mapping"},{"title":"Delete a pay element mapping","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json delete /templates/{templateId}/pay-element-mappings/{payElementId}","href":"/api-reference/journal/pay-element-mappings/delete-a-pay-element-mapping"},{"title":"List pay element mappings","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /templates/{templateId}/pay-element-mappings","href":"/api-reference/journal/pay-element-mappings/list-pay-element-mappings"}]},{"group":"Split dimensions","pages":[{"title":"List split dimensions","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /templates/{templateId}/split-dimensions","href":"/api-reference/journal/split-dimensions/list-split-dimensions"},{"title":"Create a split dimension","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json post /templates/{templateId}/split-dimensions","href":"/api-reference/journal/split-dimensions/create-a-split-dimension"},{"title":"Get a split dimension","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /templates/{templateId}/split-dimensions/{sequence}","href":"/api-reference/journal/split-dimensions/get-a-split-dimension"},{"title":"Delete a split dimension","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json delete /templates/{templateId}/split-dimensions/{sequence}","href":"/api-reference/journal/split-dimensions/delete-a-split-dimension"},{"title":"Update a split dimension","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json patch /templates/{templateId}/split-dimensions/{sequence}","href":"/api-reference/journal/split-dimensions/update-a-split-dimension"}]},{"group":"Split value mappings","pages":[{"title":"Get a split value mapping","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /templates/{templateId}/split-dimensions/{sequence}/values/{splitValueKey}","href":"/api-reference/journal/split-value-mappings/get-a-split-value-mapping"},{"title":"Create or update a split value mapping","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json put /templates/{templateId}/split-dimensions/{sequence}/values/{splitValueKey}","href":"/api-reference/journal/split-value-mappings/create-or-update-a-split-value-mapping"},{"title":"Delete a split value mapping","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json delete /templates/{templateId}/split-dimensions/{sequence}/values/{splitValueKey}","href":"/api-reference/journal/split-value-mappings/delete-a-split-value-mapping"},{"title":"List split value mappings","deprecated":null,"version":null,"openapi":"/api-reference/specs/journal.json get /templates/{templateId}/split-dimensions/{sequence}/values","href":"/api-reference/journal/split-value-mappings/list-split-value-mappings"}]}]},{"group":"Pensions","pages":[{"title":"Pensions API overview","sidebarTitle":"Overview","href":"/api-reference/pensions-v2/overview"},{"group":"AdditionalVoluntaryContribution","pages":[{"title":"Get the additional voluntary contribution for a pay period","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /employee-pension/{employeeId}/additional-voluntary-contributions/{taxYear}/{period}","href":"/api-reference/pensions-v2/additionalvoluntarycontribution/get-the-additional-voluntary-contribution-for-a-pay-period"},{"title":"Set an additional voluntary contribution for a pay period","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json put /employee-pension/{employeeId}/additional-voluntary-contributions/{taxYear}/{period}","href":"/api-reference/pensions-v2/additionalvoluntarycontribution/set-an-additional-voluntary-contribution-for-a-pay-period"},{"title":"Remove the additional voluntary contribution for a pay period","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json delete /employee-pension/{employeeId}/additional-voluntary-contributions/{taxYear}/{period}","href":"/api-reference/pensions-v2/additionalvoluntarycontribution/remove-the-additional-voluntary-contribution-for-a-pay-period"},{"title":"List an employee's additional voluntary contributions","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /employee-pension/{employeeId}/additional-voluntary-contributions","href":"/api-reference/pensions-v2/additionalvoluntarycontribution/list-an-employees-additional-voluntary-contributions"}]},{"group":"Auto-enrolment","pages":[{"title":"List statutory pension letters still to be given","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /auto-enrolment/enrolment-information/outstanding","href":"/api-reference/pensions-v2/auto-enrolment/list-statutory-pension-letters-still-to-be-given"},{"title":"List statutory pension letters that have been given","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /auto-enrolment/enrolment-information/sent","href":"/api-reference/pensions-v2/auto-enrolment/list-statutory-pension-letters-that-have-been-given"},{"title":"List incomplete auto-enrolments","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /auto-enrolment/not-complete","href":"/api-reference/pensions-v2/auto-enrolment/list-incomplete-auto-enrolments"},{"title":"List incomplete auto-enrolments for a pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /auto-enrolment/not-complete/payrun/{payrollConfigId}/{year}/{frequency}/{period}","href":"/api-reference/pensions-v2/auto-enrolment/list-incomplete-auto-enrolments-for-a-pay-run"},{"title":"List completed auto-enrolments for a pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /auto-enrolment/complete/payrun/{payrollConfigId}/{year}/{frequency}/{period}","href":"/api-reference/pensions-v2/auto-enrolment/list-completed-auto-enrolments-for-a-pay-run"},{"title":"List employees not in auto-enrolment","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /auto-enrolment/not-auto-enrolments","href":"/api-reference/pensions-v2/auto-enrolment/list-employees-not-in-auto-enrolment"},{"title":"List employees not in auto-enrolment for a pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /auto-enrolment/not-auto-enrolments/payrun/{payrollConfigId}/{year}/{frequency}/{period}","href":"/api-reference/pensions-v2/auto-enrolment/list-employees-not-in-auto-enrolment-for-a-pay-run"},{"title":"List assessments for a pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /auto-enrolment/assessments/payrun/{payrollConfigId}/{year}/{frequency}/{period}","href":"/api-reference/pensions-v2/auto-enrolment/list-assessments-for-a-pay-run"},{"title":"Preview an assessment","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /auto-enrolment/assessments/preview","href":"/api-reference/pensions-v2/auto-enrolment/preview-an-assessment"}]},{"group":"AutoEnrolmentExemption","pages":[{"title":"Get an employee's auto-enrolment exemption","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /auto-enrolment-exemption/{employeeId}","href":"/api-reference/pensions-v2/autoenrolmentexemption/get-an-employees-auto-enrolment-exemption"},{"title":"Remove an employee's auto-enrolment exemption","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json delete /auto-enrolment-exemption/{employeeId}","href":"/api-reference/pensions-v2/autoenrolmentexemption/remove-an-employees-auto-enrolment-exemption"},{"title":"Set an employee's auto-enrolment exemption","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json put /auto-enrolment-exemption","href":"/api-reference/pensions-v2/autoenrolmentexemption/set-an-employees-auto-enrolment-exemption"}]},{"group":"ContributionOverride","pages":[{"title":"Get the contribution override for one pay period","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /employee-pension/{employeeId}/contribution-overrides/{taxYear}/{period}","href":"/api-reference/pensions-v2/contributionoverride/get-the-contribution-override-for-one-pay-period"},{"title":"Set a contribution override for one pay period","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json put /employee-pension/{employeeId}/contribution-overrides/{taxYear}/{period}","href":"/api-reference/pensions-v2/contributionoverride/set-a-contribution-override-for-one-pay-period"},{"title":"Remove the contribution override for one pay period","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json delete /employee-pension/{employeeId}/contribution-overrides/{taxYear}/{period}","href":"/api-reference/pensions-v2/contributionoverride/remove-the-contribution-override-for-one-pay-period"},{"title":"List an employee's contribution overrides","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /employee-pension/{employeeId}/contribution-overrides","href":"/api-reference/pensions-v2/contributionoverride/list-an-employees-contribution-overrides"}]},{"group":"Employee enrolment","pages":[{"title":"List the opt-out notices kept for one membership ending","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /employee-pension/{employeeId}/opt-out-notices","href":"/api-reference/pensions-v2/employee-enrolment/list-the-opt-out-notices-kept-for-one-membership-ending"},{"title":"Get somewhere to put a member's opt-out notice","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /employee-pension/{employeeId}/opt-out-notices","href":"/api-reference/pensions-v2/employee-enrolment/get-somewhere-to-put-a-members-opt-out-notice"},{"title":"Enrol an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /employee-pension","href":"/api-reference/pensions-v2/employee-enrolment/enrol-an-employee"},{"title":"Get an employee's enrolment","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /employee-pension/{employeeId}","href":"/api-reference/pensions-v2/employee-enrolment/get-an-employees-enrolment"},{"title":"Remove an employee from their pension","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json delete /employee-pension/{employeeId}","href":"/api-reference/pensions-v2/employee-enrolment/remove-an-employee-from-their-pension"},{"title":"List enrolments in batch","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /employee-pension/batch","href":"/api-reference/pensions-v2/employee-enrolment/list-enrolments-in-batch"},{"title":"Preview an opt-out refund","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /employee-pension/{employeeId}/refund-preview","href":"/api-reference/pensions-v2/employee-enrolment/preview-an-opt-out-refund"},{"title":"Get an opt-out refund","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /employee-pension/{employeeId}/opt-out-refunds/{membershipEndDate}","href":"/api-reference/pensions-v2/employee-enrolment/get-an-opt-out-refund"},{"title":"Decide an opt-out refund","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json put /employee-pension/{employeeId}/opt-out-refunds/{membershipEndDate}/decision","href":"/api-reference/pensions-v2/employee-enrolment/decide-an-opt-out-refund"},{"title":"List an employee's membership endings","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /employee-pension/{employeeId}/membership-ends","href":"/api-reference/pensions-v2/employee-enrolment/list-an-employees-membership-endings"},{"title":"Send an enrolment letter","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /employee-pension/{employeeId}/enrolment-letter","href":"/api-reference/pensions-v2/employee-enrolment/send-an-enrolment-letter"},{"title":"Send pension letters","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /employee-pension/letters/{letterType}","href":"/api-reference/pensions-v2/employee-enrolment/send-pension-letters"},{"title":"Get a pension letter job","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /employee-pension/letters/jobs/{jobId}","href":"/api-reference/pensions-v2/employee-enrolment/get-a-pension-letter-job"},{"title":"Choose how pension letters are sent","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json put /employee-pension/letters/{letterType}/sending","href":"/api-reference/pensions-v2/employee-enrolment/choose-how-pension-letters-are-sent"},{"title":"List one employee's pension letters","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /employee-pension/{employeeId}/letters","href":"/api-reference/pensions-v2/employee-enrolment/list-one-employees-pension-letters"}]},{"group":"Pension calculations","pages":[{"title":"Retrieve export files","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /export-file-retrieval/pension-calculation/year/{year}/period/{period}/frequency/{frequency}/payroll-config/{payrollConfigId}","href":"/api-reference/pensions-v2/pension-calculations/retrieve-export-files"},{"title":"List calculations for a month","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /pension-calculation/by-year/{year}/by-month/{month}","href":"/api-reference/pensions-v2/pension-calculations/list-calculations-for-a-month"},{"title":"List calculations for a provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /pension-calculation/pension-provider/{pensionProviderId}/by-year/{year}/by-month/{month}","href":"/api-reference/pensions-v2/pension-calculations/list-calculations-for-a-provider"},{"title":"Download the contributions CSV","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /pension-calculation/csv/year/{year}/period/{period}/frequency/{frequency}/payroll-config/{payrollConfigId}","href":"/api-reference/pensions-v2/pension-calculations/download-the-contributions-csv"},{"title":"Generate provider export files","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /pension-calculation/export","href":"/api-reference/pensions-v2/pension-calculations/generate-provider-export-files"},{"title":"List generated export files","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /pension-calculation/export/year/{year}/period/{period}/frequency/{frequency}/payroll-config/{payrollConfigId}","href":"/api-reference/pensions-v2/pension-calculations/list-generated-export-files"},{"title":"Record a calculation","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /pension-calculation","href":"/api-reference/pensions-v2/pension-calculations/record-a-calculation"}]},{"group":"Organisation defaults","pages":[{"title":"Get organisation pension defaults","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /organisation","href":"/api-reference/pensions-v2/organisation-defaults/get-organisation-pension-defaults"},{"title":"Update postponement defaults","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json put /organisation/pension-default/postponement-settings","href":"/api-reference/pensions-v2/organisation-defaults/update-postponement-defaults"},{"title":"Update auto-enrolment settings","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json put /organisation/pension-default/auto-enrolment-settings","href":"/api-reference/pensions-v2/organisation-defaults/update-auto-enrolment-settings"},{"title":"List opt-out refunds","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /organisation/opt-out-refunds","href":"/api-reference/pensions-v2/organisation-defaults/list-opt-out-refunds"},{"title":"List pension membership endings (refunds report)","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /organisation/pension-membership-ends","href":"/api-reference/pensions-v2/organisation-defaults/list-pension-membership-endings-refunds-report"}]},{"group":"Pension groups","pages":[{"title":"Create a pension group","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /pension-group","href":"/api-reference/pensions-v2/pension-groups/create-a-pension-group"},{"title":"Get a pension group","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /pension-group/{id}","href":"/api-reference/pensions-v2/pension-groups/get-a-pension-group"},{"title":"Update a pension group","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json put /pension-group/{id}","href":"/api-reference/pensions-v2/pension-groups/update-a-pension-group"},{"title":"Delete a pension group","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json delete /pension-group/{id}","href":"/api-reference/pensions-v2/pension-groups/delete-a-pension-group"},{"title":"List allowed contribution bases","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /pension-group/allowed-bases","href":"/api-reference/pensions-v2/pension-groups/list-allowed-contribution-bases"}]},{"group":"Pension information","pages":[{"title":"Get an employee's pension information","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /pension-information/{employeeId}","href":"/api-reference/pensions-v2/pension-information/get-an-employees-pension-information"}]},{"group":"Pension providers","pages":[{"title":"List pension providers","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /pension-provider","href":"/api-reference/pensions-v2/pension-providers/list-pension-providers"},{"title":"Get a pension provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /pension-provider/{id}","href":"/api-reference/pensions-v2/pension-providers/get-a-pension-provider"},{"title":"Get a pension provider by slug","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /pension-provider/slug/{slug}","href":"/api-reference/pensions-v2/pension-providers/get-a-pension-provider-by-slug"}]},{"group":"Pension schemes","pages":[{"title":"Create a pension scheme","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /pension-schema","href":"/api-reference/pensions-v2/pension-schemes/create-a-pension-scheme"},{"title":"Get a pension scheme","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /pension-schema/{id}","href":"/api-reference/pensions-v2/pension-schemes/get-a-pension-scheme"},{"title":"Update a pension scheme","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json put /pension-schema/{id}","href":"/api-reference/pensions-v2/pension-schemes/update-a-pension-scheme"},{"title":"Delete a pension scheme","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json delete /pension-schema/{id}","href":"/api-reference/pensions-v2/pension-schemes/delete-a-pension-scheme"},{"title":"List pension schemes","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /pension-schema/organisation","href":"/api-reference/pensions-v2/pension-schemes/list-pension-schemes"}]},{"group":"Postponement","pages":[{"title":"Get an employee's postponement","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /postponement/{employeeId}","href":"/api-reference/pensions-v2/postponement/get-an-employees-postponement"},{"title":"Remove an employee's postponement","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json delete /postponement/{employeeId}","href":"/api-reference/pensions-v2/postponement/remove-an-employees-postponement"},{"title":"Set an employee's postponement","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json put /postponement","href":"/api-reference/pensions-v2/postponement/set-an-employees-postponement"}]},{"group":"Provider submissions","pages":[{"title":"Check the scheme matches its pension provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /provider-sync/reconciliation","href":"/api-reference/pensions-v2/provider-submissions/check-the-scheme-matches-its-pension-provider"},{"title":"List what pension providers sent back","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /provider-sync/returns","href":"/api-reference/pensions-v2/provider-submissions/list-what-pension-providers-sent-back"},{"title":"Changes a pension provider has reported about members","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /provider-sync/member-changes","href":"/api-reference/pensions-v2/provider-submissions/changes-a-pension-provider-has-reported-about-members"},{"title":"How many provider changes are waiting","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /provider-sync/member-changes/summary","href":"/api-reference/pensions-v2/provider-submissions/how-many-provider-changes-are-waiting"},{"title":"Apply a provider's reported change to the member's pension","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /provider-sync/member-changes/{changeId}/apply","href":"/api-reference/pensions-v2/provider-submissions/apply-a-providers-reported-change-to-the-members-pension"},{"title":"Record that a provider's reported change was not applied","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /provider-sync/member-changes/{changeId}/dismiss","href":"/api-reference/pensions-v2/provider-submissions/record-that-a-providers-reported-change-was-not-applied"},{"title":"Mark a provider's reported change as seen","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /provider-sync/member-changes/{changeId}/acknowledge","href":"/api-reference/pensions-v2/provider-submissions/mark-a-providers-reported-change-as-seen"},{"title":"Remove a provider's reported change from the lists","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /provider-sync/member-changes/{changeId}/delete","href":"/api-reference/pensions-v2/provider-submissions/remove-a-providers-reported-change-from-the-lists"},{"title":"List provider submissions for a pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /provider-sync/{payrollConfigId}/{year}/{frequency}/{period}","href":"/api-reference/pensions-v2/provider-submissions/list-provider-submissions-for-a-pay-run"},{"title":"Find the provider submission an operation belongs to","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /provider-sync/operations/{operationId}","href":"/api-reference/pensions-v2/provider-submissions/find-the-provider-submission-an-operation-belongs-to"},{"title":"List the pay run's schemes that can be sent to a provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /provider-sync/{payrollConfigId}/{year}/{frequency}/{period}/sendable","href":"/api-reference/pensions-v2/provider-submissions/list-the-pay-runs-schemes-that-can-be-sent-to-a-provider"},{"title":"Everything the provider refused about one submission","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json get /provider-sync/{payrollConfigId}/{year}/{frequency}/{period}/issues","href":"/api-reference/pensions-v2/provider-submissions/everything-the-provider-refused-about-one-submission"},{"title":"Send the pay run to the connected pension providers","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /provider-sync/{payrollConfigId}/{year}/{frequency}/{period}/send","href":"/api-reference/pensions-v2/provider-submissions/send-the-pay-run-to-the-connected-pension-providers"},{"title":"Approve the pay run's contribution schedule for payment","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /provider-sync/{payrollConfigId}/{year}/{frequency}/{period}/approve-payment","href":"/api-reference/pensions-v2/provider-submissions/approve-the-pay-runs-contribution-schedule-for-payment"},{"title":"Re-read named members' details so a refused submission can be corrected","deprecated":null,"version":null,"openapi":"/api-reference/specs/pension-v2.json post /provider-sync/{payrollConfigId}/{year}/{frequency}/{period}/refresh-members","href":"/api-reference/pensions-v2/provider-submissions/re-read-named-members-details-so-a-refused-submission-can-be-corrected"}]}]},{"group":"Recurring line items","pages":[{"title":"Recurring line items API overview","sidebarTitle":"Overview","href":"/api-reference/recurring-line-items/overview"},{"group":"Recurring Line Items","pages":[{"title":"List recurring line items for an organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/recurring-line-items.json get /","href":"/api-reference/recurring-line-items/recurring-line-items/list-recurring-line-items-for-an-organisation"},{"title":"Create a recurring line item","deprecated":null,"version":null,"openapi":"/api-reference/specs/recurring-line-items.json post /","href":"/api-reference/recurring-line-items/recurring-line-items/create-a-recurring-line-item"},{"title":"List recurring line items for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/recurring-line-items.json get /employees/{employeeId}","href":"/api-reference/recurring-line-items/recurring-line-items/list-recurring-line-items-for-an-employee"},{"title":"Get a recurring line item","deprecated":null,"version":null,"openapi":"/api-reference/specs/recurring-line-items.json get /{id}","href":"/api-reference/recurring-line-items/recurring-line-items/get-a-recurring-line-item"},{"title":"Delete a recurring line item","deprecated":null,"version":null,"openapi":"/api-reference/specs/recurring-line-items.json delete /{id}/employees/{employeeId}","href":"/api-reference/recurring-line-items/recurring-line-items/delete-a-recurring-line-item"},{"title":"Update a recurring line item","deprecated":null,"version":null,"openapi":"/api-reference/specs/recurring-line-items.json patch /{id}/employees/{employeeId}","href":"/api-reference/recurring-line-items/recurring-line-items/update-a-recurring-line-item"},{"title":"List tax years for a recurring line item","deprecated":null,"version":null,"openapi":"/api-reference/specs/recurring-line-items.json get /{id}/employees/{employeeId}/tax-years","href":"/api-reference/recurring-line-items/recurring-line-items/list-tax-years-for-a-recurring-line-item"},{"title":"List periods for a recurring line item","deprecated":null,"version":null,"openapi":"/api-reference/specs/recurring-line-items.json get /{id}/employees/{employeeId}/periods","href":"/api-reference/recurring-line-items/recurring-line-items/list-periods-for-a-recurring-line-item"},{"title":"Skip a single period of a recurring line item","deprecated":null,"version":null,"openapi":"/api-reference/specs/recurring-line-items.json delete /{id}/employees/{employeeId}/periods/{taxYear}/{sequence}","href":"/api-reference/recurring-line-items/recurring-line-items/skip-a-single-period-of-a-recurring-line-item"},{"title":"Update a single period of a recurring line item","deprecated":null,"version":null,"openapi":"/api-reference/specs/recurring-line-items.json patch /{id}/employees/{employeeId}/periods/{taxYear}/{sequence}","href":"/api-reference/recurring-line-items/recurring-line-items/update-a-single-period-of-a-recurring-line-item"}]}]},{"group":"Reports","tag":"Beta","pages":[{"title":"Reports API overview","sidebarTitle":"Overview","href":"/api-reference/reports/overview"},{"group":"Datasets","pages":[{"title":"List queryable datasets","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json get /datasets","href":"/api-reference/reports/datasets/list-queryable-datasets"},{"title":"Get a dataset's full field catalog","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json get /datasets/{name}","href":"/api-reference/reports/datasets/get-a-datasets-full-field-catalog"}]},{"group":"Exports","pages":[{"title":"Queue an asynchronous CSV or JSONL export (row cap 5,000,000)","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json post /exports","href":"/api-reference/reports/exports/queue-an-asynchronous-csv-or-jsonl-export-row-cap-5000000"},{"title":"Export status; a download link when COMPLETED (12-hour expiry, refetch to re-issue)","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json get /exports/{id}","href":"/api-reference/reports/exports/export-status;-a-download-link-when-completed-12-hour-expiry-refetch-to-re-issue"}]},{"group":"Report definitions","pages":[{"title":"List the organisation's saved report definitions","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json get /report-definitions","href":"/api-reference/reports/report-definitions/list-the-organisations-saved-report-definitions"},{"title":"Save a report definition","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json post /report-definitions","href":"/api-reference/reports/report-definitions/save-a-report-definition"},{"title":"Get a saved report definition","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json get /report-definitions/{id}","href":"/api-reference/reports/report-definitions/get-a-saved-report-definition"},{"title":"Replace a saved report definition","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json put /report-definitions/{id}","href":"/api-reference/reports/report-definitions/replace-a-saved-report-definition"},{"title":"Delete a saved report definition (refuses while schedules reference it)","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json delete /report-definitions/{id}","href":"/api-reference/reports/report-definitions/delete-a-saved-report-definition-refuses-while-schedules-reference-it"}]},{"group":"report-settings","pages":[{"title":"The reports the pay run's Reports step shows","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json get /report-settings/pay-run","href":"/api-reference/reports/report-settings/the-reports-the-pay-runs-reports-step-shows"},{"title":"Choose the reports the pay run's Reports step shows","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json put /report-settings/pay-run","href":"/api-reference/reports/report-settings/choose-the-reports-the-pay-runs-reports-step-shows"}]},{"group":"Run reports","pages":[{"title":"Run an inline report definition synchronously","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json post /reports/run","href":"/api-reference/reports/run-reports/run-an-inline-report-definition-synchronously"},{"title":"Run a saved report definition synchronously","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json post /report-definitions/{id}/run","href":"/api-reference/reports/run-reports/run-a-saved-report-definition-synchronously"},{"title":"Run a report over one pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json post /payroll-runs/{payrollConfigId}/{year}/{period}/{frequency}/reports/{definitionId}/run","href":"/api-reference/reports/run-reports/run-a-report-over-one-pay-run"},{"title":"Try a report on one pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json post /payroll-runs/{payrollConfigId}/{year}/{period}/{frequency}/reports/run","href":"/api-reference/reports/run-reports/try-a-report-on-one-pay-run"},{"title":"A page of a report over one pay run","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json get /payroll-runs/{payrollConfigId}/{year}/{period}/{frequency}/reports/{definitionId}/rows","href":"/api-reference/reports/run-reports/a-page-of-a-report-over-one-pay-run"}]},{"group":"Run history","pages":[{"title":"Run history / audit (most recent first)","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json get /runs","href":"/api-reference/reports/run-history/run-history-audit-most-recent-first"}]},{"group":"Schedules","pages":[{"title":"List a definition's schedules","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json get /report-definitions/{definitionId}/schedules","href":"/api-reference/reports/schedules/list-a-definitions-schedules"},{"title":"Schedule recurring exports of a saved definition","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json post /report-definitions/{definitionId}/schedules","href":"/api-reference/reports/schedules/schedule-recurring-exports-of-a-saved-definition"},{"title":"Delete a schedule","deprecated":null,"version":null,"openapi":"/api-reference/specs/report.json delete /schedules/{id}","href":"/api-reference/reports/schedules/delete-a-schedule"}]}]},{"group":"Salary","pages":[{"title":"Salary API overview","sidebarTitle":"Overview","href":"/api-reference/salary/overview"},{"group":"Salary employee configuration","pages":[{"title":"Get an employee's salary configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json get /employees/{employeeId}","href":"/api-reference/salary/salary-employee-configuration/get-an-employees-salary-configuration"},{"title":"Set an employee's calculation-method override","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json put /employees/{employeeId}","href":"/api-reference/salary/salary-employee-configuration/set-an-employees-calculation-method-override"},{"title":"Remove an employee's calculation-method override","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json delete /employees/{employeeId}","href":"/api-reference/salary/salary-employee-configuration/remove-an-employees-calculation-method-override"}]},{"group":"Salary lines","pages":[{"title":"Calculate the salary lines for a pay period","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json post /employees/{employeeId}/calculate","href":"/api-reference/salary/salary-lines/calculate-the-salary-lines-for-a-pay-period"}]},{"group":"Salary organisation configuration","pages":[{"title":"Get the organisation's salary configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json get /organisation","href":"/api-reference/salary/salary-organisation-configuration/get-the-organisations-salary-configuration"},{"title":"Create or replace the organisation's salary configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json put /organisation","href":"/api-reference/salary/salary-organisation-configuration/create-or-replace-the-organisations-salary-configuration"},{"title":"Delete the organisation's salary configuration","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json delete /organisation","href":"/api-reference/salary/salary-organisation-configuration/delete-the-organisations-salary-configuration"}]},{"group":"Statutory leave policies","pages":[{"title":"Get the organisation's statutory leave policies","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json get /organisation/leave","href":"/api-reference/salary/statutory-leave-policies/get-the-organisations-statutory-leave-policies"},{"title":"Replace the organisation's statutory leave policies","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json put /organisation/leave","href":"/api-reference/salary/statutory-leave-policies/replace-the-organisations-statutory-leave-policies"},{"title":"Remove the organisation's statutory leave policies","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json delete /organisation/leave","href":"/api-reference/salary/statutory-leave-policies/remove-the-organisations-statutory-leave-policies"},{"title":"Get an employee's statutory leave policies","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json get /employees/{employeeId}/leave","href":"/api-reference/salary/statutory-leave-policies/get-an-employees-statutory-leave-policies"},{"title":"Replace an employee's statutory leave override","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json put /employees/{employeeId}/leave","href":"/api-reference/salary/statutory-leave-policies/replace-an-employees-statutory-leave-override"},{"title":"Remove an employee's statutory leave override","deprecated":null,"version":null,"openapi":"/api-reference/specs/salary.json delete /employees/{employeeId}/leave","href":"/api-reference/salary/statutory-leave-policies/remove-an-employees-statutory-leave-override"}]}]},{"group":"Statutory pay","pages":[{"title":"Statutory pay API overview","sidebarTitle":"Overview","href":"/api-reference/statutory-pay/overview"},{"group":"Statutory Calculations","pages":[{"title":"Preview statutory pay for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json post /calculations/employees/{employeeId}","href":"/api-reference/statutory-pay/statutory-calculations/preview-statutory-pay-for-an-employee"},{"title":"Preview statutory pay from the details you send","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json post /calculations/preview","href":"/api-reference/statutory-pay/statutory-calculations/preview-statutory-pay-from-the-details-you-send"},{"title":"Check whether a sickness absence links to an earlier one","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json post /calculations/employees/{employeeId}/linking","href":"/api-reference/statutory-pay/statutory-calculations/check-whether-a-sickness-absence-links-to-an-earlier-one"},{"title":"Get an employee's statutory pay history used in calculations","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /calculations/employees/{employeeId}/history","href":"/api-reference/statutory-pay/statutory-calculations/get-an-employees-statutory-pay-history-used-in-calculations"}]},{"group":"Statutory payments","pages":[{"title":"List an employee's statutory payments","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /payments/employees/{employeeId}","href":"/api-reference/statutory-pay/statutory-payments/list-an-employees-statutory-payments"},{"title":"Create a statutory payment for an employee","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json post /payments/employees/{employeeId}","href":"/api-reference/statutory-pay/statutory-payments/create-a-statutory-payment-for-an-employee"},{"title":"List the organisation's statutory payments","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /payments/organisations","href":"/api-reference/statutory-pay/statutory-payments/list-the-organisations-statutory-payments"},{"title":"Get a statutory payment","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /payments/employees/{employeeId}/{statutoryPayId}","href":"/api-reference/statutory-pay/statutory-payments/get-a-statutory-payment"},{"title":"Update a statutory payment","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json put /payments/employees/{employeeId}/{statutoryPayId}","href":"/api-reference/statutory-pay/statutory-payments/update-a-statutory-payment"},{"title":"Delete a statutory payment","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json delete /payments/employees/{employeeId}/{statutoryPayId}","href":"/api-reference/statutory-pay/statutory-payments/delete-a-statutory-payment"},{"title":"Get a statutory payment's change history","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /payments/employees/{employeeId}/{statutoryPayId}/history","href":"/api-reference/statutory-pay/statutory-payments/get-a-statutory-payments-change-history"}]},{"group":"Alabaster \u0026 earnings","pages":[{"title":"Calculate an employee's average weekly earnings","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /payments/calculations/employees/{employeeId}/average-earnings","href":"/api-reference/statutory-pay/alabaster-\u0026-earnings/calculate-an-employees-average-weekly-earnings"},{"title":"Find pay rises that should increase maternity pay","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /payments/employees/{employeeId}/{statutoryPayId}/alabaster-detection","href":"/api-reference/statutory-pay/alabaster-\u0026-earnings/find-pay-rises-that-should-increase-maternity-pay"},{"title":"Recalculate maternity pay after a pay rise","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json post /payments/employees/{employeeId}/{statutoryPayId}/alabaster-recalculate","href":"/api-reference/statutory-pay/alabaster-\u0026-earnings/recalculate-maternity-pay-after-a-pay-rise"},{"title":"Apply an Alabaster adjustment to unpaid lines (not available yet)","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json post /payments/employees/{employeeId}/{statutoryPayId}/alabaster-update-line-items","href":"/api-reference/statutory-pay/alabaster-\u0026-earnings/apply-an-alabaster-adjustment-to-unpaid-lines-not-available-yet"}]},{"group":"Line items \u0026 schedule","pages":[{"title":"List a statutory payment's payslip lines","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /payments/employees/{employeeId}/{statutoryPayId}/line-items","href":"/api-reference/statutory-pay/line-items-\u0026-schedule/list-a-statutory-payments-payslip-lines"},{"title":"Change the amount for one unpaid week","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json patch /payments/employees/{employeeId}/{statutoryPayId}/weeks/{weekNumber}","href":"/api-reference/statutory-pay/line-items-\u0026-schedule/change-the-amount-for-one-unpaid-week"},{"title":"Change the amount on one unpaid payslip line","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json patch /payments/employees/{employeeId}/{statutoryPayId}/line-items/{lineItemSequence}","href":"/api-reference/statutory-pay/line-items-\u0026-schedule/change-the-amount-on-one-unpaid-payslip-line"},{"title":"Download the payment schedule as CSV or PDF","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /payments/employees/{employeeId}/{statutoryPayId}/schedule/export","href":"/api-reference/statutory-pay/line-items-\u0026-schedule/download-the-payment-schedule-as-csv-or-pdf"}]},{"group":"External payments","pages":[{"title":"List payments made outside Flow Payroll","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /payments/employees/{employeeId}/{statutoryPayId}/external-payments","href":"/api-reference/statutory-pay/external-payments/list-payments-made-outside-flow-payroll"},{"title":"Record a payment made outside Flow Payroll","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json post /payments/employees/{employeeId}/{statutoryPayId}/external-payments","href":"/api-reference/statutory-pay/external-payments/record-a-payment-made-outside-flow-payroll"},{"title":"Remove a payment made outside Flow Payroll","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json delete /payments/employees/{employeeId}/{statutoryPayId}/external-payments/{lineItemSequence}","href":"/api-reference/statutory-pay/external-payments/remove-a-payment-made-outside-flow-payroll"}]},{"group":"Attachments","pages":[{"title":"List a statutory payment's supporting documents","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /payments/employees/{employeeId}/{statutoryPayId}/attachments","href":"/api-reference/statutory-pay/attachments/list-a-statutory-payments-supporting-documents"},{"title":"Add supporting documents to a statutory payment","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json post /payments/employees/{employeeId}/{statutoryPayId}/attachments","href":"/api-reference/statutory-pay/attachments/add-supporting-documents-to-a-statutory-payment"},{"title":"Delete a supporting document","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json delete /payments/employees/{employeeId}/{statutoryPayId}/attachments/{attachmentId}","href":"/api-reference/statutory-pay/attachments/delete-a-supporting-document"}]},{"group":"Import \u0026 reconcile","pages":[{"title":"Reconcile unpaid statutory payslip lines with pay runs","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json post /payments/reconcile","href":"/api-reference/statutory-pay/import-\u0026-reconcile/reconcile-unpaid-statutory-payslip-lines-with-pay-runs"},{"title":"Import a statutory payment from a previous provider","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json post /payments/import/{employeeId}","href":"/api-reference/statutory-pay/import-\u0026-reconcile/import-a-statutory-payment-from-a-previous-provider"}]},{"group":"Statutory Rates","pages":[{"title":"List the tax years that have statutory rates","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /statutory-rates/available-years","href":"/api-reference/statutory-pay/statutory-rates/list-the-tax-years-that-have-statutory-rates"},{"title":"Get the statutory rates for a tax year","deprecated":null,"version":null,"openapi":"/api-reference/specs/statutory-pay.json get /statutory-rates/{taxYear}","href":"/api-reference/statutory-pay/statutory-rates/get-the-statutory-rates-for-a-tax-year"}]}]},{"group":"Webhooks","pages":[{"title":"Webhooks overview","sidebarTitle":"Overview","href":"/api-reference/webhooks/overview"},{"title":"Webhooks quickstart","sidebarTitle":"Quickstart","href":"/api-reference/webhooks/quickstart"},{"title":"Manage endpoints","href":"/api-reference/webhooks/manage-endpoints"},{"title":"Verify signatures","href":"/api-reference/webhooks/verify-signatures"},{"title":"Standard Webhooks","href":"/api-reference/webhooks/standard-webhooks"},{"title":"Event types","href":"/api-reference/webhooks/event-types"},{"title":"Delivery and retries","href":"/api-reference/webhooks/delivery-and-retries"},{"title":"Best practices","href":"/api-reference/webhooks/best-practices"},{"title":"Replay and recovery","href":"/api-reference/webhooks/replay-and-recovery"},{"title":"Bureaux and many organisations","href":"/api-reference/webhooks/account-wide-endpoints"},{"title":"Testing webhooks","href":"/api-reference/webhooks/testing"},{"group":"API","pages":[{"group":"Alert contacts","pages":[{"title":"List default alert contacts","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /alert-contacts","href":"/api-reference/webhooks/alert-contacts/list-default-alert-contacts"},{"title":"Add default alert contacts","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json post /alert-contacts","href":"/api-reference/webhooks/alert-contacts/add-default-alert-contacts"},{"title":"Replace default alert contacts","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json put /alert-contacts","href":"/api-reference/webhooks/alert-contacts/replace-default-alert-contacts"},{"title":"Remove default alert contacts","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json delete /alert-contacts","href":"/api-reference/webhooks/alert-contacts/remove-default-alert-contacts"},{"title":"Remove one default alert contact","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json delete /alert-contacts/{email}","href":"/api-reference/webhooks/alert-contacts/remove-one-default-alert-contact"},{"title":"List an endpoint's alert contacts","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /endpoints/{endpointId}/alert-contacts","href":"/api-reference/webhooks/alert-contacts/list-an-endpoints-alert-contacts"},{"title":"Add alert contacts to an endpoint","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json post /endpoints/{endpointId}/alert-contacts","href":"/api-reference/webhooks/alert-contacts/add-alert-contacts-to-an-endpoint"},{"title":"Replace an endpoint's alert contacts","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json put /endpoints/{endpointId}/alert-contacts","href":"/api-reference/webhooks/alert-contacts/replace-an-endpoints-alert-contacts"},{"title":"Remove alert contacts from an endpoint","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json delete /endpoints/{endpointId}/alert-contacts","href":"/api-reference/webhooks/alert-contacts/remove-alert-contacts-from-an-endpoint"},{"title":"Remove one alert contact from an endpoint","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json delete /endpoints/{endpointId}/alert-contacts/{email}","href":"/api-reference/webhooks/alert-contacts/remove-one-alert-contact-from-an-endpoint"}]},{"group":"Delivery log","pages":[{"title":"List deliveries","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /deliveries","href":"/api-reference/webhooks/delivery-log/list-deliveries"},{"title":"Retrieve a delivery","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /deliveries/{deliveryId}","href":"/api-reference/webhooks/delivery-log/retrieve-a-delivery"},{"title":"List delivery attempts","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /deliveries/{deliveryId}/attempts","href":"/api-reference/webhooks/delivery-log/list-delivery-attempts"},{"title":"Resend a delivery","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json post /deliveries/{deliveryId}/replays","href":"/api-reference/webhooks/delivery-log/resend-a-delivery"}]},{"group":"Endpoint subscriptions","pages":[{"title":"List subscribed event types","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /endpoints/{endpointId}/event-types","href":"/api-reference/webhooks/endpoint-subscriptions/list-subscribed-event-types"},{"title":"Subscribe to event types","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json post /endpoints/{endpointId}/event-types","href":"/api-reference/webhooks/endpoint-subscriptions/subscribe-to-event-types"},{"title":"Replace subscribed event types","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json put /endpoints/{endpointId}/event-types","href":"/api-reference/webhooks/endpoint-subscriptions/replace-subscribed-event-types"},{"title":"Unsubscribe from event types","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json delete /endpoints/{endpointId}/event-types","href":"/api-reference/webhooks/endpoint-subscriptions/unsubscribe-from-event-types"},{"title":"Unsubscribe from one event type","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json delete /endpoints/{endpointId}/event-types/{eventType}","href":"/api-reference/webhooks/endpoint-subscriptions/unsubscribe-from-one-event-type"},{"title":"List filtered organisations","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /endpoints/{endpointId}/organisations","href":"/api-reference/webhooks/endpoint-subscriptions/list-filtered-organisations"},{"title":"Add organisations to the filter","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json post /endpoints/{endpointId}/organisations","href":"/api-reference/webhooks/endpoint-subscriptions/add-organisations-to-the-filter"},{"title":"Replace the organisation filter","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json put /endpoints/{endpointId}/organisations","href":"/api-reference/webhooks/endpoint-subscriptions/replace-the-organisation-filter"},{"title":"Remove organisations from the filter","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json delete /endpoints/{endpointId}/organisations","href":"/api-reference/webhooks/endpoint-subscriptions/remove-organisations-from-the-filter"},{"title":"Remove one organisation from the filter","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json delete /endpoints/{endpointId}/organisations/{organisationId}","href":"/api-reference/webhooks/endpoint-subscriptions/remove-one-organisation-from-the-filter"},{"title":"List excluded organisations","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /endpoints/{endpointId}/excluded-organisations","href":"/api-reference/webhooks/endpoint-subscriptions/list-excluded-organisations"},{"title":"Exclude organisations","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json post /endpoints/{endpointId}/excluded-organisations","href":"/api-reference/webhooks/endpoint-subscriptions/exclude-organisations"},{"title":"Replace the excluded organisations","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json put /endpoints/{endpointId}/excluded-organisations","href":"/api-reference/webhooks/endpoint-subscriptions/replace-the-excluded-organisations"},{"title":"Stop excluding organisations","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json delete /endpoints/{endpointId}/excluded-organisations","href":"/api-reference/webhooks/endpoint-subscriptions/stop-excluding-organisations"},{"title":"Stop excluding one organisation","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json delete /endpoints/{endpointId}/excluded-organisations/{organisationId}","href":"/api-reference/webhooks/endpoint-subscriptions/stop-excluding-one-organisation"}]},{"group":"Endpoints","pages":[{"title":"List endpoints","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /endpoints","href":"/api-reference/webhooks/endpoints/list-endpoints"},{"title":"Create an endpoint","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json post /endpoints","href":"/api-reference/webhooks/endpoints/create-an-endpoint"},{"title":"Retrieve an endpoint","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /endpoints/{endpointId}","href":"/api-reference/webhooks/endpoints/retrieve-an-endpoint"},{"title":"Update an endpoint","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json patch /endpoints/{endpointId}","href":"/api-reference/webhooks/endpoints/update-an-endpoint"},{"title":"Delete an endpoint","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json delete /endpoints/{endpointId}","href":"/api-reference/webhooks/endpoints/delete-an-endpoint"},{"title":"Send a test event","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json post /endpoints/{endpointId}/test-deliveries","href":"/api-reference/webhooks/endpoints/send-a-test-event"},{"title":"List signing secrets","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /endpoints/{endpointId}/secrets","href":"/api-reference/webhooks/endpoints/list-signing-secrets"},{"title":"Rotate the signing secret","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json post /endpoints/{endpointId}/secrets","href":"/api-reference/webhooks/endpoints/rotate-the-signing-secret"},{"title":"Retrieve a signing secret","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /endpoints/{endpointId}/secrets/{secretId}","href":"/api-reference/webhooks/endpoints/retrieve-a-signing-secret"},{"title":"Revoke a signing secret","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json delete /endpoints/{endpointId}/secrets/{secretId}","href":"/api-reference/webhooks/endpoints/revoke-a-signing-secret"}]},{"group":"Event types","pages":[{"title":"List event types","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /event-types","href":"/api-reference/webhooks/event-types/list-event-types"}]},{"group":"Events","pages":[{"title":"List events","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /events","href":"/api-reference/webhooks/events/list-events"},{"title":"Retrieve an event","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /events/{eventId}","href":"/api-reference/webhooks/events/retrieve-an-event"}]},{"group":"Replays","pages":[{"title":"List replays","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /replays","href":"/api-reference/webhooks/replays/list-replays"},{"title":"Replay deliveries","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json post /replays","href":"/api-reference/webhooks/replays/replay-deliveries"},{"title":"Retrieve a replay","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json get /replays/{replayId}","href":"/api-reference/webhooks/replays/retrieve-a-replay"},{"title":"Cancel a replay","deprecated":null,"version":null,"openapi":"/api-reference/specs/webhooks.json patch /replays/{replayId}","href":"/api-reference/webhooks/replays/cancel-a-replay"}]}]},{"group":"Events you receive","pages":[{"group":"Billing your clients","pages":[{"title":"invoice.issued","openapi":"api-reference/specs/webhooks.json webhook invoice.issued","href":"/api-reference/webhooks/events/invoice-issued"},{"title":"invoice.emailed","openapi":"api-reference/specs/webhooks.json webhook invoice.emailed","href":"/api-reference/webhooks/events/invoice-emailed"},{"title":"invoice.paid","openapi":"api-reference/specs/webhooks.json webhook invoice.paid","href":"/api-reference/webhooks/events/invoice-paid"},{"title":"invoice.reopened","openapi":"api-reference/specs/webhooks.json webhook invoice.reopened","href":"/api-reference/webhooks/events/invoice-reopened"},{"title":"invoice.voided","openapi":"api-reference/specs/webhooks.json webhook invoice.voided","href":"/api-reference/webhooks/events/invoice-voided"},{"title":"credit_note.authorised","openapi":"api-reference/specs/webhooks.json webhook credit_note.authorised","href":"/api-reference/webhooks/events/credit-note-authorised"},{"title":"credit_note.allocated","openapi":"api-reference/specs/webhooks.json webhook credit_note.allocated","href":"/api-reference/webhooks/events/credit-note-allocated"},{"title":"credit_note.allocation_removed","openapi":"api-reference/specs/webhooks.json webhook credit_note.allocation_removed","href":"/api-reference/webhooks/events/credit-note-allocation-removed"},{"title":"credit_note.voided","openapi":"api-reference/specs/webhooks.json webhook credit_note.voided","href":"/api-reference/webhooks/events/credit-note-voided"},{"title":"billing_client.created","openapi":"api-reference/specs/webhooks.json webhook billing_client.created","href":"/api-reference/webhooks/events/billing-client-created"},{"title":"billing_client.updated","openapi":"api-reference/specs/webhooks.json webhook billing_client.updated","href":"/api-reference/webhooks/events/billing-client-updated"},{"title":"billing_client.archived","openapi":"api-reference/specs/webhooks.json webhook billing_client.archived","href":"/api-reference/webhooks/events/billing-client-archived"},{"title":"billing_client.restored","openapi":"api-reference/specs/webhooks.json webhook billing_client.restored","href":"/api-reference/webhooks/events/billing-client-restored"},{"title":"billing_client.deleted","openapi":"api-reference/specs/webhooks.json webhook billing_client.deleted","href":"/api-reference/webhooks/events/billing-client-deleted"}]},{"group":"Connections","pages":[{"title":"integration_connection.connected","openapi":"api-reference/specs/webhooks.json webhook integration_connection.connected","href":"/api-reference/webhooks/events/integration-connection-connected"},{"title":"integration_connection.disconnected","openapi":"api-reference/specs/webhooks.json webhook integration_connection.disconnected","href":"/api-reference/webhooks/events/integration-connection-disconnected"},{"title":"integration_connection.reauthorisation_required","openapi":"api-reference/specs/webhooks.json webhook integration_connection.reauthorisation_required","href":"/api-reference/webhooks/events/integration-connection-reauthorisation-required"},{"title":"integration_connection.deleted","openapi":"api-reference/specs/webhooks.json webhook integration_connection.deleted","href":"/api-reference/webhooks/events/integration-connection-deleted"}]},{"group":"Court orders","pages":[{"title":"court_order.created","openapi":"api-reference/specs/webhooks.json webhook court_order.created","href":"/api-reference/webhooks/events/court-order-created"},{"title":"court_order.updated","openapi":"api-reference/specs/webhooks.json webhook court_order.updated","href":"/api-reference/webhooks/events/court-order-updated"},{"title":"court_order.deleted","openapi":"api-reference/specs/webhooks.json webhook court_order.deleted","href":"/api-reference/webhooks/events/court-order-deleted"},{"title":"court_order.status_changed","openapi":"api-reference/specs/webhooks.json webhook court_order.status_changed","href":"/api-reference/webhooks/events/court-order-status-changed"},{"title":"court_order.deduction_applied","openapi":"api-reference/specs/webhooks.json webhook court_order.deduction_applied","href":"/api-reference/webhooks/events/court-order-deduction-applied"},{"title":"court_order.deduction_skipped","openapi":"api-reference/specs/webhooks.json webhook court_order.deduction_skipped","href":"/api-reference/webhooks/events/court-order-deduction-skipped"}]},{"group":"Emails we send for you","pages":[{"title":"payslip.emailed","openapi":"api-reference/specs/webhooks.json webhook payslip.emailed","href":"/api-reference/webhooks/events/payslip-emailed"},{"title":"payslip.email_failed","openapi":"api-reference/specs/webhooks.json webhook payslip.email_failed","href":"/api-reference/webhooks/events/payslip-email-failed"},{"title":"payslip.delivered","openapi":"api-reference/specs/webhooks.json webhook payslip.delivered","href":"/api-reference/webhooks/events/payslip-delivered"},{"title":"payslip.bounced","openapi":"api-reference/specs/webhooks.json webhook payslip.bounced","href":"/api-reference/webhooks/events/payslip-bounced"},{"title":"payslip.complained","openapi":"api-reference/specs/webhooks.json webhook payslip.complained","href":"/api-reference/webhooks/events/payslip-complained"},{"title":"p45.emailed","openapi":"api-reference/specs/webhooks.json webhook p45.emailed","href":"/api-reference/webhooks/events/p45-emailed"},{"title":"p45.email_failed","openapi":"api-reference/specs/webhooks.json webhook p45.email_failed","href":"/api-reference/webhooks/events/p45-email-failed"},{"title":"p45.delivered","openapi":"api-reference/specs/webhooks.json webhook p45.delivered","href":"/api-reference/webhooks/events/p45-delivered"},{"title":"p45.bounced","openapi":"api-reference/specs/webhooks.json webhook p45.bounced","href":"/api-reference/webhooks/events/p45-bounced"},{"title":"p45.complained","openapi":"api-reference/specs/webhooks.json webhook p45.complained","href":"/api-reference/webhooks/events/p45-complained"},{"title":"p60.emailed","openapi":"api-reference/specs/webhooks.json webhook p60.emailed","href":"/api-reference/webhooks/events/p60-emailed"},{"title":"p60.email_failed","openapi":"api-reference/specs/webhooks.json webhook p60.email_failed","href":"/api-reference/webhooks/events/p60-email-failed"},{"title":"p60.delivered","openapi":"api-reference/specs/webhooks.json webhook p60.delivered","href":"/api-reference/webhooks/events/p60-delivered"},{"title":"p60.bounced","openapi":"api-reference/specs/webhooks.json webhook p60.bounced","href":"/api-reference/webhooks/events/p60-bounced"},{"title":"p60.complained","openapi":"api-reference/specs/webhooks.json webhook p60.complained","href":"/api-reference/webhooks/events/p60-complained"},{"title":"pension_enrolment_letter.delivered","openapi":"api-reference/specs/webhooks.json webhook pension_enrolment_letter.delivered","href":"/api-reference/webhooks/events/pension-enrolment-letter-delivered"},{"title":"pension_enrolment_letter.bounced","openapi":"api-reference/specs/webhooks.json webhook pension_enrolment_letter.bounced","href":"/api-reference/webhooks/events/pension-enrolment-letter-bounced"},{"title":"pension_enrolment_letter.complained","openapi":"api-reference/specs/webhooks.json webhook pension_enrolment_letter.complained","href":"/api-reference/webhooks/events/pension-enrolment-letter-complained"},{"title":"pension_re_enrolment_letter.delivered","openapi":"api-reference/specs/webhooks.json webhook pension_re_enrolment_letter.delivered","href":"/api-reference/webhooks/events/pension-re-enrolment-letter-delivered"},{"title":"pension_re_enrolment_letter.bounced","openapi":"api-reference/specs/webhooks.json webhook pension_re_enrolment_letter.bounced","href":"/api-reference/webhooks/events/pension-re-enrolment-letter-bounced"},{"title":"pension_re_enrolment_letter.complained","openapi":"api-reference/specs/webhooks.json webhook pension_re_enrolment_letter.complained","href":"/api-reference/webhooks/events/pension-re-enrolment-letter-complained"},{"title":"pension_postponement_notice.delivered","openapi":"api-reference/specs/webhooks.json webhook pension_postponement_notice.delivered","href":"/api-reference/webhooks/events/pension-postponement-notice-delivered"},{"title":"pension_postponement_notice.bounced","openapi":"api-reference/specs/webhooks.json webhook pension_postponement_notice.bounced","href":"/api-reference/webhooks/events/pension-postponement-notice-bounced"},{"title":"pension_postponement_notice.complained","openapi":"api-reference/specs/webhooks.json webhook pension_postponement_notice.complained","href":"/api-reference/webhooks/events/pension-postponement-notice-complained"},{"title":"pension_opt_in_information.delivered","openapi":"api-reference/specs/webhooks.json webhook pension_opt_in_information.delivered","href":"/api-reference/webhooks/events/pension-opt-in-information-delivered"},{"title":"pension_opt_in_information.bounced","openapi":"api-reference/specs/webhooks.json webhook pension_opt_in_information.bounced","href":"/api-reference/webhooks/events/pension-opt-in-information-bounced"},{"title":"pension_opt_in_information.complained","openapi":"api-reference/specs/webhooks.json webhook pension_opt_in_information.complained","href":"/api-reference/webhooks/events/pension-opt-in-information-complained"},{"title":"pension_opt_in_confirmation.delivered","openapi":"api-reference/specs/webhooks.json webhook pension_opt_in_confirmation.delivered","href":"/api-reference/webhooks/events/pension-opt-in-confirmation-delivered"},{"title":"pension_opt_in_confirmation.bounced","openapi":"api-reference/specs/webhooks.json webhook pension_opt_in_confirmation.bounced","href":"/api-reference/webhooks/events/pension-opt-in-confirmation-bounced"},{"title":"pension_opt_in_confirmation.complained","openapi":"api-reference/specs/webhooks.json webhook pension_opt_in_confirmation.complained","href":"/api-reference/webhooks/events/pension-opt-in-confirmation-complained"},{"title":"pension_join_confirmation.delivered","openapi":"api-reference/specs/webhooks.json webhook pension_join_confirmation.delivered","href":"/api-reference/webhooks/events/pension-join-confirmation-delivered"},{"title":"pension_join_confirmation.bounced","openapi":"api-reference/specs/webhooks.json webhook pension_join_confirmation.bounced","href":"/api-reference/webhooks/events/pension-join-confirmation-bounced"},{"title":"pension_join_confirmation.complained","openapi":"api-reference/specs/webhooks.json webhook pension_join_confirmation.complained","href":"/api-reference/webhooks/events/pension-join-confirmation-complained"},{"title":"report.emailed","openapi":"api-reference/specs/webhooks.json webhook report.emailed","href":"/api-reference/webhooks/events/report-emailed"},{"title":"report.email_failed","openapi":"api-reference/specs/webhooks.json webhook report.email_failed","href":"/api-reference/webhooks/events/report-email-failed"},{"title":"report.delivered","openapi":"api-reference/specs/webhooks.json webhook report.delivered","href":"/api-reference/webhooks/events/report-delivered"},{"title":"report.bounced","openapi":"api-reference/specs/webhooks.json webhook report.bounced","href":"/api-reference/webhooks/events/report-bounced"},{"title":"report.complained","openapi":"api-reference/specs/webhooks.json webhook report.complained","href":"/api-reference/webhooks/events/report-complained"}]},{"group":"Employees","pages":[{"title":"employee.created","openapi":"api-reference/specs/webhooks.json webhook employee.created","href":"/api-reference/webhooks/events/employee-created"},{"title":"employee.updated","openapi":"api-reference/specs/webhooks.json webhook employee.updated","href":"/api-reference/webhooks/events/employee-updated"},{"title":"employee.deleted","openapi":"api-reference/specs/webhooks.json webhook employee.deleted","href":"/api-reference/webhooks/events/employee-deleted"},{"title":"employee.tax_code_changed","openapi":"api-reference/specs/webhooks.json webhook employee.tax_code_changed","href":"/api-reference/webhooks/events/employee-tax-code-changed"},{"title":"employee.ni_category_changed","openapi":"api-reference/specs/webhooks.json webhook employee.ni_category_changed","href":"/api-reference/webhooks/events/employee-ni-category-changed"},{"title":"employee.salary_changed","openapi":"api-reference/specs/webhooks.json webhook employee.salary_changed","href":"/api-reference/webhooks/events/employee-salary-changed"},{"title":"employee.student_loan_changed","openapi":"api-reference/specs/webhooks.json webhook employee.student_loan_changed","href":"/api-reference/webhooks/events/employee-student-loan-changed"},{"title":"employee.working_pattern_changed","openapi":"api-reference/specs/webhooks.json webhook employee.working_pattern_changed","href":"/api-reference/webhooks/events/employee-working-pattern-changed"},{"title":"employee.payroll_config_changed","openapi":"api-reference/specs/webhooks.json webhook employee.payroll_config_changed","href":"/api-reference/webhooks/events/employee-payroll-config-changed"}]},{"group":"HMRC notices","pages":[{"title":"hmrc_notice.received","openapi":"api-reference/specs/webhooks.json webhook hmrc_notice.received","href":"/api-reference/webhooks/events/hmrc-notice-received"},{"title":"hmrc_notice.employee_matched","openapi":"api-reference/specs/webhooks.json webhook hmrc_notice.employee_matched","href":"/api-reference/webhooks/events/hmrc-notice-employee-matched"},{"title":"hmrc_notice.applied","openapi":"api-reference/specs/webhooks.json webhook hmrc_notice.applied","href":"/api-reference/webhooks/events/hmrc-notice-applied"},{"title":"hmrc_notice.dismissed","openapi":"api-reference/specs/webhooks.json webhook hmrc_notice.dismissed","href":"/api-reference/webhooks/events/hmrc-notice-dismissed"},{"title":"hmrc_notice.reopened","openapi":"api-reference/specs/webhooks.json webhook hmrc_notice.reopened","href":"/api-reference/webhooks/events/hmrc-notice-reopened"},{"title":"hmrc_notice_job.completed","openapi":"api-reference/specs/webhooks.json webhook hmrc_notice_job.completed","href":"/api-reference/webhooks/events/hmrc-notice-job-completed"},{"title":"hmrc_notice_job.failed","openapi":"api-reference/specs/webhooks.json webhook hmrc_notice_job.failed","href":"/api-reference/webhooks/events/hmrc-notice-job-failed"},{"title":"hmrc_notice_job.cancelled","openapi":"api-reference/specs/webhooks.json webhook hmrc_notice_job.cancelled","href":"/api-reference/webhooks/events/hmrc-notice-job-cancelled"}]},{"group":"HMRC RTI","pages":[{"title":"rti.fps_accepted","openapi":"api-reference/specs/webhooks.json webhook rti.fps_accepted","href":"/api-reference/webhooks/events/rti-fps-accepted"},{"title":"rti.fps_rejected","openapi":"api-reference/specs/webhooks.json webhook rti.fps_rejected","href":"/api-reference/webhooks/events/rti-fps-rejected"},{"title":"rti.eps_accepted","openapi":"api-reference/specs/webhooks.json webhook rti.eps_accepted","href":"/api-reference/webhooks/events/rti-eps-accepted"},{"title":"rti.eps_rejected","openapi":"api-reference/specs/webhooks.json webhook rti.eps_rejected","href":"/api-reference/webhooks/events/rti-eps-rejected"}]},{"group":"Holiday and leave","pages":[{"title":"holiday_leave.recorded","openapi":"api-reference/specs/webhooks.json webhook holiday_leave.recorded","href":"/api-reference/webhooks/events/holiday-leave-recorded"},{"title":"holiday_leave.updated","openapi":"api-reference/specs/webhooks.json webhook holiday_leave.updated","href":"/api-reference/webhooks/events/holiday-leave-updated"},{"title":"holiday_leave.deleted","openapi":"api-reference/specs/webhooks.json webhook holiday_leave.deleted","href":"/api-reference/webhooks/events/holiday-leave-deleted"},{"title":"holiday_accrual.recorded","openapi":"api-reference/specs/webhooks.json webhook holiday_accrual.recorded","href":"/api-reference/webhooks/events/holiday-accrual-recorded"},{"title":"holiday_rolled_up_pay.recorded","openapi":"api-reference/specs/webhooks.json webhook holiday_rolled_up_pay.recorded","href":"/api-reference/webhooks/events/holiday-rolled-up-pay-recorded"},{"title":"holiday_opening_balance.recorded","openapi":"api-reference/specs/webhooks.json webhook holiday_opening_balance.recorded","href":"/api-reference/webhooks/events/holiday-opening-balance-recorded"},{"title":"holiday_opening_balance.updated","openapi":"api-reference/specs/webhooks.json webhook holiday_opening_balance.updated","href":"/api-reference/webhooks/events/holiday-opening-balance-updated"},{"title":"holiday_opening_balance.deleted","openapi":"api-reference/specs/webhooks.json webhook holiday_opening_balance.deleted","href":"/api-reference/webhooks/events/holiday-opening-balance-deleted"},{"title":"holiday_employee_config.created","openapi":"api-reference/specs/webhooks.json webhook holiday_employee_config.created","href":"/api-reference/webhooks/events/holiday-employee-config-created"},{"title":"holiday_employee_config.updated","openapi":"api-reference/specs/webhooks.json webhook holiday_employee_config.updated","href":"/api-reference/webhooks/events/holiday-employee-config-updated"},{"title":"holiday_employee_config.deleted","openapi":"api-reference/specs/webhooks.json webhook holiday_employee_config.deleted","href":"/api-reference/webhooks/events/holiday-employee-config-deleted"},{"title":"holiday_organisation_config.created","openapi":"api-reference/specs/webhooks.json webhook holiday_organisation_config.created","href":"/api-reference/webhooks/events/holiday-organisation-config-created"},{"title":"holiday_organisation_config.updated","openapi":"api-reference/specs/webhooks.json webhook holiday_organisation_config.updated","href":"/api-reference/webhooks/events/holiday-organisation-config-updated"},{"title":"holiday_organisation_config.deleted","openapi":"api-reference/specs/webhooks.json webhook holiday_organisation_config.deleted","href":"/api-reference/webhooks/events/holiday-organisation-config-deleted"}]},{"group":"Journals","pages":[{"title":"journal.finalised","openapi":"api-reference/specs/webhooks.json webhook journal.finalised","href":"/api-reference/webhooks/events/journal-finalised"},{"title":"journal.reissued","openapi":"api-reference/specs/webhooks.json webhook journal.reissued","href":"/api-reference/webhooks/events/journal-reissued"},{"title":"journal.reissue_failed","openapi":"api-reference/specs/webhooks.json webhook journal.reissue_failed","href":"/api-reference/webhooks/events/journal-reissue-failed"},{"title":"journal.posted","openapi":"api-reference/specs/webhooks.json webhook journal.posted","href":"/api-reference/webhooks/events/journal-posted"},{"title":"journal.post_failed","openapi":"api-reference/specs/webhooks.json webhook journal.post_failed","href":"/api-reference/webhooks/events/journal-post-failed"},{"title":"journal.voided","openapi":"api-reference/specs/webhooks.json webhook journal.voided","href":"/api-reference/webhooks/events/journal-voided"},{"title":"journal.void_failed","openapi":"api-reference/specs/webhooks.json webhook journal.void_failed","href":"/api-reference/webhooks/events/journal-void-failed"}]},{"group":"Leavers","pages":[{"title":"employee.leaver.recorded","openapi":"api-reference/specs/webhooks.json webhook employee.leaver.recorded","href":"/api-reference/webhooks/events/employee-leaver-recorded"},{"title":"employee.leaver.reverted","openapi":"api-reference/specs/webhooks.json webhook employee.leaver.reverted","href":"/api-reference/webhooks/events/employee-leaver-reverted"}]},{"group":"P45s and P60s","pages":[{"title":"p45.issued","openapi":"api-reference/specs/webhooks.json webhook p45.issued","href":"/api-reference/webhooks/events/p45-issued"},{"title":"p45.replaced","openapi":"api-reference/specs/webhooks.json webhook p45.replaced","href":"/api-reference/webhooks/events/p45-replaced"},{"title":"p45.revoked","openapi":"api-reference/specs/webhooks.json webhook p45.revoked","href":"/api-reference/webhooks/events/p45-revoked"},{"title":"p60.issued","openapi":"api-reference/specs/webhooks.json webhook p60.issued","href":"/api-reference/webhooks/events/p60-issued"},{"title":"p60.replaced","openapi":"api-reference/specs/webhooks.json webhook p60.replaced","href":"/api-reference/webhooks/events/p60-replaced"},{"title":"p60.revoked","openapi":"api-reference/specs/webhooks.json webhook p60.revoked","href":"/api-reference/webhooks/events/p60-revoked"},{"title":"p_form_bulk_send.completed","openapi":"api-reference/specs/webhooks.json webhook p_form_bulk_send.completed","href":"/api-reference/webhooks/events/p-form-bulk-send-completed"},{"title":"p_form_bulk_send.failed","openapi":"api-reference/specs/webhooks.json webhook p_form_bulk_send.failed","href":"/api-reference/webhooks/events/p-form-bulk-send-failed"}]},{"group":"Pay run line items","pages":[{"title":"payroll_line_item.created","openapi":"api-reference/specs/webhooks.json webhook payroll_line_item.created","href":"/api-reference/webhooks/events/payroll-line-item-created"},{"title":"payroll_line_item.updated","openapi":"api-reference/specs/webhooks.json webhook payroll_line_item.updated","href":"/api-reference/webhooks/events/payroll-line-item-updated"},{"title":"payroll_line_item.deleted","openapi":"api-reference/specs/webhooks.json webhook payroll_line_item.deleted","href":"/api-reference/webhooks/events/payroll-line-item-deleted"}]},{"group":"Pay runs","pages":[{"title":"payroll_run.opened","openapi":"api-reference/specs/webhooks.json webhook payroll_run.opened","href":"/api-reference/webhooks/events/payroll-run-opened"},{"title":"payroll_run.locked","openapi":"api-reference/specs/webhooks.json webhook payroll_run.locked","href":"/api-reference/webhooks/events/payroll-run-locked"},{"title":"payroll_run.completed","openapi":"api-reference/specs/webhooks.json webhook payroll_run.completed","href":"/api-reference/webhooks/events/payroll-run-completed"},{"title":"payroll_run.reopened","openapi":"api-reference/specs/webhooks.json webhook payroll_run.reopened","href":"/api-reference/webhooks/events/payroll-run-reopened"},{"title":"tax_year.finalised","openapi":"api-reference/specs/webhooks.json webhook tax_year.finalised","href":"/api-reference/webhooks/events/tax-year-finalised"}]},{"group":"Payments","pages":[{"title":"payment_file.generated","openapi":"api-reference/specs/webhooks.json webhook payment_file.generated","href":"/api-reference/webhooks/events/payment-file-generated"},{"title":"payment_file.failed","openapi":"api-reference/specs/webhooks.json webhook payment_file.failed","href":"/api-reference/webhooks/events/payment-file-failed"},{"title":"payment_settings.created","openapi":"api-reference/specs/webhooks.json webhook payment_settings.created","href":"/api-reference/webhooks/events/payment-settings-created"},{"title":"payment_settings.updated","openapi":"api-reference/specs/webhooks.json webhook payment_settings.updated","href":"/api-reference/webhooks/events/payment-settings-updated"},{"title":"payment_settings.deleted","openapi":"api-reference/specs/webhooks.json webhook payment_settings.deleted","href":"/api-reference/webhooks/events/payment-settings-deleted"}]},{"group":"Payslips","pages":[{"title":"payslip.created","openapi":"api-reference/specs/webhooks.json webhook payslip.created","href":"/api-reference/webhooks/events/payslip-created"},{"title":"payslip.updated","openapi":"api-reference/specs/webhooks.json webhook payslip.updated","href":"/api-reference/webhooks/events/payslip-updated"},{"title":"payslip.finalised","openapi":"api-reference/specs/webhooks.json webhook payslip.finalised","href":"/api-reference/webhooks/events/payslip-finalised"},{"title":"payslip.reopened","openapi":"api-reference/specs/webhooks.json webhook payslip.reopened","href":"/api-reference/webhooks/events/payslip-reopened"},{"title":"payslip.deleted","openapi":"api-reference/specs/webhooks.json webhook payslip.deleted","href":"/api-reference/webhooks/events/payslip-deleted"}]},{"group":"Pensions","pages":[{"title":"pension.employee_assessed","openapi":"api-reference/specs/webhooks.json webhook pension.employee_assessed","href":"/api-reference/webhooks/events/pension-employee-assessed"},{"title":"pension.employee_enrolled","openapi":"api-reference/specs/webhooks.json webhook pension.employee_enrolled","href":"/api-reference/webhooks/events/pension-employee-enrolled"},{"title":"pension.employee_enrolment_reversed","openapi":"api-reference/specs/webhooks.json webhook pension.employee_enrolment_reversed","href":"/api-reference/webhooks/events/pension-employee-enrolment-reversed"},{"title":"pension.employee_group_changed","openapi":"api-reference/specs/webhooks.json webhook pension.employee_group_changed","href":"/api-reference/webhooks/events/pension-employee-group-changed"},{"title":"pension.employee_opted_out","openapi":"api-reference/specs/webhooks.json webhook pension.employee_opted_out","href":"/api-reference/webhooks/events/pension-employee-opted-out"},{"title":"pension.employee_ceased","openapi":"api-reference/specs/webhooks.json webhook pension.employee_ceased","href":"/api-reference/webhooks/events/pension-employee-ceased"},{"title":"pension.opt_out_refund_decided","openapi":"api-reference/specs/webhooks.json webhook pension.opt_out_refund_decided","href":"/api-reference/webhooks/events/pension-opt-out-refund-decided"},{"title":"pension.postponement_applied","openapi":"api-reference/specs/webhooks.json webhook pension.postponement_applied","href":"/api-reference/webhooks/events/pension-postponement-applied"},{"title":"pension.enrolment_letter_sent","openapi":"api-reference/specs/webhooks.json webhook pension.enrolment_letter_sent","href":"/api-reference/webhooks/events/pension-enrolment-letter-sent"},{"title":"pension.enrolment_letter_failed","openapi":"api-reference/specs/webhooks.json webhook pension.enrolment_letter_failed","href":"/api-reference/webhooks/events/pension-enrolment-letter-failed"},{"title":"pension.re_enrolment_letter_sent","openapi":"api-reference/specs/webhooks.json webhook pension.re_enrolment_letter_sent","href":"/api-reference/webhooks/events/pension-re-enrolment-letter-sent"},{"title":"pension.re_enrolment_letter_failed","openapi":"api-reference/specs/webhooks.json webhook pension.re_enrolment_letter_failed","href":"/api-reference/webhooks/events/pension-re-enrolment-letter-failed"},{"title":"pension.postponement_notice_sent","openapi":"api-reference/specs/webhooks.json webhook pension.postponement_notice_sent","href":"/api-reference/webhooks/events/pension-postponement-notice-sent"},{"title":"pension.postponement_notice_failed","openapi":"api-reference/specs/webhooks.json webhook pension.postponement_notice_failed","href":"/api-reference/webhooks/events/pension-postponement-notice-failed"},{"title":"pension.opt_in_information_sent","openapi":"api-reference/specs/webhooks.json webhook pension.opt_in_information_sent","href":"/api-reference/webhooks/events/pension-opt-in-information-sent"},{"title":"pension.opt_in_information_failed","openapi":"api-reference/specs/webhooks.json webhook pension.opt_in_information_failed","href":"/api-reference/webhooks/events/pension-opt-in-information-failed"},{"title":"pension.opt_in_confirmation_sent","openapi":"api-reference/specs/webhooks.json webhook pension.opt_in_confirmation_sent","href":"/api-reference/webhooks/events/pension-opt-in-confirmation-sent"},{"title":"pension.opt_in_confirmation_failed","openapi":"api-reference/specs/webhooks.json webhook pension.opt_in_confirmation_failed","href":"/api-reference/webhooks/events/pension-opt-in-confirmation-failed"},{"title":"pension.join_confirmation_sent","openapi":"api-reference/specs/webhooks.json webhook pension.join_confirmation_sent","href":"/api-reference/webhooks/events/pension-join-confirmation-sent"},{"title":"pension.join_confirmation_failed","openapi":"api-reference/specs/webhooks.json webhook pension.join_confirmation_failed","href":"/api-reference/webhooks/events/pension-join-confirmation-failed"},{"title":"pension.employee_exemption_recorded","openapi":"api-reference/specs/webhooks.json webhook pension.employee_exemption_recorded","href":"/api-reference/webhooks/events/pension-employee-exemption-recorded"},{"title":"pension.employee_exemption_removed","openapi":"api-reference/specs/webhooks.json webhook pension.employee_exemption_removed","href":"/api-reference/webhooks/events/pension-employee-exemption-removed"},{"title":"pension.contributions_submitted","openapi":"api-reference/specs/webhooks.json webhook pension.contributions_submitted","href":"/api-reference/webhooks/events/pension-contributions-submitted"},{"title":"pension.contributions_accepted","openapi":"api-reference/specs/webhooks.json webhook pension.contributions_accepted","href":"/api-reference/webhooks/events/pension-contributions-accepted"},{"title":"pension.contribution_submission_failed","openapi":"api-reference/specs/webhooks.json webhook pension.contribution_submission_failed","href":"/api-reference/webhooks/events/pension-contribution-submission-failed"},{"title":"pension.member_enrolments_submitted","openapi":"api-reference/specs/webhooks.json webhook pension.member_enrolments_submitted","href":"/api-reference/webhooks/events/pension-member-enrolments-submitted"},{"title":"pension.member_enrolments_accepted","openapi":"api-reference/specs/webhooks.json webhook pension.member_enrolments_accepted","href":"/api-reference/webhooks/events/pension-member-enrolments-accepted"},{"title":"pension.member_enrolment_submission_failed","openapi":"api-reference/specs/webhooks.json webhook pension.member_enrolment_submission_failed","href":"/api-reference/webhooks/events/pension-member-enrolment-submission-failed"},{"title":"pension.contribution_payment_approved","openapi":"api-reference/specs/webhooks.json webhook pension.contribution_payment_approved","href":"/api-reference/webhooks/events/pension-contribution-payment-approved"},{"title":"pension.contribution_payment_confirmed","openapi":"api-reference/specs/webhooks.json webhook pension.contribution_payment_confirmed","href":"/api-reference/webhooks/events/pension-contribution-payment-confirmed"},{"title":"pension.contribution_payment_approval_failed","openapi":"api-reference/specs/webhooks.json webhook pension.contribution_payment_approval_failed","href":"/api-reference/webhooks/events/pension-contribution-payment-approval-failed"}]},{"group":"Recurring deductions and payments","pages":[{"title":"recurring_line_item.created","openapi":"api-reference/specs/webhooks.json webhook recurring_line_item.created","href":"/api-reference/webhooks/events/recurring-line-item-created"},{"title":"recurring_line_item.updated","openapi":"api-reference/specs/webhooks.json webhook recurring_line_item.updated","href":"/api-reference/webhooks/events/recurring-line-item-updated"},{"title":"recurring_line_item.suspended","openapi":"api-reference/specs/webhooks.json webhook recurring_line_item.suspended","href":"/api-reference/webhooks/events/recurring-line-item-suspended"},{"title":"recurring_line_item.resumed","openapi":"api-reference/specs/webhooks.json webhook recurring_line_item.resumed","href":"/api-reference/webhooks/events/recurring-line-item-resumed"},{"title":"recurring_line_item.cancelled","openapi":"api-reference/specs/webhooks.json webhook recurring_line_item.cancelled","href":"/api-reference/webhooks/events/recurring-line-item-cancelled"},{"title":"recurring_line_item.completed","openapi":"api-reference/specs/webhooks.json webhook recurring_line_item.completed","href":"/api-reference/webhooks/events/recurring-line-item-completed"},{"title":"recurring_line_item.deleted","openapi":"api-reference/specs/webhooks.json webhook recurring_line_item.deleted","href":"/api-reference/webhooks/events/recurring-line-item-deleted"},{"title":"recurring_line_item.period_paid","openapi":"api-reference/specs/webhooks.json webhook recurring_line_item.period_paid","href":"/api-reference/webhooks/events/recurring-line-item-period-paid"},{"title":"recurring_line_item.period_part_paid","openapi":"api-reference/specs/webhooks.json webhook recurring_line_item.period_part_paid","href":"/api-reference/webhooks/events/recurring-line-item-period-part-paid"},{"title":"recurring_line_item.period_skipped","openapi":"api-reference/specs/webhooks.json webhook recurring_line_item.period_skipped","href":"/api-reference/webhooks/events/recurring-line-item-period-skipped"},{"title":"recurring_line_item.period_amount_changed","openapi":"api-reference/specs/webhooks.json webhook recurring_line_item.period_amount_changed","href":"/api-reference/webhooks/events/recurring-line-item-period-amount-changed"}]},{"group":"Reports","pages":[{"title":"report_export.completed","openapi":"api-reference/specs/webhooks.json webhook report_export.completed","href":"/api-reference/webhooks/events/report-export-completed"},{"title":"report_export.failed","openapi":"api-reference/specs/webhooks.json webhook report_export.failed","href":"/api-reference/webhooks/events/report-export-failed"}]},{"group":"Salary settings","pages":[{"title":"salary_organisation_config.created","openapi":"api-reference/specs/webhooks.json webhook salary_organisation_config.created","href":"/api-reference/webhooks/events/salary-organisation-config-created"},{"title":"salary_organisation_config.updated","openapi":"api-reference/specs/webhooks.json webhook salary_organisation_config.updated","href":"/api-reference/webhooks/events/salary-organisation-config-updated"},{"title":"salary_organisation_config.deleted","openapi":"api-reference/specs/webhooks.json webhook salary_organisation_config.deleted","href":"/api-reference/webhooks/events/salary-organisation-config-deleted"},{"title":"salary_employee_config.created","openapi":"api-reference/specs/webhooks.json webhook salary_employee_config.created","href":"/api-reference/webhooks/events/salary-employee-config-created"},{"title":"salary_employee_config.updated","openapi":"api-reference/specs/webhooks.json webhook salary_employee_config.updated","href":"/api-reference/webhooks/events/salary-employee-config-updated"},{"title":"salary_employee_config.deleted","openapi":"api-reference/specs/webhooks.json webhook salary_employee_config.deleted","href":"/api-reference/webhooks/events/salary-employee-config-deleted"},{"title":"salary_organisation_statutory_leave_policy.created","openapi":"api-reference/specs/webhooks.json webhook salary_organisation_statutory_leave_policy.created","href":"/api-reference/webhooks/events/salary-organisation-statutory-leave-policy-created"},{"title":"salary_organisation_statutory_leave_policy.updated","openapi":"api-reference/specs/webhooks.json webhook salary_organisation_statutory_leave_policy.updated","href":"/api-reference/webhooks/events/salary-organisation-statutory-leave-policy-updated"},{"title":"salary_organisation_statutory_leave_policy.deleted","openapi":"api-reference/specs/webhooks.json webhook salary_organisation_statutory_leave_policy.deleted","href":"/api-reference/webhooks/events/salary-organisation-statutory-leave-policy-deleted"},{"title":"salary_employee_statutory_leave_policy.created","openapi":"api-reference/specs/webhooks.json webhook salary_employee_statutory_leave_policy.created","href":"/api-reference/webhooks/events/salary-employee-statutory-leave-policy-created"},{"title":"salary_employee_statutory_leave_policy.updated","openapi":"api-reference/specs/webhooks.json webhook salary_employee_statutory_leave_policy.updated","href":"/api-reference/webhooks/events/salary-employee-statutory-leave-policy-updated"},{"title":"salary_employee_statutory_leave_policy.deleted","openapi":"api-reference/specs/webhooks.json webhook salary_employee_statutory_leave_policy.deleted","href":"/api-reference/webhooks/events/salary-employee-statutory-leave-policy-deleted"}]},{"group":"Statutory pay","pages":[{"title":"statutory_pay.created","openapi":"api-reference/specs/webhooks.json webhook statutory_pay.created","href":"/api-reference/webhooks/events/statutory-pay-created"},{"title":"statutory_pay.updated","openapi":"api-reference/specs/webhooks.json webhook statutory_pay.updated","href":"/api-reference/webhooks/events/statutory-pay-updated"},{"title":"statutory_pay.recalculated","openapi":"api-reference/specs/webhooks.json webhook statutory_pay.recalculated","href":"/api-reference/webhooks/events/statutory-pay-recalculated"},{"title":"statutory_pay.completed","openapi":"api-reference/specs/webhooks.json webhook statutory_pay.completed","href":"/api-reference/webhooks/events/statutory-pay-completed"},{"title":"statutory_pay.deleted","openapi":"api-reference/specs/webhooks.json webhook statutory_pay.deleted","href":"/api-reference/webhooks/events/statutory-pay-deleted"}]},{"group":"Webhook health","pages":[{"title":"webhook.endpoint.failing","openapi":"api-reference/specs/webhooks.json webhook webhook.endpoint.failing","href":"/api-reference/webhooks/events/webhook-endpoint-failing"},{"title":"webhook.endpoint.disabled","openapi":"api-reference/specs/webhooks.json webhook webhook.endpoint.disabled","href":"/api-reference/webhooks/events/webhook-endpoint-disabled"},{"title":"webhook.delivery.exhausted","openapi":"api-reference/specs/webhooks.json webhook webhook.delivery.exhausted","href":"/api-reference/webhooks/events/webhook-delivery-exhausted"}]}]}]}]},{"tab":"Releases","pages":[{"title":"Releases","href":"/releases/whats-new"}]}]},"basePath":"","title":"Create a new employee - Flow Payroll","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-5zXlUUV6.js","snippetPresets-D3m2eL-0.js","utils-u8TSWPiZ.js","style-to-object-BY3JEAdk.js","utils-D3TDKJCH.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Om0Y4Ijd.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Cyl7LOol.js","_Uint8Array-BuOv0f5_.js","isObject-FP1Yky1u.js","Page-DdEXfHxg.js","api-description-markdown-DDasI_tu.js","DynamicMarkdown-DoPsKgYC.js","CodeSnippet-CuGpPhIN.js","use-playground-group-access-DYZiRN3l.js","SectionHeading-CKObOTcn.js","ApiExamples-BnqLE2Kf.js","usePlaygroundInputsStore-DhQKVH9n.js","shallow-BOCfJNQU.js","isEqual-BrbSa25D.js","CodeSnippets-DUGBlB-S.js","MethodPill-D_DqPuJw.js","getPastedJson-DWfa7n0M.js","Check2Icon-CEquKboc.js","axios-CsQoIw0U.js","Markdown-CIbHOmUi.js","AssistantPageLink-C0oSAXp0.js","dist-Bp7AI3M8.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}