gl

Update Gl Account

patch/companies/{company_id}/gl/accounts/{account_id}

Request

  • Base URL: https://app.zeno-works.ch (the document declares no server; this is the origin it was published from)
  • URL: https://app.zeno-works.ch/companies/{company_id}/gl/accounts/{account_id}
  • Auth: none declared

Path parameters

company_idstring required
account_idstring required

Headers

authorizationstring nullable

Cookies

access_tokenstring nullable

Request body

namestring nullable
account_class'asset' | 'liability' | 'equity' | 'revenue' | 'expense'
normal_side'credit' | 'debit'
control_type'none' | 'ar' | 'ap' | 'bank' | 'vat_input' | 'vat_output' | 'payroll_liability' | 'fixed_asset' | 'inventory' | 'clearing' | 'suspense' | 'cash'
is_postableboolean nullable
currencystring nullable
is_contraboolean nullable
category'asset' | 'liability' | 'equity' | 'income' | 'expense' | 'tax' | 'other' | 'unknown'

The account-type axis of a ledger account (Swiss-KMU chart of accounts).

Distinct from — but derived from — LineRole (the journal-line semantic role). unknown is the conservative default when classification can't decide; other covers genuinely ambiguous / closing (9xxx) accounts.

is_intentionalboolean nullable
account_number_guessstring nullable
is_activeboolean nullable

Response

Successful Response

idstring required
company_idstring required
fiscal_year_idstring required

The fiscal year whose chart this account belongs to. Chart identity is (company, fiscal_year, code) — each year owns its chart, so a request that omits ?fiscal_year returns every year's row for a code. Match on this field (or on the fiscal_year label beside it, or filter by ?fiscal_year) rather than picking a repeated code by created_at. A year's chart is cloned from the prior year ONCE, when that year's chart is first materialised — an account created afterwards exists only in the year that created it, and is carried into the next year by the year-end rollforward (ZET-266), not automatically.

fiscal_yearinteger nullable

The year label of fiscal_year_id (e.g. 2026).

codestring required
namestring required
account_classstring required
normal_sidestring required
is_postableboolean required
control_typestring required
currencystring nullable
is_activeboolean required
is_contraboolean
categorystring nullable
is_intentionalboolean
account_number_guessstring nullable
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.