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
- OpenAPI
- Specification ↗
- Spec updated
- 2021-02-25
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://api.xero.com/payroll.xro/1.0/Employees" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_TOKEN"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);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
| Method | Path | What it does |
|---|---|---|
| GET | /Employees | Searches payroll employees |
| POST | /Employees | Creates a payroll employee |
| GET | /Employees/{EmployeeID} | Retrieves an employee's detail by unique employee id |
| POST | /Employees/{EmployeeID} | Updates an employee's detail |
| GET | /LeaveApplications | Retrieves leave applications |
| POST | /LeaveApplications | Creates 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 | /PayItems | Retrieves pay items |
| POST | /PayItems | Creates a pay item |
| GET | /PayRuns | Retrieves pay runs |
| POST | /PayRuns | Creates 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 | /PayrollCalendars | Retrieves payroll calendars |
| POST | /PayrollCalendars | Creates 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 | /Settings | Retrieves payroll settings |
| GET | /SuperfundProducts | Retrieves superfund products |
| GET | /Superfunds | Retrieves superfunds |
| POST | /Superfunds | Creates a superfund |
| GET | /Superfunds/{SuperFundID} | Retrieves a superfund by using a unique superfund ID |
| POST | /Superfunds/{SuperFundID} | Updates a superfund |
| GET | /Timesheets | Retrieves timesheets |
| POST | /Timesheets | Creates 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.
Similar finance APIs
Compare alternatives →Stripe
FinancePayment processing, subscriptions, and financial management
SEC EDGAR Data
FinanceAPI to access annual reports of public US companies
Plaid
FinanceConnect with user's bank accounts and access transaction data
Fed Treasury
FinanceU.S. Department of the Treasury Data
Razorpay IFSC
FinanceIndian Financial Systems Code (Bank Branch Codes)
Klarna
FinanceKlarna payment and shopping service
Listed from APIs.guru (CC0).