2 operations. Each needs an API key with the permission shown; see API keys and permissions.
| Operation | Permission |
|---|---|
GET /api/v1/pay-runs | pay:read |
GET /api/v1/pay-runs/{id} | pay:read |
#GET /api/v1/pay-runs
Pay runs, newest period first, each with its lines and totals as they were when the run was made.
- Permission:
pay:read - Returns: a page of records:
{ data, hasMore, nextCursor }, status 200
Query parameters (all optional)
| Name | Description |
|---|---|
status | draft, pending_approval, approved or paid. |
limit | Rows per page, 1 to 200. Default 50. |
cursor | The nextCursor value from the previous page. |
Fields in each record: id, periodStart, periodEnd, schedule, status, lines, totals, generatedAt, approvedAt
curl "https://app.staffedly.com/api/v1/pay-runs?limit=50" \
-H "Authorization: Bearer $STAFFEDLY_API_KEY"
#GET /api/v1/pay-runs/{id}
One pay run.
- Permission:
pay:read - Returns: one record:
{ data }, status 200
Path
| Name | Description |
|---|---|
id | The record's id. |
Fields in each record: id, periodStart, periodEnd, schedule, status, lines, totals, generatedAt, approvedAt
curl "https://app.staffedly.com/api/v1/pay-runs/<id>" \
-H "Authorization: Bearer $STAFFEDLY_API_KEY"