# Staffology Payroll

> Add employees, record leave and notes, and read employers, pay schedules and pay runs in Staffology Payroll.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/staffology-payroll

## Actions

### Create department

Add a department to an employer.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Code (`code`, text, required): A short code for the department, unique within the employer.
- Name (`title`, text, required): The department's name.
- Colour (`color`, text): A colour for it, as six hex digits such as ff0000.
- Accounting code (`accountingCode`, text): The code to use for it in journals.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {
    "accountingCode": "4000",
    "code": "OPS",
    "color": "ff0000",
    "employeeCount": 0,
    "hasJournalOverrides": false,
    "title": "Operations"
  }
}
```

### Create employee

Add an employee to an employer, paid on the employer's default pay options.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- First name (`first_name`, text, required): Their first name.
- Last name (`last_name`, text, required): Their last name.
- Date of birth (`date_of_birth`, date, required): Their date of birth.
- Gender (`gender`, text, required): Their gender as HMRC records it. One of: `Male`, `Female`.
- Marital status (`marital_status`, text, required): Their marital status. One of: `Single`, `Married`, `Divorced`, `Widowed`, `CivilPartnership` (Civil partnership), `Unknown` (Not known).
- Payroll code (`payroll_code`, text, required): Their payroll code. It must be unique within the employer.
- Start date (`start_date`, date, required): The day they start.
- Starter declaration (`starter_declaration`, text, required): Which statement on their starter checklist applies. One of: `A` (A: first job since 6 April, no benefits or pension), `B` (B: only job now, but had another or benefits since 6 April), `C` (C: has another job or a pension), `Unknown` (Not known).
- Title (`title`, text): Their title, such as Ms.
- Middle name (`middle_name`, text): Their middle name.
- Email (`email`, text): Their email address.
- Email payslips (`email_payslip`, true/false): Turn on to email them their payslip when a pay run is finalised.
- Mobile (`mobile`, text): Their mobile number.
- National Insurance number (`ni_number`, text): Their National Insurance number.
- Address line 1 (`address_line1`, text): The first line of their address.
- Address line 2 (`address_line2`, text): The second line of their address.
- Address line 3 (`address_line3`, text): The third line of their address.
- Postcode (`post_code`, text): Their postcode.
- Country (`country`, text): The country they live in. One of: `England`, `Scotland`, `Wales`, `NorthernIreland` (Northern Ireland), `Uk`, `OutsideUk` (Outside the UK).
- Job title (`job_title`, text): The job title of their main role.
- Tags (`tags`, list): Tags to put on the employee.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {
    "employmentDetails": {
      "department": {
        "code": "OPS",
        "title": "Operations"
      },
      "isApprentice": false,
      "jobTitle": "Detective",
      "leaverDetails": {
        "hasLeft": false,
        "leaveDate": "2026-03-31",
        "p45Sent": false
      },
      "onHold": false,
      "payrollCode": "1",
      "starterDetails": {
        "startDate": "2018-04-01",
        "starterDeclaration": "A"
      }
    },
    "id": "4b8bceb8-d3b1-46b1-9d04-6c0dfca51926",
    "personalDetails": {
      "address": {
        "country": "England",
        "line1": "221B Baker Street",
        "line2": "Marylebone",
        "line3": "London",
        "line4": "Greater London",
        "line5": "UK",
        "postCode": "NW1 6XE"
      },
      "dateOfBirth": "1976-07-19",
      "email": "benedict@example.com",
      "firstName": "Benedict",
      "gender": "Male",
      "lastName": "Cumberbatch",
      "maritalStatus": "Married",
      "middleName": "Timothy",
      "mobile": "07700 900000",
      "niNumber": "AB123456C",
      "telephone": "020 7946 0000",
      "title": "Mr"
    },
    "sourceSystemId": "HR-1001",
    "status": "Current",
    "tags": [
      "London"
    ]
  }
}
```

### Create leave

