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
Key | Datatype | Required | Description |
---|---|---|---|
xero-tenant-id | string | (Required) Xero identifier for Tenant | |
Content-Type | string |
RESPONSES
status: OK
{"Id":"80dcb65b-4d14-4350-84e6-1438a809244a","Status":"OK","ProviderName":"Java Public Example","DateTimeUTC":"/Date(1604457589645)/","ImportSummary":{"Accounts":{"Total":17,"New":0,"Updated":8,"Deleted":0,"Locked":0,"System":9,"Errored":0,"Present":true,"NewOrUpdated":8},"Organisation":{"Present":false}}}