Xero · Example Payload

Xero Getassets Example

AccountingBank FeedsFinanceFinancial-ServicesInvoicingPayrollSmall Business

Xero Getassets Example is an example object payload from Xero, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "getAssets",
  "method": "GET",
  "path": "/Assets",
  "summary": "Xero searches fixed asset",
  "requestExamples": [],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "pagination": {
          "page": 1,
          "pageSize": 10,
          "pageCount": 2,
          "itemCount": 11,
          "links": {
            "first": {
              "href": "http://asset.favorit.xero.com/v1/assets?status=DRAFT&page=1"
            },
            "next": {
              "href": "http://asset.favorit.xero.com/v1/assets?status=DRAFT&page=2"
            },
            "last": {
              "href": "http://asset.favorit.xero.com/v1/assets?status=DRAFT&page=2"
            }
          }
        },
        "items": [
          {
            "assetId": "68f17094-af97-4f1b-b36b-013b45b6ad3c",
            "assetName": "Computer47822",
            "assetNumber": "123478074",
            "purchaseDate": "2020-01-01 00:00:00",
            "purchasePrice": 100.0,
            "disposalPrice": 0.0,
            "assetStatus": "Draft",
            "trackingItems": [],
            "bookDepreciationSetting": {
              "depreciableObjectId": "68f17094-af97-4f1b-b36b-013b45b6ad3c",
              "depreciableObjectType": "Asset",
              "bookEffectiveDateOfChangeId": "5da77739-7f22-4109-b0a0-67480fb89af0",
              "depreciationMethod": "StraightLine",
              "averagingMethod": "ActualDays",
              "depreciationRate": 0.5,
              "depreciationCalculationMethod": "None"
            },
            "bookDepreciationDetail": {
              "depreciationStartDate": "2020-01-02 00:00:00",
              "priorAccumDepreciationAmount": 0.0,
              "currentAccumDepreciationAmount": 0.0,
              "currentCapitalGain": 0.0,
              "currentGainLoss": 0.0
            },
            "taxDepreciationSettings": [],
            "taxDepreciationDetails": [],
            "canRollback": true,
            "accountingBookValue": 100.0,
            "taxValues": [],
            "isDeleteEnabledForDate": false
          },
          {
            "assetId": "52ea3adf-f04a-4577-8fd2-43c52a256bd5",
            "assetName": "Computer4148",
            "assetNumber": "123466620",
            "purchaseDate": "2020-01-01 00:00:00",
            "purchasePrice": 100.0,
            "disposalPrice": 0.0,
            "assetStatus": "Draft",
            "trackingItems": [],
            "bookDepreciationSetting": {
              "depreciableObjectId": "52ea3adf-f04a-4577-8fd2-43c52a256bd5",
              "depreciableObjectType": "Asset",
              "bookEffectiveDateOfChangeId": "c0d5280f-28b6-4329-b5b7-36e08c662010",
              "depreciationMethod": "StraightLine",
              "averagingMethod": "ActualDays",
              "depreciationRate": 0.5,
              "depreciationCalculationMethod": "None"
            },
            "bookDepreciationDetail": {
              "depreciationStartDate": "2020-01-02 00:00:00",
              "priorAccumDepreciationAmount": 0.0,
              "currentAccumDepreciationAmount": 0.0,
              "currentCapitalGain": 0.0,
              "currentGainLoss": 0.0
            },
            "taxDepreciationSettings": [],
            "taxDepreciationDetails": [],
            "canRollback": true,
            "accountingBookValue": 100.0,
            "taxValues": [],
            "isDeleteEnabledForDate": false
          }
        ]
      }
    }
  ]
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/xero-getassets-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.