Allows you to set the chart of accounts, the conversion date and conversion balances

POST {{baseUrl}}/Setup

Request Body

{"ConversionDate"=>{"Month"=>"<integer>", "Year"=>"<integer>"}, "ConversionBalances"=>[{"AccountCode"=>"<string>", "Balance"=>"<double>", "BalanceDetails"=>[{"Balance"=>"<double>", "CurrencyCode"=>"<string>", "CurrencyRate"=>"<double>"}, {"Balance"=>"<double>", "CurrencyCode"=>"<string>", "CurrencyRate"=>"<double>"}]}, {"AccountCode"=>"<string>", "Balance"=>"<double>", "BalanceDetails"=>[{"Balance"=>"<double>", "CurrencyCode"=>"<string>", "CurrencyRate"=>"<double>"}, {"Balance"=>"<double>", "CurrencyCode"=>"<string>", "CurrencyRate"=>"<double>"}]}], "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

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

RESPONSES

status: OK

{&quot;Id&quot;:&quot;80dcb65b-4d14-4350-84e6-1438a809244a&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Java Public Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1604457589645)/&quot;,&quot;ImportSummary&quot;:{&quot;Accounts&quot;:{&quot;Total&quot;:17,&quot;New&quot;:0,&quot;Updated&quot;:8,&quot;Deleted&quot;:0,&quot;Locked&quot;:0,&quot;System&quot;:9,&quot;Errored&quot;:0,&quot;Present&quot;:true,&quot;NewOrUpdated&quot;:8},&quot;Organisation&quot;:{&quot;Present&quot;:false}}}