ac-co.ai docs
API Referencepayroll

List pay runs

GET
/payroll/runs

RESTRICTED: requires a payroll:, cis: or p11d:read scope, granted after manual approval. Reads come from records held in ac-co.ai; nothing here calls HMRC. Preparing a filing never sends or approves it: a person approves in the payroll app.

AuthorizationBearer <token>

In: header

Query Parameters

legalEntityId?string
Formatuuid
taxYear?string
taxMonth?integer
Range1 <= value <= 12
status?string

Value in

  • "draft"
  • "processing"
  • "approved"
  • "submitted"
  • "paid"
limit?integer
Range1 <= value <= 200
Default50
offset?integer
Range0 <= value <= 100000
Default0

Response Body

application/json

curl -X GET "https://example.com/payroll/runs"
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "legalEntityId": "41192155-f2be-4dd0-9ea4-e32ad94824f7",      "taxYear": "string",      "taxMonth": -9007199254740991,      "periodNumber": -9007199254740991,      "payFrequency": "string",      "payPeriod": "string",      "payDate": "string",      "status": "string",      "confirmed": true,      "totals": {        "grossPay": 0,        "incomeTax": 0,        "employeeNi": 0,        "employerNi": 0,        "studentLoans": 0,        "pensionEmployee": 0,        "pensionEmployer": 0,        "netPay": 0,        "totalCostToEmployer": 0      },      "submittedAt": "string",      "fpsSubmissionId": "6524c1c7-532b-418a-863d-369d1a889df0"    }  ],  "nextOffset": -9007199254740991}