Create a report run

Creates a report run asynchronously.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Creates a new report run in the generating status and starts report generation asynchronously.

Poll GET /report_runs/{report_run} or listen for report_run webhooks until status is completed or failed. When completed, download the file from result.url.

Report generation may take up to 20 minutes. Data that report runs rely on may be up to 10 minutes out of date. Create requests are rate limited to 1 per second per partner, with a maximum of 20 report runs generating at once.

report and parameters are required. You may optionally set company and metadata. Supply an X-Idempotency-Key header to safely retry creation without starting duplicate jobs.

payroll_journal parameters

ParameterTypeRequiredDescription
payday_fromstring (date)YesInclusive start of the payday range (YYYY-MM-DD).
payday_tostring (date)YesInclusive end of the payday range (YYYY-MM-DD).
payrollstringNoLimit the report to a single payroll ID.
group_bystringNoGroup output by workplace.
contractorsbooleanNoInclude contractor payments. Defaults to false.
taxable_wagesbooleanNoInclude taxable wage columns. Defaults to false.
gross_taxable_wagesbooleanNoInclude gross taxable wage columns. Defaults to false.
additional_columnsarrayNoExtra columns to include. Allowed values are employee.id, contractor.id, payroll.id, or employee.metadata.<key>.

payroll_summary parameters

ParameterTypeRequiredDescription
payday_fromstring (date)YesInclusive start of the payday range (YYYY-MM-DD).
payday_tostring (date)YesInclusive end of the payday range (YYYY-MM-DD).
payrollstringNoLimit the report to a single payroll ID.
contractorsbooleanNoInclude contractor payments. Defaults to false.
taxable_wagesbooleanNoInclude taxable wage columns. Defaults to false.
gross_taxable_wagesbooleanNoInclude gross taxable wage columns. Defaults to false.
additional_columnsarrayNoExtra columns to include. Allowed values are employee.id, contractor.id, or employee.metadata.<key>.
Body Params
string
enum
required

Report to generate. One of payroll_journal or payroll_summary.

Allowed:
string

Company ID to scope the report.

parameters
object
required

Parameters for the selected report. Required fields depend on the report type.

metadata
object

Additional loosely structured information to associate with the report run.

Headers
string

Optional idempotency key. Replays the first response when the same key is reused.

Response

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