Record leave, such as holiday or sickness, for an employee.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Employee (`employeeId`, text, required): The employee. Pick one, or use an ID from List employees.
- Type (`type`, text, required): What kind of leave it is. One of: `Holiday`, `Sick`, `Unauthorised` (Unauthorised absence), `AuthorisedUnpaid` (Authorised unpaid), `Maternity`, `Paternity`, `Adoption`, `SharedParental` (Shared parental), `SharedParentalAdoption` (Shared parental (adoption)), `PaternityAdoption` (Paternity (adoption)), and 4 more.
- First day (`from`, date, required): The first day of leave.
- Last day (`to`, date, required): The last day of leave.
- Pay (`pay`, text): How the leave is paid. One of: `PayAsUsual` (Pay as usual), `DoNotPay` (Don't pay), `StatutoryPay` (Statutory pay), `OccupationalPolicy` (Occupational policy), `Custom`, `AverageDays` (Average days).
- Notes (`notes`, text): Any comments about the leave.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {}
}
```

### Create note

Add a note to an employee's record.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Employee (`employeeId`, text, required): The employee. Pick one, or use an ID from List employees.
- Note (`noteText`, text, required): What the note says.
- Date (`noteDate`, date): The date of the note.
- Type (`type`, text): What kind of note it is. One of: `General`, `NewStarterStatement` (New starter statement), `RtwProof` (Right to work proof), `P45`.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {}
}
```

### Delete department

Delete one of an employer's departments.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Department code (`code`, text, required): The code of the department to delete.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {}
}
```

### Delete employee

Delete an employee. Staffology refuses if they have been paid.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Employee (`id`, text, required): The employee to delete.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {}
}
```

### Delete leave

Delete leave recorded for an employee.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Employee (`employeeId`, text, required): The employee. Pick one, or use an ID from List employees.
- Leave ID (`id`, text, required): The leave to delete, from List leave.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {}
}
```

### Delete note

Delete a note from an employee's record.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Employee (`employeeId`, text, required): The employee. Pick one, or use an ID from List employees.
- Note ID (`id`, text, required): The note to delete, from List notes.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {}
}
```

### Find employee by payroll code

Find the employee with a given payroll code.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Payroll code (`code`, text, required): The payroll code to look for.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {
    "id": "4b8bceb8-d3b1-46b1-9d04-6c0dfca51926",
    "name": "Miss Annie Apiola",
    "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e/employees/4b8bceb8-d3b1-46b1-9d04-6c0dfca51926"
  }
}
```

### Get employee

Get an employee's details.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Employee (`id`, text, required): The employee. Pick one, or use an ID from List employees.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {
    "employmentDetails": {
      "department": {
        "code": "OPS",
        "title": "Operations"
      },
      "isApprentice": false,
      "jobTitle": "Detective",
      "leaverDetails": {
        "hasLeft": false,
        "leaveDate": "2026-03-31",
        "p45Sent": false
      },
      "onHold": false,
      "payrollCode": "1",
      "starterDetails": {
        "startDate": "2018-04-01",
        "starterDeclaration": "A"
      }
    },
    "id": "4b8bceb8-d3b1-46b1-9d04-6c0dfca51926",
    "personalDetails": {
      "address": {
        "country": "England",
        "line1": "221B Baker Street",
        "line2": "Marylebone",
        "line3": "London",
        "line4": "Greater London",
        "line5": "UK",
        "postCode": "NW1 6XE"
      },
      "dateOfBirth": "1976-07-19",
      "email": "benedict@example.com",
      "firstName": "Benedict",
      "gender": "Male",
      "lastName": "Cumberbatch",
      "maritalStatus": "Married",
      "middleName": "Timothy",
      "mobile": "07700 900000",
      "niNumber": "AB123456C",
      "telephone": "020 7946 0000",
      "title": "Mr"
    },
    "sourceSystemId": "HR-1001",
    "status": "Current",
    "tags": [
      "London"
    ]
  }
}
```

### Get employer

Get an employer's details.

**Inputs**

