Find an API

Search public APIs with auth details & Postman guides

← All APIs

Xero Payroll AU API

xero · Finance

Finance No Auth Free & Open financial

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

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Searches payroll employees

Searches payroll employees

https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/Employees?page=1&order=asc&where=example

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
Xero-Tenant-Id example
curl -X GET "https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/Employees?page=1&order=asc&where=example" \
  -H "Xero-Tenant-Id: example"
import requests
params = {
    "page": "1",
    "order": "asc",
    "where": "example"
}
headers = {
    "Xero-Tenant-Id": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/Employees",
    params=params,
    headers=headers,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/Employees');
url.searchParams.set('page', '1');
url.searchParams.set('order', 'asc');
url.searchParams.set('where', 'example');

const response = await fetch(url, {
  headers: {
    'Xero-Tenant-Id': 'example'
  },
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/Employees")
	q := baseURL.Query()
	q.Set("page", "1")
	q.Set("order", "asc")
	q.Set("where", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)
	req.Header.Set("Xero-Tenant-Id", "example")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/Employees")
uri.query = URI.encode_www_form({
  "page" => "1",
  "order" => "asc",
  "where" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)
req["Xero-Tenant-Id"] = "example"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/Employees?" . http_build_query([
    "page" => "1",
    "order" => "asc",
    "where" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
    "header" => implode("\r\n", [
        "Xero-Tenant-Id: example"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Retrieves leave applications

Retrieves leave applications

https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/LeaveApplications?page=1&order=asc&where=example

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
Xero-Tenant-Id example
curl -X GET "https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/LeaveApplications?page=1&order=asc&where=example" \
  -H "Xero-Tenant-Id: example"
import requests
params = {
    "page": "1",
    "order": "asc",
    "where": "example"
}
headers = {
    "Xero-Tenant-Id": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/LeaveApplications",
    params=params,
    headers=headers,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/LeaveApplications');
url.searchParams.set('page', '1');
url.searchParams.set('order', 'asc');
url.searchParams.set('where', 'example');

const response = await fetch(url, {
  headers: {
    'Xero-Tenant-Id': 'example'
  },
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/LeaveApplications")
	q := baseURL.Query()
	q.Set("page", "1")
	q.Set("order", "asc")
	q.Set("where", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)
	req.Header.Set("Xero-Tenant-Id", "example")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/LeaveApplications")
uri.query = URI.encode_www_form({
  "page" => "1",
  "order" => "asc",
  "where" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)
req["Xero-Tenant-Id"] = "example"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/LeaveApplications?" . http_build_query([
    "page" => "1",
    "order" => "asc",
    "where" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
    "header" => implode("\r\n", [
        "Xero-Tenant-Id: example"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Retrieves pay items

Retrieves pay items

https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/PayItems?page=1&order=asc&where=example

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
Xero-Tenant-Id example
curl -X GET "https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/PayItems?page=1&order=asc&where=example" \
  -H "Xero-Tenant-Id: example"
import requests
params = {
    "page": "1",
    "order": "asc",
    "where": "example"
}
headers = {
    "Xero-Tenant-Id": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/PayItems",
    params=params,
    headers=headers,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/PayItems');
url.searchParams.set('page', '1');
url.searchParams.set('order', 'asc');
url.searchParams.set('where', 'example');

const response = await fetch(url, {
  headers: {
    'Xero-Tenant-Id': 'example'
  },
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/PayItems")
	q := baseURL.Query()
	q.Set("page", "1")
	q.Set("order", "asc")
	q.Set("where", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)
	req.Header.Set("Xero-Tenant-Id", "example")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/PayItems")
uri.query = URI.encode_www_form({
  "page" => "1",
  "order" => "asc",
  "where" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)
req["Xero-Tenant-Id"] = "example"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/xero.com/xero-payroll-au/2.9.4/PayItems?" . http_build_query([
    "page" => "1",
    "order" => "asc",
    "where" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
    "header" => implode("\r\n", [
        "Xero-Tenant-Id: example"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Xero Payroll AU API?

Xero Payroll AU API is a Finance API. Developers commonly use finance APIs for:

  • processing payments and handling transactions
  • building subscription and billing systems
  • automating invoicing and financial reporting
  • fraud detection and risk scoring
  • connecting to banking and accounting software

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Xero Payroll AU API is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