[Sandbox] Simulate unpublishing a contractor tax statement
Changed onThe Contractor Tax Statements API is currently in limited preview, and is not yet generally available.
Simulate unpublishing a published contractor tax statement in sandbox. Sandbox-only: in production this endpoint returns a 404.
The statement must be in published publication status and must not be included in an employer copy aggregate. Clears published_at and document, reverting the statement to draft. Returns the contractor tax statement. Requires an API key with the contractor:write or contractor:admin scope.
post/contractor_tax_statements/{id}/simulate/unpublish
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
idstring required
ID of the contractor tax statement
Response
200
Example response
{
"id": "cts_456",
"contractor": "ctr_123",
"company": "com_123",
"year": 2025,
"publication_status": "draft",
"delivery_method": "mail",
"mail_recipient": "contractor"
}Changes
- info
endpoint added
- info