---
title: "The p11 Documents tabs for a month (#2587)"
method: GET
path: "/accountant/companies/{customerId}/document-tabs"
tags: ["Accountant Portal"]
---

# The p11 Documents tabs for a month (#2587)

`GET /accountant/companies/{customerId}/document-tabs`

## Request

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

Documents received in `month` (YYYY-MM by received date; default the current UTC month), with the accountant document queue's own hidden documents left out, plus current holds that have no document yet. A row is `held` while its document has an open hold (or it is forwarded mail held at intake, or a quarantined Gmail file: then `documentId` is null and `heldItemId` is set), else `matched` when the document has a matched row, else `needs_person` (including a document with only a proposed match). `counts.all` counts every listed item and need not equal the sum of the three tabs' definitions on other screens. `counts` and the `sources`, `types` and `reasons` menus cover the whole month; `rows` follow `tab`, `type`, `source` and `reason`, newest first, paged by `limit` and the numeric `cursor`. `source` is derived (upload, email, gmail, integration, other; Drive files are hidden by the queue). Held mail is mail held for a person and not yet decided (not mail routed to Jacob); at a patient-data client its subject is withheld, and only quarantined Gmail files the PHI screen cleared are listed; a quarantined file of a hidden document never is. `hold.reasonLabel` maps known codes to the drawn labels, null otherwise. `schedule` is the document's newest contract schedule that is not rejected. Read-only. A signed-in person only: every API key is refused, the service token included (404).

## Path parameters

- `customerId` string, uuid, required

## Query parameters

- `month` string
- `tab` 'needs_person' | 'matched' | 'held' | 'all'
- `type` string
- `source` 'upload' | 'email' | 'gmail' | 'integration' | 'other'
- `reason` string
- `limit` integer
- `cursor` integer

## Response `200`

The month's tabs, menus and one page of rows

- object
  - `success` true, required
  - `data` object, required
    - `companyId` string, uuid, required
    - `month` string, required
    - `counts` object, required
      - `needsPerson` integer, required
      - `matched` integer, required
      - `held` integer, required
      - `all` integer, required
    - `sources` object[], required
      - `key` string, required
      - `count` integer, required
    - `types` object[], required: PG-p11-016: `matched` counts that type's rows in the Matched tab this month, whatever the page.
      - `key` string, required
      - `count` integer, required
      - `matched` integer, required
    - `reasons` object[], required
      - `key` string, required
      - `label` string, nullable, required
      - `count` integer, required
    - `refusedMail` object, nullable: PG-p11-019: at a patient-data client, the mail intake refused (inbound result `refused`) received over the 7 days ending now (`from`..`to`, UTC instants). Null at any other client. Read only, from what intake already stored.
      - `from` string, date-time, required
      - `to` string, date-time, required
      - `count` integer, required
    - `rows` object[], required
      - `documentId` string, uuid, nullable, required
      - `heldItemId` string, uuid, nullable, required
      - `tab` 'needs_person' | 'matched' | 'held', required
      - `type` string, nullable, required
      - `source` 'upload' | 'email' | 'gmail' | 'integration' | 'other', required
      - `name` string, nullable, required
      - `vendor` string, nullable, required
      - `amountCents` integer, nullable, required
      - `documentDate` string, date, nullable, required
      - `receivedAt` string, date-time, required
      - `match` object, nullable, required
        - `transactionId` string, uuid, required
        - `status` 'applied' | 'proposed', required
        - `confidence` number, nullable, required
        - `appliedBy` 'penny' | 'person' | 'null', nullable, required
      - `schedule` object, nullable, required
        - `status` 'proposed' | 'approved' | 'applied', required
        - `scheduleId` string, uuid, required
      - `extractionStatus` 'pending' | 'completed' | 'failed' | 'null', nullable, required: #4701: the newest extraction's status; pending is the list's "Reading". Null for held items and documents never read.
      - `hold` object, nullable, required
        - `reason` string, required
        - `reasonLabel` string, nullable, required
        - `store` 'document_hold' | 'gmail_quarantine' | 'held_mail' | 'unassigned', required: unassigned (MI-073): a document not assigned to an entity yet, such as forwarded mail; reason is unassigned, its name is null at a patient-data client, and its detail and history open.
        - `heldAt` string, date-time, required
        - `decision` unknown, required
    - `filteredTotal` integer, required: #4701: rows under the tab, type, source and reason filters across all pages (the list's "of N"); counts cover the whole month.
    - `nextCursor` integer, nullable, 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/document-tabs/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)
