Retrieve Xero Payroll NZ employees and payslips

domain: xero.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate with Xero using OAuth 2.0 with the payroll.read scope (and payroll.write if you need to create records); obtain an access token via the standard authorization code flow.
  2. Set the Xero-Tenant-Id header to the NZ organization's tenant ID obtained from GET https://api.xero.com/connections.
  3. Retrieve employees via GET https://api.xero.com/payroll.xro/2.0/Employees — note the base path is /payroll.xro/2.0 for both NZ and UK; only AU Payroll uses /payroll.xro/1.0.
  4. Retrieve payslips for a specific employee and pay period via GET https://api.xero.com/payroll.xro/2.0/Payslip/{PayslipID} or list all payslips for a pay run via GET /payroll.xro/2.0/PayRuns/{PayRunID}/payslips.
  5. Parse the response — employees and payslip line items differ between NZ and AU schemas; check the current Xero Payroll NZ API docs for the exact field names in the NZ model.

Known gotchas

Related routes

Retrieve and update Xero Payroll NZ employee pay templates
developer.xero.com · 5 steps · unrated
Run a Xero Payroll UK pay run and retrieve payslips
developer.xero.com · 6 steps · unrated
Retrieve released employee payslips for Global Payroll or EOR workers via the Remote API
developer.remote.com · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans