Docs
API referencePayroll exports

List payroll exports

Preview· P9
GET
/payroll-exports

Returns your organisation's payroll files, newest first: each one's period, sites, format and layout, how many people and lines it holds, how many of those people are corrections of an earlier file, how many a later file corrected, and its file's name, size and SHA-256. Filter by period_id.

Scope: attendance:payroll · Plan: Pro and Enterprise, with the payroll export; in test mode too, the payroll export needs Pro.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token> on every request. The token is one of:

PrefixWhat it isWhere it may be used
agoo_sk_live_Secret key, live modeYour servers only
agoo_sk_test_Secret key, test modeYour servers only
agoo_pk_live_Publishable key, live modeBrowsers and apps: create pre-registrations and bookings, read public booking types (with their intake questions) and their free slots, read the visit types open for pre-registration with their public forms. Never lists people.
agoo_pk_test_Publishable key, test modeAs above, in test mode

Admins create keys in Console → Developers → API keys and choose each key's scopes. A key is shown once. Never put a secret key in a URL, a browser or a mobile app.

Scope: attendance:payroll

Query Parameters

limit?integer

How many items to return, from 1 to 100.

Range1 <= value <= 100
Default25
cursor?string

The next_cursor from the previous page. Leave it out for the first page.

Lengthlength <= 512
period_id?string

Only this timesheet period's payroll exports.

Match^tsp_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"tsp_01m5a2b3c4d5e6f7g8h9jkmnpr"

Response Body

A page of payroll exports.

application/json
  1. response
data*array<>
next_cursor*|

Pass this as cursor to get the next page. null on the last page.

Example"b3BhcXVlLWN1cnNvcg"
has_more*boolean
curl -X GET 'https://api.agoo.ardent.africa/v1/payroll-exports?limit=25'
{  "data": [    {      "id": "payroll_export_01m5c4d5e6f7g8h9jkmnpqrstv",      "number": 3,      "period": {        "id": "tsp_01m5a2b3c4d5e6f7g8h9jkmnpr",        "starts_on": "2019-08-24",        "ends_on": "2019-08-24",        "payroll_on": "2019-08-24"      },      "site_ids": [        "site_01kjpt3yw0fz0v414608h9x65s"      ],      "format": "csv",      "layout": "long",      "people": 0,      "corrections": 0,      "lines": 0,      "superseded": 0,      "file": {        "name": "ridge-hospital-payroll-september-2026-3.csv",        "content_type": "string",        "byte_size": 0,        "sha256": "string"      },      "created_by": "string",      "created_via": "person",      "created_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "b3BhcXVlLWN1cnNvcg",  "has_more": true}