Create or run companies month end close lock
Changed onGenerated minimal contract (#1940): parameters, auth, and status codes are authoritative; see the route handler for the exact body/response shape. Enrichment tracked by the x-median-spec-stage marker. #4361: on a B1–M21 period the lock needs every step before M20 completed or skipped (a 422 names the rest) and reruns the M1, M2 and M7 0.00 gates (422 close_gate_failed), and a successful lock completes M20 for the user who locked; a legacy period needs all five steps. #4362: on a B1–M21 period the lock is the M20 sign-off: 403 close_step_role_required unless the caller's role is reviewer or firm_admin, and 403 close_preparer_cannot_sign_off when a caller other than the firm admin completed a Preparer step of that month (extensions.step: M20).
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
Request body
Response
Success envelope; see the route handler for the payload shape
Changes
- info
added the non-success response with the status
- info