---
title: "The document match policy's verdicts for up to 50 documents"
method: GET
path: "/accountant/companies/{customerId}/documents/match-judgments"
tags: ["Accountant Documents"]
---

# The document match policy's verdicts for up to 50 documents

`GET /accountant/companies/{customerId}/documents/match-judgments`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/documents/match-judgments`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Each verdict as the single read returns it, for the same callers (the agent key's writable matches are gated by the settle window, as described there).

## Path parameters

- `customerId` string, uuid, required

## Query parameters

- `documentIds` string, required

## Response `200`

One verdict per readable document; unknown or unreadable ids are listed in notFound

- object
  - `success` true, required
  - `data` object, required
    - `judgments` DocumentMatchJudgment[], required
      - `policyVersion` string, required
      - `documentId` string, uuid, required
      - `documentType` 'invoice' | 'bill' | 'receipt' | 'contract', required
      - `verdict` 'match' | 'hold' | 'no_fit', required
      - `reason` 'unique_strict_match' | 'unique_after_dropping_applied' | 'bill_terms_window_match' | 'pair_rejected_by_person' | 'window_open' | 'possible_duplicate' | 'billed_party_mismatch' | 'other_client_ledger_hit' | 'cross_company_duplicate' | 'phi_content' | 'unassigned' | 'archived' | 'already_linked' | 'unsupported_document_type' | 'qbo_history' | 'missing_required_evidence' | 'ambiguous_candidates' | 'candidates_already_applied' | 'category_conflict' | 'recurring_bill_terms_window' | 'payment_before_bill_date' | 'competing_open_bill' | 'payment_in_closed_period' | 'vendor_unconfirmed' | 'amount_near_miss' | 'no_bank_row_feed_covers' | 'no_bank_row_feed_gap', required: `pair_rejected_by_person` and `window_open` only in the bookkeeping agent key's read (verdict match, writeAllowed false): a person unmatched or rejected this pair; evidence does not yet show the match's date window complete (judged again later)
      - `transactionId` string, uuid, nullable, required: The bank row; set only when verdict is match
      - `openItem` boolean, required: An accountant must look
      - `recheck` boolean, required: Judge again on the next run
      - `writeAllowed` boolean, required: An automated path may write this verdict
      - `shadow` boolean, required: A match judged but never written (bill terms-window matches; invoices until their AR posting)
      - `evidenceNote` string, nullable, required: Why the match is safe; set on every writable match, for the evidence record
      - `holds` object[], required
        - `reason` 'possible_duplicate' | 'billed_party_mismatch' | 'other_client_ledger_hit' | 'cross_company_duplicate' | 'phi_content', required
        - `detail` object
      - `candidates` object[], required
        - `transactionId` string, uuid, required
        - `occurredOn` string, date, required
        - `amountCents` integer, required
        - `currency` string, required
        - `direction` 'in' | 'out', required
        - `description` string, required
        - `merchantName` string, nullable, required
        - `dateDiffDays` integer, required
        - `vendorScore` number, required
        - `window` 'strict' | 'bill_terms' | 'nearby', required
        - `disposition` 'eligible' | 'applied_to_same_vendor_amount' | 'transaction_already_linked' | 'category_conflict', required
        - `pairsWithDocumentId` string, uuid, nullable, required
    - `notFound` string[], required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `422`: Request failed validation

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/documents/match-judgments/get.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
