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

KeyDatatypeRequiredDescription
X-Gusto-API-VersionstringDetermines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;employee_uuid&quot;:&quot;19394e76-a866-4570-b237-9a26b0163907&quot;,&quot;uuid&quot;:&quot;bf5b2496-26df-436e-b465-eae4ed5c8021&quot;,&quot;name&quot;:&quot;US_W-2&quot;,&quot;title&quot;:&quot;Draft Form W-2: 2021&quot;,&quot;description&quot;:&quot;Form W-2 records your annual wages and taxes.&quot;,&quot;draft&quot;:false,&quot;requires_signing&quot;:false}