Browse the docs ▾

Pay runs API

Read pay runs with their lines and totals. GET /api/v1/pay-runs, GET /api/v1/pay-runs/{id}.

Generated from the app's endpoint listView as Markdown

2 operations. Each needs an API key with the permission shown; see API keys and permissions.

OperationPermission
GET /api/v1/pay-runspay: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)

NameDescription
statusdraft, pending_approval, approved or paid.
limitRows per page, 1 to 200. Default 50.
cursorThe 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

NameDescription
idThe 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"

Something missing or wrong on this page? Email [email protected] or book a free call; our team sets up every new customer at no charge.