An employment record represents a period of time for which a person is employed by an Employer. All payroll data (payslip data, absence data etc.) will belong to an Employment record
Employments Response - Array
Bad Request
Unauthorized - Authorization Required
Unprocessable Entity
General Error
{- "data": [
- {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03",
- "type": "employments",
- "attributes": {
- "EmploymentId": "Z0012",
- "startDate": "2021-02-16",
- "leavingDate": "2022-06-16",
- "continuousServiceStartDate": "2022-06-16",
- "employmentStatus": null,
- "IR35OffPayrollWorker": false
}, - "relationships": {
- "employer": {
- "links": {
}, - "data": {
- "type": "employers",
- "id": "69049d80-0887-fd71-2197-75605a257ce6"
}
}, - "person": {
- "links": {
}, - "data": {
- "type": "people",
- "id": "1dec1ded-116f-b026-4cd0-f3d8b771baed"
}
}, - "location": {
- "links": {
}, - "data": {
- "type": "locations",
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
}, - "payroll": {
- "links": {
}, - "data": {
- "type": "payrolls",
- "id": "7fcba8e6-397f-4be2-a9f0-8d53fcf48ab5"
}
}
},
}
], - "included": [
- {
- "type": "people",
- "attributes": {
- "firstName": "John",
- "surname": "Doe"
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
]
}
Create an Employment
Employment to be added
object |
Employment Response
Bad Request
Unauthorized - Authorization Required
Unprocessable Entity
General Error
{- "data": {
- "type": "employments",
- "attributes": {
- "EmploymentId": "Z0012",
- "startDate": "2021-02-16",
- "leavingDate": "2022-06-16",
- "continuousServiceStartDate": "2022-06-16",
- "employmentStatus": null,
- "IR35OffPayrollWorker": false
}, - "relationships": {
- "0": null,
- "employer": {
- "data": {
- "id": "1",
- "type": "employers"
}
}, - "person": {
- "data": {
- "id": "4b30b724-26e1-4fcb-90f0-92936523133c",
- "type": "people"
}
}, - "location": {
- "data": {
- "id": "4d07d27b-a4ea-4e40-b65f-c4fd73507bf5",
- "type": "locations"
}
}, - "payroll": {
- "data": {
- "id": "7fcba8e6-397f-4be2-a9f0-8d53fcf48ab5",
- "type": "payrolls"
}
}
}
}
}
{- "data": {
- "0": {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "type": "employment",
- "attributes": {
- "EmploymentId": "Z0012",
- "startDate": "2021-02-16",
- "leavingDate": "2022-06-16",
- "continuousServiceStartDate": "2022-06-16",
- "employmentStatus": null,
- "IR35OffPayrollWorker": false
}, - "relationships": {
- "employer": {
- "links": {
}, - "data": {
- "type": "employers",
- "id": "69049d80-0887-fd71-2197-75605a257ce6"
}
}, - "person": {
- "links": {
}, - "data": {
- "type": "people",
- "id": "1dec1ded-116f-b026-4cd0-f3d8b771baed"
}
}, - "location": {
- "links": {
}, - "data": {
- "type": "locations",
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
}, - "payroll": {
- "links": {
}, - "data": {
- "type": "payrolls",
- "id": "7fcba8e6-397f-4be2-a9f0-8d53fcf48ab5"
}
}
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "included": [
- {
- "type": "people",
- "attributes": {
- "firstName": "John",
- "surname": "Doe"
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
]
}
Get Employment by ID
Employment Response
Bad Request
Unauthorized - Authorization Required
Not Found
Unprocessable Entity
General Error
{- "data": {
- "0": {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "type": "employment",
- "attributes": {
- "EmploymentId": "Z0012",
- "startDate": "2021-02-16",
- "leavingDate": "2022-06-16",
- "continuousServiceStartDate": "2022-06-16",
- "employmentStatus": null,
- "IR35OffPayrollWorker": false
}, - "relationships": {
- "employer": {
- "links": {
}, - "data": {
- "type": "employers",
- "id": "69049d80-0887-fd71-2197-75605a257ce6"
}
}, - "person": {
- "links": {
}, - "data": {
- "type": "people",
- "id": "1dec1ded-116f-b026-4cd0-f3d8b771baed"
}
}, - "location": {
- "links": {
}, - "data": {
- "type": "locations",
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
}, - "payroll": {
- "links": {
}, - "data": {
- "type": "payrolls",
- "id": "7fcba8e6-397f-4be2-a9f0-8d53fcf48ab5"
}
}
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "included": [
- {
- "type": "people",
- "attributes": {
- "firstName": "John",
- "surname": "Doe"
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
]
}
Update an existing employment by ID (partial update)
Employment Response
Bad Request
Unauthorized - Authorization Required
Not Found
Unprocessable Entity
General Error
{- "data": {
- "type": "employments",
- "attributes": {
- "EmploymentId": "Z0012",
- "startDate": "2021-02-16",
- "leavingDate": "2022-06-16",
- "continuousServiceStartDate": "2022-06-16",
- "employmentStatus": null,
- "IR35OffPayrollWorker": false
}, - "relationships": {
- "0": null,
- "employer": {
- "data": {
- "id": "1",
- "type": "employers"
}
}, - "person": {
- "data": {
- "id": "4b30b724-26e1-4fcb-90f0-92936523133c",
- "type": "people"
}
}, - "location": {
- "data": {
- "id": "4d07d27b-a4ea-4e40-b65f-c4fd73507bf5",
- "type": "locations"
}
}, - "payroll": {
- "data": {
- "id": "7fcba8e6-397f-4be2-a9f0-8d53fcf48ab5",
- "type": "payrolls"
}
}
}, - "id": "906264f1-2dff-4f72-a10b-59918cf738d7"
}
}
{- "data": {
- "0": {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "type": "employment",
- "attributes": {
- "EmploymentId": "Z0012",
- "startDate": "2021-02-16",
- "leavingDate": "2022-06-16",
- "continuousServiceStartDate": "2022-06-16",
- "employmentStatus": null,
- "IR35OffPayrollWorker": false
}, - "relationships": {
- "employer": {
- "links": {
}, - "data": {
- "type": "employers",
- "id": "69049d80-0887-fd71-2197-75605a257ce6"
}
}, - "person": {
- "links": {
}, - "data": {
- "type": "people",
- "id": "1dec1ded-116f-b026-4cd0-f3d8b771baed"
}
}, - "location": {
- "links": {
}, - "data": {
- "type": "locations",
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
}, - "payroll": {
- "links": {
}, - "data": {
- "type": "payrolls",
- "id": "7fcba8e6-397f-4be2-a9f0-8d53fcf48ab5"
}
}
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "included": [
- {
- "type": "people",
- "attributes": {
- "firstName": "John",
- "surname": "Doe"
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
]
}
Get Employment by customer provided employment ID
Employment Response
Bad Request
Unauthorized - Authorization Required
Not Found
Unprocessable Entity
General Error
{- "data": {
- "0": {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "type": "employment",
- "attributes": {
- "EmploymentId": "Z0012",
- "startDate": "2021-02-16",
- "leavingDate": "2022-06-16",
- "continuousServiceStartDate": "2022-06-16",
- "employmentStatus": null,
- "IR35OffPayrollWorker": false
}, - "relationships": {
- "employer": {
- "links": {
}, - "data": {
- "type": "employers",
- "id": "69049d80-0887-fd71-2197-75605a257ce6"
}
}, - "person": {
- "links": {
}, - "data": {
- "type": "people",
- "id": "1dec1ded-116f-b026-4cd0-f3d8b771baed"
}
}, - "location": {
- "links": {
}, - "data": {
- "type": "locations",
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
}, - "payroll": {
- "links": {
}, - "data": {
- "type": "payrolls",
- "id": "7fcba8e6-397f-4be2-a9f0-8d53fcf48ab5"
}
}
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "included": [
- {
- "type": "people",
- "attributes": {
- "firstName": "John",
- "surname": "Doe"
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
]
}