Xero · Example Payload
Xero Updateaccount Example
AccountingBank FeedsFinanceFinancial-ServicesInvoicingPayrollSmall Business
Xero Updateaccount 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": "updateAccount",
"method": "POST",
"path": "/Accounts/{AccountID}",
"summary": "Xero Updates a chart of accounts",
"requestExamples": [
{
"contentType": "application/json",
"example": {
"Accounts": [
{
"Code": "123456",
"Name": "BarFoo",
"AccountID": "99ce6032-0678-4aa0-8148-240c75fee33a",
"Type": "EXPENSE",
"Description": "GoodBye World",
"TaxType": "INPUT",
"EnablePaymentsToAccount": false,
"ShowInExpenseClaims": false,
"Class": "EXPENSE",
"ReportingCode": "EXP",
"ReportingCodeName": "Expense",
"UpdatedDateUTC": "2019-02-21T16:29:47.96-08:00"
}
]
}
}
],
"responseExamples": [
{
"status": "200",
"contentType": "application/json",
"example": {
"Id": "9012e75c-ec08-40a9-ae15-153fc1f35c4d",
"Status": "OK",
"ProviderName": "Xero API Partner",
"DateTimeUTC": "/Date(1550795389340)/",
"Accounts": [
{
"AccountID": "99ce6032-0678-4aa0-8148-240c75fee33a",
"Code": "654321",
"Name": "BarFoo",
"Status": "ACTIVE",
"Type": "EXPENSE",
"TaxType": "INPUT",
"Description": "Good Bye World",
"Class": "EXPENSE",
"EnablePaymentsToAccount": false,
"ShowInExpenseClaims": false,
"ReportingCode": "EXP",
"ReportingCodeName": "Expense",
"UpdatedDateUTC": "/Date(1550795389333+0000)/"
}
]
}
},
{
"status": "400",
"contentType": "application/json",
"example": {
"ErrorNumber": 10,
"Type": "ValidationException",
"Message": "A validation exception occurred",
"Elements": [
{
"AccountID": "00000000-0000-0000-0000-000000000000",
"Code": "123456",
"Name": "Foobar",
"Type": "EXPENSE",
"Description": "Hello World",
"ValidationErrors": [
{
"Message": "Please enter a unique Name."
}
]
}
]
}
}
]
}
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-updateaccount-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.