Skip to content
Docs

Get a payroll

GET/v1/payrolls/{payrollId}

One payroll, with its next pay date.

Path

payrollIdstringrequired

Its id, like pyr_51ka7cQ0ZtLm.

Answer

idstring

Starts "pyr_".

companyIdstring
namestring
frequencystring

One of weekly, fortnightly, semi-monthly, monthly. Read any other value as "other".

statusstring

Paused and archived payrolls don't run.

One of active, paused, archived. Read any other value as "other".

nextPayDatedate or null

The open run's pay date, or the next one the schedule gives. Null for a payroll not set up or not running.

employeesinteger

How many people are on it.

Refusals

401unauthorizedNo key, a key Paie doesn't know, or one that was revoked.
403forbiddenThe key can't do this (its areas), or the workspace isn't in the API beta.
403plan_requiredThe workspace's plan has no API, or, for a change, none that changes things (Scale).
404not_foundNot there, or not a company this key reaches. The two read the same.
429rate_limitedOver the key's calls a minute, or the workspace's calls a day: wait the seconds Retry-After says.
500server_errorSomething went wrong at Paie. Send support the requestId.
Terminal window
curl https://api.paieday.com/v1/payrolls/pyr_51ka7cQ0ZtLm \
-H "Authorization: Bearer $PAIE_API_KEY"
Answer
{
"id": "pyr_51ka7cQ0ZtLm",
"companyId": "cmp_Xq2b9Lr0aKsT",
"name": "Blue Mahoe Trading Ltd",
"frequency": "weekly",
"status": "active",
"nextPayDate": "2026-10-25",
"employees": 38
}