Skip to content

Xero Payroll NZ “403 Forbidden” on GET Employees

Updated

The Xero Payroll NZ Employees endpoint returns 403 Forbidden. Check the tenant ID against the app’s current connections.

In the linked case, the response from the Payroll NZ endpoint was 403 because Xero found no active connection for the tenant ID in the request.

What we checkedWhere
Employees request and follow-up reporting the 403stackoverflow.com
New Zealand Payroll API URL and access requirementsdeveloper.xero.com
Xero tenant IDs and authorization errorsdeveloper.xero.com
Connections endpoint and tenant identifiersdeveloper.xero.com

Check it yourself

  • Check the request path. The Payroll NZ Employees endpoint is /payroll.xro/2.0/employees.
  • Use the same access token to call GET https://api.xero.com/connections. Find the intended organisation and compare its tenantId with the xero-tenant-id on the failed request. A reset demo organisation can have a new tenant ID.
  • If the organisation needs to reconnect, use a Xero user with payroll administrator access and select the intended organisation during consent.

Still failing?

Send the endpoint, HTTP status and Xero correlation ID to money@iftodo.ai. Leave out employee data, tokens and authorization headers.

Weekly sync checks for €29 a month

For one Shopify or Square to QuickBooks workflow, we check weekly exports for missing or duplicate records and email you when we find a mismatch. We run a sample first to see whether the two exports have matching references.

Ask for a sample check. We agree how to share exports before starting billing. Cancel by email before your next renewal.