---
title: "Add Pay Run"
method: POST
path: "/api/finance/bills/payroll/runs"
tags: ["finance"]
---

# Add Pay Run

`POST /api/finance/bills/payroll/runs`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/finance/bills/payroll/runs`
- Auth: none declared

Record a pay run: a date, a total, and which people and periods it paid.
Refused (422) unless they add up to the total, every period is real and has
fallen due, and nothing is paid beyond what a period still owes.

## Request body

- PayRunIn
  - `paid_on` string, date, required
  - `total` union, required
    - string
    - number
    - integer
  - `items` PayRunItemIn[], required
    - `bill_id` string, uuid, required
    - `period_due_on` string, date, required
    - `amount` union, required
      - string
      - number
      - integer
  - `reference` string, nullable
  - `note` string, nullable
  - `transaction_id` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
