> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kombo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Payroll

> Read pay groups, pay runs and payslips, and write deductions into your customers' payroll tools through one API.

> [!WARNING]
>
> **Closed beta:** The Payroll API is still in testing and can change. Reach out
> to your Kombo contact or [support](mailto:support@kombo.dev) to get access.

The Payroll API connects you to the payroll side of your customers' HR stack. You read what payroll paid out, and you write deductions that payroll takes from employees' salaries. Like every Kombo API, you build it once and it works across all supported payroll tools.

## What you can do

> [card] [Write deductions](https://docs.kombo.dev/payroll/guides/write-deductions.md)
>
> Send one-time deductions, like a monthly benefit contribution, straight into
> the next pay run. Follow each one until payroll processed it.

> [card] [Read pay groups](https://docs.kombo.dev/payroll/v1/get-pay-groups.md)
>
> See which employees are paid on which pay schedule, for example monthly
> salaried or biweekly hourly.

> [card] [Read pay runs](https://docs.kombo.dev/payroll/v1/get-pay-runs.md)
>
> See the pay runs per legal entity, with their pay periods and totals.

> [card] [Read payslips](https://docs.kombo.dev/payroll/v1/get-payslips.md)
>
> Get every employee's payslips with totals and line items: earnings,
> deductions, and contributions.

## How payroll data fits together

Payroll builds on the employees and employments you already read through the [HRIS API](https://docs.kombo.dev/hris/introduction.md):

* An **employment** belongs to a **pay group**.
* The pay group's pay schedule creates **pay runs**.
* Each pay run pays out one **payslip** per employee.
* A **one-time deduction** is for one employment, goes into one of its pay runs, and later shows up as a line on the payslip.

A deduction always points at an **employment**, not an employee. One person can have more than one employment, for example in two legal entities, and the employment makes sure the deduction lands on the right payslip. You never send a pay group or a pay run: Kombo takes them from the employment.

## Words we use

| Term | Meaning |
| - | - |
| Pay group | A group of employees paid on the same pay schedule, for example "Monthly salaried" or "Biweekly hourly". |
| Pay run | One payroll cycle for a pay group, covering one pay period. For deductions, it has a cutoff. |
| Cutoff | The last day a pay run still takes deductions. Kombo writes each deduction before the cutoff of its pay run. |
| Payslip | What one employee was paid in one pay run, with all its line items. |
| Deduction type | A key you define once in the Kombo dashboard, for example `gym_membership`. It's the same for all your customers. |
| Deduction code | The matching code in your customer's payroll tool, for example `GYM01`. You map deduction types to deduction codes per connection in the Kombo dashboard. |

## API reference

| Endpoint | What it does |
| - | - |
| [POST /payroll/one-time-deductions/schedule](https://docs.kombo.dev/payroll/v1/post-one-time-deductions-schedule.md) | Schedule 1 to 1,000 one-time deductions |
| [GET /payroll/one-time-deductions](https://docs.kombo.dev/payroll/v1/get-one-time-deductions.md) | List your deductions and their status |
| [POST /payroll/one-time-deductions/cancel](https://docs.kombo.dev/payroll/v1/post-one-time-deductions-cancel.md) | Cancel deductions that are still queued or failed |
| [GET /payroll/pay-groups](https://docs.kombo.dev/payroll/v1/get-pay-groups.md) | Pay groups and the employees in them |
| [GET /payroll/pay-runs](https://docs.kombo.dev/payroll/v1/get-pay-runs.md) | Pay runs with periods and totals |
| [GET /payroll/payslips](https://docs.kombo.dev/payroll/v1/get-payslips.md) | Payslips with totals and line items |

> [!NOTE]
>
> Until the Payroll API leaves the beta, pay groups, pay runs and payslips are
> served under `/hris`, for example `GET /hris/payslips`. The response is the
> same.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.