Xero Bank Feeds API
xero · Finance
The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero. If you're an existing financial services partner that wants access, contact your local Partner Manager. If you're a financial institution who wants to provide bank feeds to your business customers, contact us to become a financial services partner.
Authentication
Sample Requests
By passing in the appropriate options, you can search for available feed connections in the system.
Hover any highlighted part to learn what it does
| Xero-Tenant-Id | example |
curl -X GET "https://api.apis.guru/v2/specs/xero.com/xero_bankfeeds/2.9.4/FeedConnections?page=1&pageSize=100" \ -H "Xero-Tenant-Id: example"
import requests
params = {
"page": "1",
"pageSize": "100"
}
headers = {
"Xero-Tenant-Id": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/xero.com/xero_bankfeeds/2.9.4/FeedConnections",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/xero.com/xero_bankfeeds/2.9.4/FeedConnections');
url.searchParams.set('page', '1');
url.searchParams.set('pageSize', '100');
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_bankfeeds/2.9.4/FeedConnections")
q := baseURL.Query()
q.Set("page", "1")
q.Set("pageSize", "100")
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_bankfeeds/2.9.4/FeedConnections")
uri.query = URI.encode_www_form({
"page" => "1",
"pageSize" => "100"
})
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_bankfeeds/2.9.4/FeedConnections?" . http_build_query([
"page" => "1",
"pageSize" => "100"
]);
$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));By passing in parameters, you can search for matching statements
Hover any highlighted part to learn what it does
| Xero-Tenant-Id | example |
curl -X GET "https://api.apis.guru/v2/specs/xero.com/xero_bankfeeds/2.9.4/Statements?page=1&pageSize=1" \ -H "Xero-Tenant-Id: example"
import requests
params = {
"page": "1",
"pageSize": "1"
}
headers = {
"Xero-Tenant-Id": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/xero.com/xero_bankfeeds/2.9.4/Statements",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/xero.com/xero_bankfeeds/2.9.4/Statements');
url.searchParams.set('page', '1');
url.searchParams.set('pageSize', '1');
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_bankfeeds/2.9.4/Statements")
q := baseURL.Query()
q.Set("page", "1")
q.Set("pageSize", "1")
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_bankfeeds/2.9.4/Statements")
uri.query = URI.encode_www_form({
"page" => "1",
"pageSize" => "1"
})
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_bankfeeds/2.9.4/Statements?" . http_build_query([
"page" => "1",
"pageSize" => "1"
]);
$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));By passing in a statement id, you can search for matching statements
Hover any highlighted part to learn what it does
| Xero-Tenant-Id | example |
curl -X GET "https://api.apis.guru/v2/specs/xero.com/xero_bankfeeds/2.9.4/Statements/{statementID}?statementId=example" \
-H "Xero-Tenant-Id: example"import requests
params = {
"statementId": "example"
}
headers = {
"Xero-Tenant-Id": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/xero.com/xero_bankfeeds/2.9.4/Statements/{statementID}",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/xero.com/xero_bankfeeds/2.9.4/Statements/{statementID}');
url.searchParams.set('statementId', '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_bankfeeds/2.9.4/Statements/{statementID}")
q := baseURL.Query()
q.Set("statementId", "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_bankfeeds/2.9.4/Statements/{statementID}")
uri.query = URI.encode_www_form({
"statementId" => "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_bankfeeds/2.9.4/Statements/{statementID}?" . http_build_query([
"statementId" => "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
- See official documentation for authentication and setup.
What can you build with Xero Bank Feeds API?
Xero Bank Feeds 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 Bank Feeds API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?