Skip to main content

Close Period

POST 

/api/ledger/close/periods/:period/close

Close and lock the period. Only the earliest non-closed month can close (periods close strictly in order). Every failing blocking check refuses the close; every warning-level failure and incomplete manual item must be listed in acknowledged_keys. The close runs as a background job that re-validates all gates, snapshots the report pack, inserts the period lock (new entries dated on or before the period end are refused; corrections are redated to the first open day), and records the sign-off. Returns the background job id.

Authentication: Bearer token. Requires the accounting settings management permission.

Errors: 422 when a blocking check fails, an acknowledgement is missing, the month is out of order, or another close is already running.

Request

Responses

OK

Response Headers
    Content-Type