Skip to content
gist.link ↗

generateTaxForms

Mutation Payroll API — POST https://payroll.api.gist.link/graphql

Generate year-end forms for every employee paid in the year: T4 (Canada), W-2 (United States), or an annual employment income statement (EU). Regenerating a year replaces its prior forms; remittance receipts are never touched. ROLE_ADMIN.

payroll:mutation:generateTaxForms

The calling IAM key must hold this permission (or a wildcard that covers it: payroll:mutation:* or payroll:*) and the access token must have been minted with audience=payroll. See Permissions.

type Mutation {
generateTaxForms(year: Int!): [TaxDocument!]!
}
Argument Type Required Description
year Int! Yes —

[TaxDocument!]! — see the Payroll types reference.

Terminal window
curl https://payroll.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation GenerateTaxForms($year: Int!) { generateTaxForms(year: $year) { uuid type tax_year jurisdiction authority payload_json generated_at } }",
"variables": {
"year": 10
}
}
JSON