[Sandbox] Simulate unpublishing an employee tax statement
Changed onSimulate reverting a published employee tax statement to draft in sandbox. Sandbox-only: in production this endpoint returns a 404.
The statement must be in published publication status. Statements included in an employer copy aggregate or statements with a pending correction cannot be unpublished individually. Returns the employee tax statement with publication_status of draft; the associated employee document is removed.
post/employee_tax_statements/{id}/simulate/unpublish
Request
- Base URLhttps://sandbox.checkhq.com
- AuthAPI key in header Authorization
- TypeScripthttps://skmtc.dev/checkhq/apis/check-api/docs/employee_tax_statements/:id/simulate/unpublish/post.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
ID of the employee tax statement
Response
200
Example response
{
"id": "ets_789",
"employee": "emp_123",
"company": "com_123",
"year": 2025,
"form": "fed_w2",
"filings": [
"com_fil_999"
],
"refreshed_at": "2025-12-01T18:45:00Z",
"publication_status": "draft",
"delivery_method": "manual"
}Changes
- info
endpoint added
- info