---
title: "Judge documents against a QuickBooks-ledger company's stored QuickBooks objects"
method: GET
path: "/accountant/companies/{customerId}/agent/quickbooks/document-verdicts"
tags: ["Accountant Portal"]
---

# Judge documents against a QuickBooks-ledger company's stored QuickBooks objects

`GET /accountant/companies/{customerId}/agent/quickbooks/document-verdicts`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/agent/quickbooks/document-verdicts`
- Auth: HTTP bearer

The bookkeeping agent's key only (#5669); anyone else gets 404, and so does a company that is neither on `PENNY_QBO_SHADOW_COMPANY_IDS` nor the production pilot. Read-only: reads the latest QuickBooks read Median already stores and writes, links, posts or calls nothing. For each document: `match` (exactly one eligible QuickBooks Purchase, or Bill or Purchase for a bill, with vendor and certified amount agreeing), `ambiguous`, `no_match`, `no_certified_amount`, `skipped` (already linked or from QuickBooks) or `unavailable` (the read is in progress, truncated, or changed mid-call). Ids not found at the company are listed in `notFound`. Refused with 409 when QuickBooks is not the company's ledger, 403 `AGENT_PHI_RESTRICTED` for a patient-data-restricted company, and 409 `AGENT_DISABLED` or `AGENT_KILLED` when the agent may not run there.

## Path parameters

- `customerId` string, uuid, required

## Query parameters

- `documentIds` string, required

## Response `200`

Success envelope

- object
  - `success` boolean, required
  - `data` object, required
    - `snapshot` PennyQuickBooksSnapshot, required: The stored QuickBooks read an answer comes from (#5669); both null when there is none.
      - `runId` string, uuid, nullable, required
      - `completedAt` string, date-time, nullable, required
    - `verdicts` object[], required
      - `documentId` string, uuid, required
      - `verdict` 'match' | 'ambiguous' | 'no_match' | 'no_certified_amount' | 'skipped' | 'unavailable', required
      - `reason` string, required
      - `quickBooks` object, nullable, required
        - `objectType` string, required
        - `providerId` string, required
        - `txnDate` string, date, required
    - `notFound` string[], required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Request conflicts with the durable onboarding state
- `422`: Validation error

## Changes

- **2026-11-27** `4522ab392ac0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/agent/quickbooks/document-verdicts/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)
