Xero · Example Payload

Xero Createassettype Example

AccountingBank FeedsFinanceFinancial-ServicesInvoicingPayrollSmall Business

Xero Createassettype 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": "createAssetType",
  "method": "POST",
  "path": "/AssetTypes",
  "summary": "Xero adds a fixed asset type",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "assetTypeName": "Machinery11004",
        "fixedAssetAccountId": "3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82",
        "depreciationExpenseAccountId": "d1602f69-f900-4616-8d34-90af393fa368",
        "accumulatedDepreciationAccountId": "9195cadd-8645-41e6-9f67-7bcd421defe8",
        "bookDepreciationSetting": {
          "depreciationMethod": "DiminishingValue100",
          "averagingMethod": "ActualDays",
          "depreciationRate": 0.05,
          "depreciationCalculationMethod": "None"
        }
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "assetTypeId": "85509b5d-308e-420d-9532-b85105058916",
        "assetTypeName": "Machinery11004",
        "fixedAssetAccountId": "3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82",
        "depreciationExpenseAccountId": "d1602f69-f900-4616-8d34-90af393fa368",
        "accumulatedDepreciationAccountId": "9195cadd-8645-41e6-9f67-7bcd421defe8",
        "bookDepreciationSetting": {
          "depreciableObjectId": "00000000-0000-0000-0000-000000000000",
          "depreciableObjectType": "None",
          "depreciationMethod": "DiminishingValue100",
          "averagingMethod": "ActualDays",
          "depreciationRate": 0.05,
          "depreciationCalculationMethod": "None"
        },
        "locks": 0,
        "lockPrivateUseAccount": false
      }
    },
    {
      "status": "400",
      "contentType": "application/json",
      "example": {
        "resourceValidationErrors": [],
        "fieldValidationErrors": [
          {
            "fieldName": "FixedAssetAccountId",
            "valueProvided": "",
            "localisedMessage": "Fixed Asset Account Id is invalid",
            "type": "http://common.service.xero.com/errors/validation/field",
            "title": "Validation Error",
            "detail": "Fixed Asset Account Id is invalid"
          },
          {
            "fieldName": "DepreciationExpenseAccountId",
            "valueProvided": "",
            "localisedMessage": "Depreciation Expense Account Id is invalid",
            "type": "http://common.service.xero.com/errors/validation/field",
            "title": "Validation Error",
            "detail": "Depreciation Expense Account Id is invalid"
          }
        ],
        "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.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/xero-createassettype-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.