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

KeyDatatypeRequiredDescription
xero-tenant-idstring(Required) Xero identifier for Tenant
Content-Typestring

RESPONSES

status: OK

{&quot;Id&quot;:&quot;11814c9d-3b5e-492e-93b0-fad16bf3244f&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Xero API Partner&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1550793549392)/&quot;,&quot;Accounts&quot;:[{&quot;AccountID&quot;:&quot;66b262e2-561e-423e-8937-47d558f13442&quot;,&quot;Code&quot;:&quot;123456&quot;,&quot;Name&quot;:&quot;Foobar&quot;,&quot;Status&quot;:&quot;ACTIVE&quot;,&quot;Type&quot;:&quot;EXPENSE&quot;,&quot;TaxType&quot;:&quot;INPUT&quot;,&quot;Description&quot;:&quot;Hello World&quot;,&quot;Class&quot;:&quot;EXPENSE&quot;,&quot;EnablePaymentsToAccount&quot;:false,&quot;ShowInExpenseClaims&quot;:false,&quot;ReportingCode&quot;:&quot;EXP&quot;,&quot;ReportingCodeName&quot;:&quot;Expense&quot;,&quot;UpdatedDateUTC&quot;:&quot;/Date(1550793549320+0000)/&quot;}]}