gl

Create Gl Fiscal Year

Open a fiscal year (accountant). 409 on a duplicate label or an overlapping range.

The year is created with its monthly periods — one per calendar month of the range, the first and last clipped to it (ZET-441) — so there is no period to create by hand afterwards. A range wider than 24 months is refused (422).

The year owns its own chart of accounts, and a new one starts empty — set carry_forward_chart to copy the most recent earlier year's chart into it as part of the create (ZCT-261). Left off, the chart is materialised lazily, the first time something codes into the year; POST …/{fiscal_year_id}/carry-forward-chart is the same copy on demand for a year that already exists.

post/companies/{company_id}/gl/fiscal-years

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/fiscal-years
  • Auth: none declared

Path parameters

company_idstring required

Headers

authorizationstring nullable

Cookies

access_tokenstring nullable

Request body

year_labelinteger required
date_fromstring date required
date_tostring date required
carry_forward_chartboolean

Response

Successful Response

idstring required
company_idstring required
year_labelinteger required
date_fromstring date required
date_tostring date required
statusstring required
closed_atstring date-time nullable
closed_bystring nullable
unsealed_atstring date-time nullable
unsealed_bystring nullable
unseal_reasonstring nullable
created_atstring date-time required

Changes

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