Xero

Xero Assets API

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,…

Finance & banking#openapi

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

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.

Endpoints 6

Asset

  • GETsearches fixed asset/Assets?status=DRAFT&page=1&pageSize=5&orderBy=AssetName&sortDirection=ASC&filterBy=Company CarBy passing in the appropriate options, you can search for available fixed asset in the system
  • POSTadds a fixed asset/AssetsAdds an asset to the system
  • GETRetrieves fixed asset by id/Assets/:idBy passing in the appropriate asset id, you can search for a specific fixed asset in the system
  • GETsearches fixed asset types/AssetTypesBy passing in the appropriate options, you can search for available fixed asset types in the system
  • POSTadds a fixed asset type/AssetTypesAdds an fixed asset type to the system
  • GETsearches fixed asset settings/SettingsBy passing in the appropriate options, you can search for available fixed asset types in the system

API details

Base URL
https://api.xero.com/assets.xro/1.0
Authentication
OAuth 2.0 (authorization code flow) with 5 scopes
Operations
6 operations on 4 pathsGET 4POST 2
Main resources
Asset 6
Response formats
application/json
Description format
OpenAPI 3.0.0, API version 20.1.0

How to test the Xero Assets API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Xero Assets API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 5 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “searches fixed asset” (GET /Assets?status=DRAFT&page=1&pageSize=5&orderBy=AssetName&sortDirection=ASC&filterBy=Company Car), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Xero Assets API?

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,… It is listed under Finance & banking and has 6 endpoints.

Who publishes the Xero Assets API?

It is listed from Xero's public API description (an OpenAPI document), not published by Xero on Swastik Codes. Anyone who controls xero.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Xero Assets API?

Requests go to https://api.xero.com/assets.xro/1.0. Endpoint paths are added to this base URL.

How do I authenticate with the Xero Assets API?

With OAuth 2.0 (authorization code flow) with 5 scopes.

How many endpoints does the Xero Assets API have?

6 operations on 4 paths (4 GET, 2 POST). The largest groups are Asset.

Is forking the Xero Assets API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.