---
title: "Read a client's patient-data answer"
method: GET
path: "/accountant/companies/{customerId}/patient-data"
tags: ["Accountant Portal"]
---

# Read a client's patient-data answer

`GET /accountant/companies/{customerId}/patient-data`

## Request

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

#4334 (plan F27): whether the client has patient data, who confirmed it and when, and every answer recorded before it (`history`, oldest first). No recorded answer reads `unset`. A person's read: every API key, the cloud-bookkeeping service token and the agent's key get 404.

## Path parameters

- `customerId` string, uuid, required

## Response `200`

Success envelope

- object
  - `success` boolean, required
  - `data` object, required
    - `companyId` string, uuid, required
    - `state` 'unset' | 'yes' | 'no', required: `unset` until a person records the answer. `unset` and `yes` both mean no model call for the bookkeeping agent, no mail intake stored and no agent run; only `no` allows them.
    - `confirmedByUserId` string, uuid, nullable, required
    - `confirmedAt` string, date-time, nullable, required
    - `confirmedByName` string, nullable: The confirmer's name, for the screen; null when unset or unknown.
    - `turnedOnBy` object, nullable: Who turned the restriction on (the `yes` now in force). Null at `unset` and `no`. `name` is null when the person has none on file.
      - `id` string, uuid, required
      - `name` string, nullable, required
    - `turnedOnAt` string, date-time, nullable: When the restriction was turned on. Null at `unset` and `no`.
    - `viewerCan` object: What the signed-in person may record at this client. `turnOn` is a super-admin or the client's close reviewer; `turnOff` (recording a `no`) is a super-admin.
      - `turnOn` boolean, required
      - `turnOff` boolean, required
    - `history` object[]
      - `confirmedByName` string, nullable
      - `id` string, uuid
      - `previousState` 'unset' | 'yes' | 'no'
      - `state` 'yes' | 'no'
      - `confirmedByUserId` string, uuid
      - `reason` string, nullable
      - `createdAt` string, date-time

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `503`: The patient-data record could not be read. Retry.

## Changes

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

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