Generate a W2 form [DEMO]
POST {{baseUrl}}/v1/sandbox/generate_w2
🚧 Demo action
This action is only available in the Demo environment
Generates a W2 document for testing purposes.
scope: employees:write
Request Body
{"employee_id"=>"<string>", "year"=>"<integer>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Gusto-API-Version | string | Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"employee_uuid":"19394e76-a866-4570-b237-9a26b0163907","uuid":"bf5b2496-26df-436e-b465-eae4ed5c8021","name":"US_W-2","title":"Draft Form W-2: 2021","description":"Form W-2 records your annual wages and taxes.","draft":false,"requires_signing":false}