Allows you to update a chart of accounts
POST {{baseUrl}}/Accounts/:AccountID
Request Body
{"Accounts"=>[{"Code"=>"<string>", "Name"=>"<string>", "AccountID"=>"<uuid>", "Type"=>"<string>", "BankAccountNumber"=>"<string>", "Status"=>"<string>", "Description"=>"<string>", "BankAccountType"=>"<string>", "CurrencyCode"=>"<string>", "TaxType"=>"<string>", "EnablePaymentsToAccount"=>"<boolean>", "ShowInExpenseClaims"=>"<boolean>", "ReportingCode"=>"<string>", "AddToWatchlist"=>"<boolean>", "ValidationErrors"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}]}, {"Code"=>"<string>", "Name"=>"<string>", "AccountID"=>"<uuid>", "Type"=>"<string>", "BankAccountNumber"=>"<string>", "Status"=>"<string>", "Description"=>"<string>", "BankAccountType"=>"<string>", "CurrencyCode"=>"<string>", "TaxType"=>"<string>", "EnablePaymentsToAccount"=>"<boolean>", "ShowInExpenseClaims"=>"<boolean>", "ReportingCode"=>"<string>", "AddToWatchlist"=>"<boolean>", "ValidationErrors"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
xero-tenant-id | string | (Required) Xero identifier for Tenant | |
Content-Type | string |
RESPONSES
status: OK
{"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)/"}]}