Accounting

Update a chart account

Updates code, name, subType, isActive, description, reportingRole, or type. type switches an asset, liability, or equity account among those three; a linked bank register follows (asset becomes checking, liability becomes a loan, or a card when subType is credit_card), the name suffix and subtype follow, and an incompatible reporting role is cleared. Revenue and expense keep their type (422 account_type_not_switchable). A register can't become equity (422 account_type_register_equity). Control accounts (409 account_type_control_account) and registers with a reconciliation in progress (409 account_type_reconciliation_in_progress) can't switch. Journal debits and credits never change.

patch/accounts/{accountId}

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/accounts/{accountId}
  • Auth: one of:
    • HTTP bearer and API key in header x-organization-id
    • HTTP bearer and API key in header x-organization-id

Path parameters

accountIdstring uuid required

Chart account UUID

Request body

codestring
namestring
subTypestring nullable
isActiveboolean
descriptionstring nullable
reportingRolestring nullable
type'asset' | 'liability' | 'equity'

Response

The updated account

Changes

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