Try a report on one pay run

Needs permission report:read. Runs an unsaved report definition over one pay run exactly as the pay run's Reports step would, for the report builder to show it before it is saved. Rows are capped at 10,000.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
int32
required
int32
required
string
required
Query Params
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.

int32

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

Body Params

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

string
required

A dataset name from GET /datasets

select
array of objects
required
length between 1 and 50
select*

One select entry: a plain field ({"field": ...}), an aggregation ({"aggregate": "sum", "field": ..., "as": ...}), or a tag-value extraction ({"field":

string | null
string | null
enum
Allowed:
string | null

Output column alias (required for aggregations and tag-value extractions)

boolean
Defaults to false
string | null

Extract this tag's value from a tags field as a text column; groupable via its alias

string | null

Restrict tagName extraction to one tag group; omitted matches any group

string | null
enum

In a report that runs on a pay run: current (this pay run), compared (the pay run it is compared with), difference (this minus compared) or changePercent (the difference as a percentage of compared; 100 when compared is 0 and this is not). Left out: this pay run's value, or the compared one's when the row is only there.

Allowed:
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
array of strings | null

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

groupBy
orderBy
array of objects | null
orderBy
int32 | null

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

string | null
enum

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.

Allowed:
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json