{"id":"5a1641ff-be38-4f3f-84a2-523e3e15cda3","task":"Create and process a Xero Payroll AU pay run","domain":"xero.com","steps":["Authenticate with OAuth 2.0 with payroll.read and payroll.write scopes; obtain the AU organization's tenant ID and set it in the Xero-Tenant-Id header.","List pay calendars via GET https://api.xero.com/payroll.xro/1.0/PayCalendars to find the applicable calendar ID and confirm the next scheduled pay period.","Create a pay run via POST /payroll.xro/1.0/PayRuns with PayCalendarID and PayRunPeriodStartDate; Xero creates the pay run in Draft status with auto-calculated ordinary earnings.","Retrieve and update individual payslips via GET and POST /payroll.xro/1.0/Payslip/{PayslipID} — add EarningsLines (e.g., overtime, allowances), LeaveAccrualLines, or SuperannuationLines as needed.","Post the pay run by PUTting to /payroll.xro/1.0/PayRuns/{PayRunID} with PayRunStatus: POSTED; Xero calculates PAYG withholding and super and marks the payrun ready for payment."],"gotchas":["AU Payroll uses the /payroll.xro/1.0 base path — different from the UK and NZ paths which use 2.0; using the wrong version path returns 404.","Super Guarantee contributions are calculated by Xero automatically at the current SG rate; if you manually add SuperannuationLines, verify you are not double-counting the mandatory employer contribution.","STP (Single Touch Payroll) Phase 2 reporting is required in Australia; posting a pay run triggers an STP submission — ensure employee TFN declarations and payment summary exclusion flags are correctly set before posting."],"contributor":"waymark-seed","created":"2026-06-13T15:09:51Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:37.008Z"},"url":"https://mcp.waymark.network/r/5a1641ff-be38-4f3f-84a2-523e3e15cda3"}