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
401 | unauthorized | No key, a key Paie doesn't know, or one that was revoked. |
403 | forbidden | The key can't do this (its areas), or the workspace isn't in the API beta. |
403 | plan_required | The workspace's plan has no API, or, for a change, none that changes things (Scale). |
404 | not_found | Not there, or not a company this key reaches. The two read the same. |
429 | rate_limited | Over the key's calls a minute, or the workspace's calls a day: wait the seconds Retry-After says. |
500 | server_error | Something went wrong at Paie. Send support the requestId. |
curl https://api.paieday.com/v1/payrolls/pyr_51ka7cQ0ZtLm \ -H "Authorization: Bearer $PAIE_API_KEY"const res = await fetch("https://api.paieday.com/v1/payrolls/pyr_51ka7cQ0ZtLm", { headers: { Authorization: `Bearer ${process.env.PAIE_API_KEY}` },});const body = await res.json();import os, requests
res = requests.get( "https://api.paieday.com/v1/payrolls/pyr_51ka7cQ0ZtLm", headers={"Authorization": f"Bearer {os.environ['PAIE_API_KEY']}"},)body = res.json(){ "id": "pyr_51ka7cQ0ZtLm", "companyId": "cmp_Xq2b9Lr0aKsT", "name": "Blue Mahoe Trading Ltd", "frequency": "weekly", "status": "active", "nextPayDate": "2026-10-25", "employees": 38}{ "error": { "code": "unauthorized", "message": "No key, a key Paie doesn't know, or one that was revoked.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "forbidden", "message": "The key can't do this (its areas), or the workspace isn't in the API beta.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "not_found", "message": "Not there, or not a company this key reaches. The two read the same.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "rate_limited", "message": "Over the key's calls a minute, or the workspace's calls a day: wait the seconds Retry-After says.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "server_error", "message": "Something went wrong at Paie. Send support the requestId.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}