- Employer (`id`, text, required): The employer. Pick one, or use an ID from List employers.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {
    "address": {
      "country": "England",
      "line1": "221B Baker Street",
      "line2": "Marylebone",
      "line3": "London",
      "line4": "Greater London",
      "line5": "UK",
      "postCode": "NW1 6XE"
    },
    "alternativeId": "ACME",
    "archived": false,
    "crn": "01234567",
    "currentYear": "Year2026",
    "displayName": "Acme Ltd",
    "employeeCount": 25,
    "id": "6dd1459a-9230-4903-aa7d-6f1cb27acd5e",
    "name": "Acme Ltd",
    "startYear": "Year2018",
    "subcontractorCount": 0
  }
}
```

### Get pay run

Get one pay run, with its dates, state, totals and employees.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Tax year (`taxYear`, text, required): The UK tax year, which starts on 6 April. One of: `Year2017` (2017 to 2018), `Year2018` (2018 to 2019), `Year2019` (2019 to 2020), `Year2020` (2020 to 2021), `Year2021` (2021 to 2022), `Year2022` (2022 to 2023), `Year2023` (2023 to 2024), `Year2024` (2024 to 2025), `Year2025` (2025 to 2026), `Year2026` (2026 to 2027).
- Pay frequency (`payPeriod`, text, required): How often the employees on the pay schedule are paid. One of: `Monthly`, `FourWeekly` (Four-weekly), `Fortnightly`, `Weekly`, `Daily`, `Quarterly`, `HalfYearly` (Half-yearly), `Annual`, `Custom`.
- Period (`periodNumber`, number, required): The tax month or week number of the pay run. At least 1.
- Schedule number (`ordinal`, number): Which pay schedule of this frequency, when there is more than one. Leave empty for the first. At least 1.
- Search (`searchTerm`, text): Only employees whose name or payroll code contains this.
- Department code (`departmentCode`, text): Only employees in the department with this code.
- Page (`pageNum`, number): Which page to read, counting from 0. Leave empty with Page size to get everything. At least 0.
- Page size (`pageSize`, number): How many records a page holds. At least 1.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {
    "dateClosed": "2026-11-28T15:00:00",
    "employeeCount": 25,
    "endDate": "2026-11-30",
    "entries": [
      {
        "id": "1c2d3e4f-5a6b-7c8d-9e0f-a1b2c3d4e5f6",
        "name": "Miss Annie Apiola",
        "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e/payrun/Year2026/Monthly/8/1c2d3e4f-5a6b-7c8d-9e0f-a1b2c3d4e5f6"
      }
    ],
    "isClosed": false,
    "ordinal": 1,
    "payPeriod": "Monthly",
    "paymentDate": "2026-11-30",
    "period": 8,
    "startDate": "2026-11-01",
    "state": "Open",
    "taxMonth": 8,
    "taxYear": "Year2026",
    "totals": {
      "basicPay": 1000.0,
      "employeeNi": 40.0,
      "employerNi": 60.0,
      "gross": 1000.0,
      "netPay": 860.0,
      "takeHomePay": 860.0,
      "tax": 100.0
    }
  }
}
```

### Get pay run entry

