Allows you to create a new chart of accounts
PUT {{baseUrl}}/Accounts
Request Body
{"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":"11814c9d-3b5e-492e-93b0-fad16bf3244f","Status":"OK","ProviderName":"Xero API Partner","DateTimeUTC":"/Date(1550793549392)/","Accounts":[{"AccountID":"66b262e2-561e-423e-8937-47d558f13442","Code":"123456","Name":"Foobar","Status":"ACTIVE","Type":"EXPENSE","TaxType":"INPUT","Description":"Hello World","Class":"EXPENSE","EnablePaymentsToAccount":false,"ShowInExpenseClaims":false,"ReportingCode":"EXP","ReportingCodeName":"Expense","UpdatedDateUTC":"/Date(1550793549320+0000)/"}]}