Skip to content

Xero Assets API API

by xero.com

OAuthHTTPSFinance
Open documentation ↗

Overview

The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc.

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

At a glance

Authentication
OAuth
HTTPS
Yes
CORS
Unknown
Category
Finance
Base URL
https://api.xero.com/assets.xro/1.0
Version
2.9.4
Endpoints
6
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/assets.xro/1.0/AssetTypes" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const response = await fetch("https://api.xero.com/assets.xro/1.0/AssetTypes", {
  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/assets.xro/1.0/AssetTypes",
    headers={
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/AssetTypessearches fixed asset types
POST/AssetTypesadds a fixed asset type
GET/Assetssearches fixed asset
POST/Assetsadds a fixed asset
GET/Assets/{id}Retrieves fixed asset by id
GET/Settingssearches fixed asset settings

Questions

Does the Xero Assets API API need an API key?

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

Does the Xero Assets API API support HTTPS?

Yes, the Xero Assets API API is served over HTTPS.

How many endpoints does the Xero Assets API API have?

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

What are alternatives to the Xero Assets API API?

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

Compare alternatives →

Listed from APIs.guru (CC0).