Accounting

Updates a chart of accounts

post/Accounts/{AccountID}

Request

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

Path parameters

AccountIDstring uuid required

Unique identifier for Account object

Headers

Idempotency-Keystring

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

Request body

Example request

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

Response

Success - update existing Account and return response of type Accounts array with updated Account

Example response

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

Changes

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