Skip to content
gist.link ↗

taxDocuments

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

Official tax records: year-end forms (T4 / W-2 / EU annual) and remittance receipts.

payroll:query:taxDocuments

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

type Query {
taxDocuments(year: Int, employeeUuid: String): [TaxDocument!]!
}
Argument Type Required Description
year Int No —
employeeUuid String No —

[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": "query TaxDocuments($year: Int, $employeeUuid: String) { taxDocuments(year: $year, employeeUuid: $employeeUuid) { uuid type tax_year jurisdiction authority payload_json generated_at } }",
"variables": {
"year": 10,
"employeeUuid": "example"
}
}
JSON