Skip to navigation

Fetch Company Payslips Status

Says whether the payslips PDF started by Create Company Payslips is ready. Needs Payroll and Payroll and Compliance Reports on your plan. Poll every 10 seconds; a faster poll gets 429 with Retry-After. Large companies can take a few minutes.

status is one of:

  • pending, in_progress: keep polling.
  • successful: finished. Download file_url.
  • failed: call Create Company Payslips again to retry.
  • invalid: your company has no payslip run with this report_id. month and staff_count are null.

file_url is null unless status is successful. Polls don’t count towards the 10-minute limit. See Rate limits.

Errors

  • 400 "Invalid Data" with errors.report_id when it is missing or not a positive integer.
  • 403 "Payroll reports are not included in your plan. Contact us."

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Query parameters

report_idintegerRequired

The report_id from Create Company Payslips.

Response

messagestring
statusboolean
dataobject