Accountant Documents

The document match policy's verdict for one document

Changed on

The one rule every automated matcher applies (match / hold / no_fit, with a reason code and the candidate bank rows). Read only: it changes no link and records nothing. Reachable by an assigned accountant, the bookkeeping service token and the bookkeeping agent key. The agent key reads the verdict as the agent may act on it: a writable match of a pair a person unmatched or rejected comes back with writeAllowed false and reason pair_rejected_by_person. Any other writable match stays writable only once its date window has really closed: the window's last day is past and every bank or card account the window waits on is covered through it by evidence (a completed feed sync less the account's posting lag, a Stripe backfill, a completed reconciliation, or a QuickBooks reconciled-through date; never the newest row's date). Until then it comes back with writeAllowed false, recheck true and reason window_open (the agent waits and judges it again). Unreadable evidence keeps the window open. An entity no live source delivers to (CSV or manual rows only) is writable at once. Everyone else reads the policy's verdict unchanged.

get/accountant/companies/{customerId}/documents/{documentId}/match-judgment

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Path parameters

customerId, string uuid required
documentId, string uuid required

Response

The verdict

object required
success, true required
data, DocumentMatchJudgment required

Example response

{
  "data": {
    "policyVersion": "2026-10-15.1"
  }
}

Changes