GL Periods

Re-close an assigned customer's closed GL period in place after its ledger changed

For a closed month that changed after its close (#2835). Runs the same pre-close gate as the close route, brings the period's closing entry in line with its current profit and loss when it no longer matches, then moves closedAt to the database cutoff captured before review and closedByUserId to the caller. Changes after that cutoff keep the month-end closed_period_changed advisory for another review. The period stays closed throughout and no other period is touched, so it works for a month that has newer closed months after it. Writes an audit_logs entry (action reclose) with the supplied reason. The agent service API key may re-close a period as a high-impact operation with the same mandatory reason (2026-10-06, reversing #2411 for this route).

post/accountant/companies/{customerId}/gl-periods/{periodId}/reclose

Request

  • Base URL: https://api.medianfi.com/api/v1
  • URL: https://api.medianfi.com/api/v1/accountant/companies/{customerId}/gl-periods/{periodId}/reclose
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Request body

reasonstring required

What was reviewed, written to audit_logs.changes.reason.

Response

Period re-closed

successboolean

Changes

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