Accountant Portal

Execute Penny guarded close-prep accrual/depreciation pass (Phase 3 writer)

Changed on

Agent principal only (requires verified Google Workload Identity in production, X-Agent-Run-Id, and X-Agent-Evidence-Id with actionType=run_close). Never closes or filing-locks a GL period. Enforces the 2026-11-01 floor (422 AGENT_WRITE_BEFORE_FLOOR), books-sound gate, F21/F31 live holds, named agent R5 attribution, and human-only undo.

post/accountant/companies/{customerId}/agent/close/run

Request

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

Path parameters

customerId, string uuid required

Headers

X-Agent-Run-Id, string uuid required
X-Agent-Evidence-Id, string uuid required

Request body

object required
openFrom, string date
asOfDate, string date
dryRun, boolean
entries, object[]

Response

Close-prep pass result

object required
success, boolean required
data, object required

Changes

    • warning

      added the new shadow enum value to the data/status response property for the response status

    • warning

      added the new shadow_dry_run enum value to the data/status response property for the response status

    • info

      added the new optional request property entries/items/lines/items/sourceIds

    2 more changes in this revision