# Payroll

> Build a pay run from approved hours for any period, approve it, export the lines to your payroll provider, and see margin by site.

The Payroll screen turns approved hours into a pay run: one gross amount for each person for the dates you choose, worked out from your [pay rates and rules](https://staffedly.com/docs/pay/pay-rates-and-rules). The same screen holds your client [invoices](https://staffedly.com/docs/pay/invoices).

![The Payroll and invoices screen with the period dates, the list of pay runs and the list of invoices](https://staffedly.com/docs/img/pay/payroll.webp)

Staffedly works out gross pay. It does not calculate payroll tax or deductions, produce pay slips, or move money. You export the lines and pay people through your own payroll provider.

## Who can open it

Admins and finance. Schedulers and credentialing teammates cannot see pay runs, invoices, or the money tabs in Reports. For one teammate, an admin can turn the **Payroll and invoices** access area on or off; see [Team and access](https://staffedly.com/docs/run/team-and-access).

## Which plans include it

Pay runs and invoices are in Pro, Agency and Enterprise, and in the free trial. They are not in Core: on Core, drafting a pay run or a new invoice is refused. See [Billing and plans](https://staffedly.com/docs/run/billing-and-plans).

## Build a pay run

1. Approve the hours for the period on the Time screen. Only **Approved** entries are paid; see [Time clock and hours](https://staffedly.com/docs/pay/time-clock).
2. Open **Payroll**.
3. Set the first and last day of the period in the two date boxes. They start on the last 14 days.
4. Click **Run payroll**.

A note confirms the draft, for example "Run drafted: 34.2h · $4783.05 gross", and the run appears in the list as **pending_approval**.

![A drafted pay run at the top of the list, waiting for Approve and lock](https://staffedly.com/docs/img/pay/payroll-run-drafted.webp)

A period is counted in calendar days at each site, in that site's time zone. An entry belongs to the day it started.

## Why a run is refused

**Approved hours have no pay rate.** If any approved entry in the period has no pay rule that had started by the day it was worked, no run is drafted. The message names each person, their hours and the site.

![The message that names every person whose approved hours have no pay rate](https://staffedly.com/docs/img/pay/payroll-refused-no-rate.webp)

Staffedly refuses the whole run so that nobody is left out of pay without you noticing. Add a pay rate in Settings → Rates that starts on or before those shifts, then click **Run payroll** again.

**No approved hours in this period.** Nothing in the dates you chose has been approved. Approve the entries on the Time screen first.

## Approve the run and mark it paid

1. Check the hours and gross on the row. To see every line first, use Reports as described below.
2. Click **Approve & lock**. The status becomes **approved** with the date.
3. After you have paid people through your payroll provider, click **Mark paid**.

Approving fixes the run's figures. Each person then sees their own amount and lines under **My pay** in the [Provider portal](https://staffedly.com/docs/portals/provider-portal). **Mark paid** changes the status only.

## See the lines and export them

The Payroll screen shows each run's total hours and gross. To see the lines:

1. Open **Reports** and click the **Payroll** tab.
2. Set the same dates at the top right.
3. Click **CSV** to download the lines.

![The Payroll tab in Reports with one line for each person, site and pay type](https://staffedly.com/docs/img/pay/reports-payroll.webp)

Each line has a type:

| Type | What it is |
| --- | --- |
| **REG** | Regular hours at the pay rate |
| **CALL** | Call hours with the minimum applied, and a separate line for the activation amount |
| **OT** | The extra for weekly overtime |
| **NIGHT**, **WEEKEND**, **HOLIDAY** | A differential, with the rule that produced it |
| **LATE_CANCEL** | Pay owed for a shift the site cancelled late |
| **REFERRAL** | A referral bonus you put on payroll from Recruit. No hours. It stays on the report until a pay run that holds it is approved, which marks it paid |

The CSV has the columns `employee`, `external_id`, `facility`, `pay_type`, `hours`, `rate`, `amount`, `rule_id` and `detail`. Import it into your payroll system with its own column mapping. There is no direct connection to a payroll provider.

The Reports tab is worked out fresh from today's hours and rates each time you open it. An approved run keeps the figures it was approved with. If hours or rates change afterwards, the two can differ.

## Download the bank file

When you collect pay details during [onboarding](https://staffedly.com/docs/people/onboarding), each approved or paid run has a **Bank file** button. It downloads a CSV with one row for each person paid in that period:

![An approved pay run with the Bank file button](https://staffedly.com/docs/img/pay/payroll-bank-file.webp)

`employee`, `external_id`, `amount`, `name_on_account`, `routing_number`, `account_number`, `account_type` and `note`.

- The account is the one that pays the person today. A changed account that is still on hold is never used; the note says a change is waiting.
- A person with no confirmed account has empty bank columns and the note **No pay account on file**.
- The amount is worked out fresh from today's approved hours and rates for the run's dates, like the Payroll tab in Reports.

This is the only place full account numbers leave Staffedly. Only people who run payroll can download it, every download is recorded in the audit trail with how many accounts it held, and it is not available over the API. Staffedly does not send money: you upload the file to your bank or payroll provider. The button appears once at least one person has a confirmed pay account. Collecting pay details is in Pro, Agency and Enterprise, and in the trial.

## See margin by site

Open **Reports** and click the **Margin** tab. For each site it shows hours, what you bill, what you pay, and the margin in dollars and as a percentage.

![The Margin tab in Reports with bill, pay and margin for each site](https://staffedly.com/docs/img/pay/reports-margin.webp)

The **Bill card** column reads **bill** when every hour at the site had a bill rate. It reads **pay fallback** when some hours had none and were counted at the pay rate. In the picture, Lakeside Regional had call hours and no bill-side call rate. The margin report leaves out weekly overtime.

## Questions

### Can I change or delete a pay run?

No. A run cannot be edited or deleted. If a draft is wrong, fix the hours or rates and draft another, then approve the right one and leave the other unapproved.

### Does Staffedly stop me running the same period twice?

No. You can draft more than one run for the same or overlapping dates. Check the list before you run.

### Can I run weekly, twice a month or monthly?

Yes. The period is whatever dates you set. The **Schedule** column reads "biweekly" on every run built on this screen, whatever the dates are. A run drafted through Copilot or the API carries the schedule it was asked for.

### Is any amount estimated or produced by AI?

No. Every line is hours times a rate rule, by fixed arithmetic.

### Can Copilot run payroll?

It can tell you what a run for a period would contain and draft the run, and no more. Ask "What would payroll be for November 16 to 22?" for the figures, or "Draft a pay run for November 16 to 22". The draft waits in [Approvals](https://staffedly.com/docs/run/approvals) first; once approved there it appears on this screen as **pending approval**, the same as a run you built with **Run payroll**. Approving the run, marking it paid and the bank file are done here by a person. The figures Copilot quotes are the ones this screen calculates. See [Copilot](https://staffedly.com/docs/run/copilot).

### Can a scheduler see what people are paid?

No. Pay runs, invoices and the Invoice, Payroll and Margin tabs in Reports are shown to admins and finance only.

### Is there an API?

Yes. Pay runs and the payroll report can be read through the API on plans that include it; see [Developers](https://staffedly.com/docs/developers/overview).
