Month-End Close

A person records a close check's result (F4)

Changed on

Appends one row to the check store. Evidence is required (422 when empty). Each state carries what it needs (a reason for blocked, n/a, needs-client, disclosed; an amount for disclosed). fixed needs a read-back from the live books, and for a computable check the API re-runs it and refuses (409 CLOSE_CHECK_FIX_NOT_CONFIRMED) unless it passes. For a check the API cannot compute (no evaluator), the caller's readBack must carry source (where the fix was read back from the live books) and readAt (when, a timestamp), else 422; the API cannot verify them (C12, CL-076). waived-by-Jacob is recorded only by the accountant configured as Jacob (PENNY_JACOB_ACCOUNTANT_ID; CL-077), still with a reason and evidence; the server stamps waivedByUserId with the signed-in person, whatever the body says. Anyone else, or any caller while no accountant is configured as Jacob, gets 403 CLOSE_CHECK_WAIVER_JACOB_ONLY. A waiver ends a needs-client hold, passes the package gate, and voids an M19 sign-off given before it (the month's fingerprint changes). Refused for every API key.

post/accountant/companies/{customerId}/month-end-close/checks/results

Request

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

Path parameters

customerId, string uuid required

Request body

object required
month, string required
checkId, string required
state, 'pass' | 'fixed' | 'disclosed' | 'needs-client' | 'waived-by-Jacob' | 'blocked' | 'n/a' required
evidence, object required
reason, string nullable
amountCents, integer nullable
readBack, object nullable

Response

The row appended

object required
success, boolean
data, object

Changes