Xero · Example Payload

Xero Getassetbyid Example

AccountingBank FeedsFinanceFinancial ServicesInvoicingPayrollSmall Business

Xero Getassetbyid 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": "getAssetById",
  "method": "GET",
  "path": "/Assets/{id}",
  "summary": "Xero Retrieves fixed asset by id",
  "requestExamples": [],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "assetId": "68f17094-af97-4f1b-b36b-013b45b6ad3c",
        "assetName": "Computer47822",
        "assetNumber": "123478074",
        "purchaseDate": "2020-01-01 00:00:00",
        "purchasePrice": 100.0,
        "disposalPrice": 23.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,
        "metaData": {
          "bookDepreciationDetailsCanChange": true,
          "taxDepreciationDetailsCanChange": true
        },
        "accountingBookValue": 77.0,
        "taxValues": [],
        "isDeleteEnabledForDate": true
      }
    }
  ]
}