---
title: "Read the client facts the bookkeeping agent works with"
method: GET
path: "/accountant/companies/{customerId}/agent/client-facts"
tags: ["Accountant Portal"]
---

# Read the client facts the bookkeeping agent works with

`GET /accountant/companies/{customerId}/agent/client-facts`

## Request

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

Rule P1 (#2587): owners and related parties, the revenue accounts, the capitalization threshold and materiality, each with its source (`inferred` from the books, a `default`, or `confirmed` by an accountant), the evidence and who confirmed it. Inferred and default facts are worked out again on every read, so they follow the books; a confirmed fact is never replaced by inference. Readable by the bookkeeping agent's key (409 AGENT_DISABLED / AGENT_KILLED, or 403 for a patient-data company, when it may not work there) and by human accountants assigned to the customer. The shared cloud-bookkeeping service token gets 404. Money is integer cents. Mounted only when the deployment enables the bookkeeping agent (default off); otherwise 404.

## Path parameters

- `customerId` string, uuid, required

## Response `200`

Success envelope

- object
  - `success` boolean, required
  - `data` AgentClientFacts, required: The five top-level facts and `source` are the bookkeeping agent's contract. `confirmedAt` is when the last of the four facts was confirmed, null until all four are; `source` is the weakest source among them (default, then inferred, then confirmed). Defaults: materiality 100000 cents ($1,000), capitalization threshold 250000 cents ($2,500, the IRS de minimis safe harbor).
    - `materialityCents` integer, required
    - `capitalizationThresholdCents` integer, required
    - `revenueGlAccountIds` string[], required
    - `owners` AgentClientOwner[], required
      - `name` string, required: The name or payee identity as it appears on the client's bank rows.
      - `relationship` 'owner' | 'investor' | 'related_party', required
    - `confirmedAt` string, date-time, nullable, required
    - `source` 'inferred' | 'default' | 'confirmed', required
    - `facts` object, required: Per-fact source, evidence and confirmation.
      - `owners` object, required
        - `value` AgentClientOwner[], required
          - `name` string, required: The name or payee identity as it appears on the client's bank rows.
          - `relationship` 'owner' | 'investor' | 'related_party', required
        - `source` 'inferred' | 'default' | 'confirmed', required
        - `evidence` string[], required
        - `confirmedAt` string, date-time, nullable, required
        - `confirmedByUserId` string, uuid, nullable, required
        - `confirmedByName` string, nullable, required
      - `revenueGlAccountIds` object, required
        - `value` string[], required
        - `source` 'inferred' | 'default' | 'confirmed', required
        - `evidence` string[], required
        - `confirmedAt` string, date-time, nullable, required
        - `confirmedByUserId` string, uuid, nullable, required
        - `confirmedByName` string, nullable, required
      - `capitalizationThresholdCents` object, required
        - `value` integer, required
        - `source` 'inferred' | 'default' | 'confirmed', required
        - `evidence` string[], required
        - `confirmedAt` string, date-time, nullable, required
        - `confirmedByUserId` string, uuid, nullable, required
        - `confirmedByName` string, nullable, required
      - `materialityCents` object, required
        - `value` integer, required
        - `source` 'inferred' | 'default' | 'confirmed', required
        - `evidence` string[], required
        - `confirmedAt` string, date-time, nullable, required
        - `confirmedByUserId` string, uuid, nullable, required
        - `confirmedByName` string, nullable, required
    - `classRequired` boolean, required: A class is required on a categorized row of this client (D02). Worked out on every read from the books: the client tracks at least one active accounting class. Not stored or confirmed.
    - `classRequiredEvidence` string[], required
    - `receiptsPolicy` object, nullable, required: BK-134: the client's receipt policy from its confirmed `receipts` fact (a proposal or no fact is null). `thresholdCents` is the amount a receipt is required over (strictly); null when the policy names no amount, such as "Not required".
      - `value` string, required
      - `thresholdCents` integer, nullable, required
    - `answerFacts` object, required: BK-049: the confirmed value of each of the five client facts an accountant's answer may propose (a proposal or no fact is null), so the agent does not propose a fact the client already has.
      - `payroll_provider` string, nullable, required
      - `credit_cards` string, nullable, required
      - `payment_processor` string, nullable, required
      - `prepaids` string, nullable, required
      - `owner_pay` string, nullable, required
    - `prepaidsPolicy` object, nullable, required: BK-130 / BK-131: the client's prepaid policy from its current `prepaids` fact, confirmed or only proposed (a draft gets no prepaid treatment; the agent asks), or null with none. `thresholdCents` and `minMonths` are null when the text does not name them clearly.
      - `status` 'confirmed' | 'proposed', required
      - `value` string, required
      - `thresholdCents` integer, nullable, required
      - `minMonths` integer, nullable, required
    - `basis` 'cash' | 'accrual' | 'null', nullable, required: BK-130 the client's accounting basis (statement basis, book basis, tax settings, then the company's own method), or null when none says cash or accrual.
    - `revenueAccounts` object[], required: Every revenue account of the company, for display and editing.
      - `id` string, uuid, required
      - `code` string, required
      - `name` string, required
      - `isActive` boolean, 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

## Changes

- **2026-11-26** `4a2098becaf9`: 6 info
  - added the required property `data/answerFacts` to the response with the `200` status
  - added the required property `data/basis` to the response with the `200` status
  - added the required property `data/classRequired` to the response with the `200` status
  - added the required property `data/classRequiredEvidence` to the response with the `200` status
  - …2 more
- **2026-10-29** `e1fc804546d3`: 1 info
  - endpoint added

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