Skip to content

Xero Payroll AU API API

by xero.com

OAuthHTTPSFinance
Open documentation ↗

Overview

This is the Xero Payroll API for orgs in Australia region.

Xero Payroll AU API is a finance API from xero.com. Requests are authenticated with OAuth. It is served over HTTPS. Its OpenAPI description documents 29 endpoints.

At a glance

Authentication
OAuth
HTTPS
Yes
CORS
Unknown
Category
Finance
Base URL
https://api.xero.com/payroll.xro/1.0
Version
2.9.4
Endpoints
29
Spec updated
2021-02-25

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.xero.com/payroll.xro/1.0/Employees" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const response = await fetch("https://api.xero.com/payroll.xro/1.0/Employees", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.xero.com/payroll.xro/1.0/Employees",
    headers={
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/EmployeesSearches payroll employees
POST/EmployeesCreates a payroll employee
GET/Employees/{EmployeeID}Retrieves an employee's detail by unique employee id
POST/Employees/{EmployeeID}Updates an employee's detail
GET/LeaveApplicationsRetrieves leave applications
POST/LeaveApplicationsCreates a leave application
GET/LeaveApplications/{LeaveApplicationID}Retrieves a leave application by a unique leave application id
POST/LeaveApplications/{LeaveApplicationID}Updates a specific leave application
GET/PayItemsRetrieves pay items
POST/PayItemsCreates a pay item
GET/PayRunsRetrieves pay runs
POST/PayRunsCreates a pay run
GET/PayRuns/{PayRunID}Retrieves a pay run by using a unique pay run id
POST/PayRuns/{PayRunID}Updates a pay run
GET/PayrollCalendarsRetrieves payroll calendars
POST/PayrollCalendarsCreates a Payroll Calendar
GET/PayrollCalendars/{PayrollCalendarID}Retrieves payroll calendar by using a unique payroll calendar ID
GET/Payslip/{PayslipID}Retrieves for a payslip by a unique payslip id
POST/Payslip/{PayslipID}Updates a payslip
GET/SettingsRetrieves payroll settings
GET/SuperfundProductsRetrieves superfund products
GET/SuperfundsRetrieves superfunds
POST/SuperfundsCreates a superfund
GET/Superfunds/{SuperFundID}Retrieves a superfund by using a unique superfund ID
POST/Superfunds/{SuperFundID}Updates a superfund
GET/TimesheetsRetrieves timesheets
POST/TimesheetsCreates a timesheet
GET/Timesheets/{TimesheetID}Retrieves a timesheet by using a unique timesheet id
POST/Timesheets/{TimesheetID}Updates a timesheet

Questions

Does the Xero Payroll AU API API need an API key?

Yes. The Xero Payroll AU API API uses OAuth authentication; the documentation explains how to get credentials.

Does the Xero Payroll AU API API support HTTPS?

Yes, the Xero Payroll AU API API is served over HTTPS.

How many endpoints does the Xero Payroll AU API API have?

Its OpenAPI description lists 29 endpoints in version 2.9.4. All of them are shown on this page.

What are alternatives to the Xero Payroll AU API API?

Other Finance APIs include Stripe, SEC EDGAR Data, Plaid, Fed Treasury, Razorpay IFSC.

Compare alternatives →

Listed from APIs.guru (CC0).