gl-actions

Gl Period Accrual Sweep

Run the period-end accrual sweep synchronously (accountant; human-initiated pre-close action — never scheduled; prepare-close-with-ai below runs the same sweep asynchronously via the work queue).

Finds cut-off candidates (schedule-less cross-boundary invoices, late invoices reaching back into the period), asks the stateless accountant for deterministic period_accrual proposals, and posts the ones that clear the company's autonomy policy as origin=ai (auto-reversing accruals / retro-deferral reclass + schedule). Held candidates surface in the autonomy activity feed and stay counted in close-checks. Idempotent per candidate.

post/companies/{company_id}/gl/periods/{period_id}/accrual-sweep

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/periods/{period_id}/accrual-sweep
  • Auth: none declared

Path parameters

company_idstring required
period_idstring required

Headers

authorizationstring nullable

Cookies

access_tokenstring nullable

Response

Successful Response

candidatesinteger required
skipped_fcyinteger required
postedinteger required
heldinteger required
shadowinteger required
journal_entry_idsstring[]

Changes

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