Create Gl Account
Create one chart account (accountant). 409 on a duplicate code in the target year.
The chart is FY-scoped — identity is (company, fiscal_year, code) — so this writes into exactly one year. body.fiscal_year names it (ZET-266): the requested year, created if absent; else the company's working year — an open year, preferring one with a chart, then the newest (not simply the newest, which after a rollover is next year's empty shell); else, when no year is open, the newest (sealed, so refused); else the current calendar year. A closed year is refused with 409, its chart being sealed. The response echoes both fiscal_year_id and its fiscal_year label, so the caller can see where the row landed instead of inferring it.
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
- Auth: none declared
Path parameters
Headers
Cookies
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.