Skip to main content
POST
Try a report on one pay run

Path Parameters

payrollConfigId
string
required
year
integer<int32>
required
period
integer<int32>
required
frequency
string
required

Query Parameters

compareYear
integer<int32>

A comparison report compares with this year's pay run of the same pay schedule; with comparePeriod. Left out: the pay schedule's previous pay run.

comparePeriod
integer<int32>

The period of the pay run to compare with; with compareYear.

Body

application/json

The report-definition document: one contract drives sync runs, exports, saved definitions and schedules. select holds 1 to 50 entries.

dataset
string
required

A dataset name from GET /datasets

select
object[]
required
Required array length: 1 - 50 elements
filters
object | null

Filter tree node: exactly one of and/or/not (branch, nesting depth at most 3) or field+op (leaf). value must match the field's type as GET /datasets/{name} lists it.

groupBy
string[] | null

Required iff any select entry aggregates; every plain select entry must appear here, referenced by field name or alias

orderBy
object[] | null
limit
integer<int32> | null

Clamped to 10,000 (sync) / 5,000,000 (export)

runsOn
enum<string> | null

payRun: the report runs on the pay run it is opened from, its keys never a filter; paySchedule: on that pay run's pay schedule over its tax year and the one before. Left out: whatever its filters say.

Available options:
payRun,
paySchedule

Response

OK

runId
string
required
columns
object[]
required
rows
any[][]
required
rowCount
integer<int32>
required
truncated
boolean
required

true → the sync row cap was hit; use an export

statusScope
string
required

Which payslip statuses applied: FINAL (implicit default) | PREVIEW | REOPENED | ALL

executionMs
integer<int64>
required
comparedWith
object | null

For a comparison report run on a pay run, the pay run it compared with