[Sandbox] Refresh filings
Changed onGenerate filings and employee tax statements for a company from its approved payroll data. Sandbox-only: in production this endpoint returns a 404.
Pass payroll_ids and employee_ids to limit generation to specific payrolls and employees, or omit both to generate data for the entire company, including employee W-2s. The work runs asynchronously and can take several minutes. A company_filing webhook with the created event is sent for each filing that is generated.
post/companies/{company}/refresh_filings
Request
- Base URLhttps://sandbox.checkhq.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
companystring required
ID of the company
Request body
Example request
{
"payroll_ids": [
"pay_123"
],
"employee_ids": [
"emp_123"
]
}Response
202
Example response
{
"message": "Successfully started refreshing company's filings (this may take several minutes)"
}Changes
- info
endpoint added
- info