Month-End Close

Close consecutive GL periods in sequence (batch month-end lock)

Closes each supplied period in order — the same closing-entry and retained-earnings effect as the single gl-periods close, applied per period. Aborts on the first failure (including any unresolved block-severity close blocker) and returns the per-period status so the caller can see which period broke. Signed-in accountants only: the service API key cannot use the batch lock (#2411); it closes one period at a time through the single gl-periods close. #4362: any B1–M21 period in the list is an M20 sign-off, with the lock's 403s (close_step_role_required, close_preparer_cannot_sign_off), checked for every period before the first one closes.

post/accountant/companies/{customerId}/month-end-close/batch-lock

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

customerId, string uuid required

Request body

object required
periodIds, string[] required

Response

Per-period close results; allClosed is false when the sequence aborted

object required
success, boolean
data, object

Changes

No recorded changes to this operation across all 110 revisions of this API.