Get one employee's pay for a pay run, with totals and year-to-date totals.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Tax year (`taxYear`, text, required): The UK tax year, which starts on 6 April. One of: `Year2017` (2017 to 2018), `Year2018` (2018 to 2019), `Year2019` (2019 to 2020), `Year2020` (2020 to 2021), `Year2021` (2021 to 2022), `Year2022` (2022 to 2023), `Year2023` (2023 to 2024), `Year2024` (2024 to 2025), `Year2025` (2025 to 2026), `Year2026` (2026 to 2027).
- Pay frequency (`payPeriod`, text, required): How often the employees on the pay schedule are paid. One of: `Monthly`, `FourWeekly` (Four-weekly), `Fortnightly`, `Weekly`, `Daily`, `Quarterly`, `HalfYearly` (Half-yearly), `Annual`, `Custom`.
- Period (`periodNumber`, number, required): The tax month or week number of the pay run. At least 1.
- Entry ID (`id`, text, required): The pay run entry, from Get pay run.
- Schedule number (`ordinal`, number): Which pay schedule of this frequency, when there is more than one. Leave empty for the first. At least 1.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {
    "employee": {
      "id": "4b8bceb8-d3b1-46b1-9d04-6c0dfca51926",
      "name": "Miss Annie Apiola",
      "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e/employees/4b8bceb8-d3b1-46b1-9d04-6c0dfca51926"
    },
    "endDate": "2026-11-30",
    "id": "1c2d3e4f-5a6b-7c8d-9e0f-a1b2c3d4e5f6",
    "isClosed": false,
    "isNewStarter": false,
    "note": "Includes overtime",
    "payPeriod": "Monthly",
    "paymentDate": "2026-11-30",
    "period": 8,
    "startDate": "2026-11-01",
    "state": "Open",
    "taxYear": "Year2026",
    "totals": {
      "basicPay": 1000.0,
      "employeeNi": 40.0,
      "employerNi": 60.0,
      "gross": 1000.0,
      "netPay": 860.0,
      "takeHomePay": 860.0,
      "tax": 100.0
    },
    "totalsYtd": {
      "basicPay": 8000.0,
      "employeeNi": 320.0,
      "employerNi": 480.0,
      "gross": 8000.0,
      "netPay": 6880.0,
      "takeHomePay": 6880.0,
      "tax": 800.0
    }
  }
}
```

### List departments

List an employer's departments.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.

**Outputs**

- `data` (list): The response from Staffology Payroll.

**Example output**

```json
{
  "data": [
    {
      "id": "0f1e2d3c-4b5a-6978-8796-a5b4c3d2e1f0",
      "name": "Operations",
      "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e/departments/OPS"
    }
  ]
}
```

### List employee's pay run entries

List an employee's pay run entries for a tax year.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Employee (`id`, text, required): The employee. Pick one, or use an ID from List employees.
- Tax year (`taxYear`, text, required): The UK tax year, which starts on 6 April. One of: `Year2017` (2017 to 2018), `Year2018` (2018 to 2019), `Year2019` (2019 to 2020), `Year2020` (2020 to 2021), `Year2021` (2021 to 2022), `Year2022` (2022 to 2023), `Year2023` (2023 to 2024), `Year2024` (2024 to 2025), `Year2025` (2025 to 2026), `Year2026` (2026 to 2027).

**Outputs**

- `data` (list): The response from Staffology Payroll.

**Example output**

```json
{
  "data": [
    {
      "id": "1c2d3e4f-5a6b-7c8d-9e0f-a1b2c3d4e5f6",
      "name": "Month 8",
      "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e/payrun/Year2026/Monthly/8/1c2d3e4f-5a6b-7c8d-9e0f-a1b2c3d4e5f6"
    }
  ]
}
```

### List employees

List an employer's employees, with each one's payroll code and basic pay.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Status (`status`, text): Only current, former or upcoming employees. One of: `Current`, `Former`, `Upcoming`.
- Department code (`deptCode`, text): Only employees in the department with this code.
- Sort by (`sortBy`, text): How to order the employees. One of: `PayrollCode` (Payroll code), `Employee` (Name), `Department`, `PaySchedule` (Pay schedule).
- Descending (`sortDescending`, true/false): Turn on to sort the other way.
- Page (`pageNum`, number): Which page to read, counting from 0. Leave empty with Page size to get everything. At least 0.
- Page size (`pageSize`, number): How many records a page holds. At least 1.

**Outputs**

- `data` (list): The response from Staffology Payroll.

**Example output**

```json
{
  "data": [
    {
      "id": "4b8bceb8-d3b1-46b1-9d04-6c0dfca51926",
      "metadata": {
        "basicPay": 1000.0,
        "payrollCode": "101",
        "period": 12
      },
      "name": "Miss Annie Apiola",
      "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e/employees/4b8bceb8-d3b1-46b1-9d04-6c0dfca51926"
    }
  ]
}
```

### List employers

List the employers your Staffology user can see.

**Inputs**

- Search (`searchTerm`, text): Only employers whose name, customer number, alternative ID or ID contains this.
- Which employers (`employerListType`, text): Which list to read. Leave empty for the usual list. One of: `Owned` (Owned by you), `FromOthers` (Shared with you), `Support` (Support access), `Archived`.
- Sort by (`sortBy`, text): How to order the employers. One of: `Name`, `ProcessorName` (Payroll processor), `Crn` (Company number), `AlternativeId` (Alternative ID), `EmployeeCount` (Number of employees), `RTICount` (RTI submissions), `PensionStatus` (Pension status), `AutoPilot`.
- Descending (`sortDescending`, true/false): Turn on to sort the other way.
- Employer group (`employerGroupCode`, text): Only employers in the employer group with this code.
- Page (`pageNum`, number): Which page to read, counting from 0. Leave empty with Page size to get everything. At least 0.
- Page size (`pageSize`, number): How many records a page holds. At least 1.

**Outputs**

- `data` (list): The response from Staffology Payroll.

**Example output**

```json
{
  "data": [
    {
      "id": "6dd1459a-9230-4903-aa7d-6f1cb27acd5e",
      "name": "Acme Ltd",
      "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e"
    }
  ]
}
```

### List leave

List the leave recorded for an employee.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Employee (`employeeId`, text, required): The employee. Pick one, or use an ID from List employees.

**Outputs**

- `data` (list): The response from Staffology Payroll.

**Example output**

```json
{
  "data": [
    {
      "id": "c3d4e5f6-a7b8-4c9d-8e0f-1a2b3c4d5e6f",
      "name": "Holiday 21/12/2026 - 22/12/2026",
      "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e/employees/4b8bceb8-d3b1-46b1-9d04-6c0dfca51926/leave/c3d4e5f6-a7b8-4c9d-8e0f-1a2b3c4d5e6f"
    }
  ]
}
```

### List leavers

List an employer's employees who have a leaving date.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Only unsent P45s (`onlyUnsentP45s`, true/false): Turn on to list only leavers whose P45 hasn't been sent.

**Outputs**

- `data` (list): The response from Staffology Payroll.

**Example output**

```json
{
  "data": [
    {
      "id": "4b8bceb8-d3b1-46b1-9d04-6c0dfca51926",
      "metadata": {
        "basicPay": 1000.0,
        "payrollCode": "101",
        "period": 12
      },
      "name": "Miss Annie Apiola",
      "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e/employees/4b8bceb8-d3b1-46b1-9d04-6c0dfca51926"
    }
  ]
}
```

### List notes

List the notes on an employee's record.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Employee (`employeeId`, text, required): The employee. Pick one, or use an ID from List employees.

**Outputs**

- `data` (list): The response from Staffology Payroll.

**Example output**

```json
{
  "data": [
    {
      "id": "b2a5f3c4-1d2e-4f50-8a9b-0c1d2e3f4a5b",
      "name": "Called about bank details.",
      "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e/employees/4b8bceb8-d3b1-46b1-9d04-6c0dfca51926/notes/b2a5f3c4-1d2e-4f50-8a9b-0c1d2e3f4a5b"
    }
  ]
}
```

### List pay runs

List an employer's pay runs for a tax year and pay frequency.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Tax year (`taxYear`, text, required): The UK tax year, which starts on 6 April. One of: `Year2017` (2017 to 2018), `Year2018` (2018 to 2019), `Year2019` (2019 to 2020), `Year2020` (2020 to 2021), `Year2021` (2021 to 2022), `Year2022` (2022 to 2023), `Year2023` (2023 to 2024), `Year2024` (2024 to 2025), `Year2025` (2025 to 2026), `Year2026` (2026 to 2027).
- Pay frequency (`payPeriod`, text, required): How often the employees on the pay schedule are paid. One of: `Monthly`, `FourWeekly` (Four-weekly), `Fortnightly`, `Weekly`, `Daily`, `Quarterly`, `HalfYearly` (Half-yearly), `Annual`, `Custom`.
- Schedule number (`ordinal`, number): Which pay schedule of this frequency, when there is more than one. Leave empty for the first. At least 1.

**Outputs**

- `data` (list): The response from Staffology Payroll.

**Example output**

```json
{
  "data": [
    {
      "id": "9a8b7c6d-5e4f-3a2b-1c0d-ef0123456789",
      "name": "Month 8",
      "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e/payrun/Year2026/Monthly/8"
    }
  ]
}
```

### List pay schedules

List an employer's pay schedules for a tax year, with their last and open pay runs.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Tax year (`taxYear`, text, required): The UK tax year, which starts on 6 April. One of: `Year2017` (2017 to 2018), `Year2018` (2018 to 2019), `Year2019` (2019 to 2020), `Year2020` (2020 to 2021), `Year2021` (2021 to 2022), `Year2022` (2022 to 2023), `Year2023` (2023 to 2024), `Year2024` (2024 to 2025), `Year2025` (2025 to 2026), `Year2026` (2026 to 2027).

**Outputs**

- `data` (list): The response from Staffology Payroll.

**Example output**

```json
{
  "data": [
    {
      "employeeCount": 25,
      "firstPaymentDate": "2026-04-30",
      "firstPeriodEndDate": "2026-04-30",
      "hasOpenPayRunPeriod": true,
      "isConfigured": true,
      "isYearCompleted": false,
      "lastPeriodEndDate": "2026-11-30",
      "lastPeriodNumber": 8,
      "name": "Monthly",
      "ordinal": 1,
      "payPeriod": "Monthly",
      "taxYear": "Year2026"
    }
  ]
}
```

### Search employees

Find an employer's employees by name or payroll code.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Search for (`query`, text, required): A name or payroll code, at least 3 characters.
- Leave out CIS subcontractors (`exludeCisSubContactors`, true/false): Turn on to search only employees who aren't CIS subcontractors.

**Outputs**

- `data` (list): The response from Staffology Payroll.

**Example output**

```json
{
  "data": [
    {
      "id": "4b8bceb8-d3b1-46b1-9d04-6c0dfca51926",
      "metadata": {
        "basicPay": 1000.0,
        "payrollCode": "101",
        "period": 12
      },
      "name": "Miss Annie Apiola",
      "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e/employees/4b8bceb8-d3b1-46b1-9d04-6c0dfca51926"
    }
  ]
}
```

### Update note

Replace a note on an employee's record.

**Inputs**

- Employer (`employerId`, text, required): The employer. Pick one, or use an ID from List employers.
- Employee (`employeeId`, text, required): The employee. Pick one, or use an ID from List employees.
- Note ID (`id`, text, required): The note to change, from List notes.
- Note (`noteText`, text, required): What the note says.
- Date (`noteDate`, date): The date of the note.
- Type (`type`, text): What kind of note it is. One of: `General`, `NewStarterStatement` (New starter statement), `RtwProof` (Right to work proof), `P45`.

**Outputs**

- `data` (object): The response from Staffology Payroll.

**Example output**

```json
{
  "data": {
    "createdBy": "payroll@example.com",
    "documentCount": 0,
    "employee": {
      "id": "4b8bceb8-d3b1-46b1-9d04-6c0dfca51926",
      "name": "Miss Annie Apiola",
      "url": "https://api.staffology.co.uk/employers/6dd1459a-9230-4903-aa7d-6f1cb27acd5e/employees/4b8bceb8-d3b1-46b1-9d04-6c0dfca51926"
    },
    "id": "b2a5f3c4-1d2e-4f50-8a9b-0c1d2e3f4a5b",
    "noteDate": "2026-11-30",
    "noteText": "Called about bank details.",
    "type": "General",
    "updatedBy": "payroll@example.com"
  }
}
```
