Accounting

Sets the chart of accounts, the conversion date and conversion balances

post/Setup

Request

  • Base URL
    https://api.xero.com/api.xro/2.0
  • URL
    https://api.xero.com/api.xro/2.0/Setup
  • Auth
    OAuth 2
    Authorization code: https://login.xero.com/identity/connect/authorize
    Token URL: https://identity.xero.com/connect/token scopes: accounting.settings

Headers

Idempotency-Keystring

This allows you to safely retry requests without the risk of duplicate processing. 128 character max.

Request body

Example request

{
  "ConversionDate": {
    "Month": 1,
    "Year": 2020
  },
  "Accounts": [
    {
      "Name": "Food Sales",
      "AccountID": "00000000-0000-0000-0000-000000000000",
      "UpdatedDateUTC": "/Date(1573755038314)/"
    }
  ]
}

Response

Success - returns a summary of the chart of accounts updates

Changes

No recorded changes to this operation across all 62 revisions of this API.