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
          }
        ]
      }
    }
  ]
}