Xero · Example Payload
Xero Createasset Example
AccountingBank FeedsFinanceFinancial-ServicesInvoicingPayrollSmall Business
Xero Createasset 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
{
"operationId": "createAsset",
"method": "POST",
"path": "/Assets",
"summary": "Xero adds a fixed asset",
"requestExamples": [
{
"contentType": "application/json",
"example": {
"assetName": "Computer74863",
"assetNumber": "123477544",
"purchaseDate": "2020-01-01",
"purchasePrice": 100.0,
"disposalPrice": 23.23,
"assetStatus": "Draft",
"bookDepreciationSetting": {
"depreciationMethod": "StraightLine",
"averagingMethod": "ActualDays",
"depreciationRate": 0.5,
"depreciationCalculationMethod": "None"
},
"bookDepreciationDetail": {
"currentCapitalGain": 5.32,
"currentGainLoss": 3.88,
"depreciationStartDate": "2020-01-02",
"costLimit": 100.0,
"currentAccumDepreciationAmount": 2.25
},
"AccountingBookValue": 99.5
}
}
],
"responseExamples": [
{
"status": "200",
"contentType": "application/json",
"example": {
"assetId": "2257c64a-77ca-444c-a5ea-fa9a588c7039",
"assetName": "Computer74863",
"assetNumber": "123477544",
"purchaseDate": "2020-01-01 00:00:00",
"purchasePrice": 100.0,
"disposalPrice": 23.23,
"assetStatus": "Draft",
"trackingItems": [],
"bookDepreciationSetting": {
"depreciableObjectId": "2257c64a-77ca-444c-a5ea-fa9a588c7039",
"depreciableObjectType": "Asset",
"bookEffectiveDateOfChangeId": "b58a2ace-1213-4681-9f11-2e30f57b5b8c",
"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": 76.77,
"taxValues": [],
"isDeleteEnabledForDate": true
}
},
{
"status": "400",
"contentType": "application/json",
"example": {
"resourceValidationErrors": [],
"fieldValidationErrors": [
{
"fieldName": "BookDepreciationSetting.DepreciationRate",
"valueProvided": "",
"localisedMessage": "Can''t have both Depreciation Rate and Effective Life",
"type": "http://common.service.xero.com/errors/validation/field",
"title": "Validation Error",
"detail": "Can''t have both Depreciation Rate and Effective Life"
}
],
"type": "http://common.service.xero.com/errors/validation",
"title": "The resource update failed validation.",
"detail": "Validation Errors"
}
}
]
}
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.
Call it yourself
curl for this page
This example
curl "https://apis.io/api/v1/examples/xero-createasset-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.