---
title: "Get customer books integrity check status (accountant mirror)"
method: GET
path: "/accountant/companies/{customerId}/books-integrity"
tags: ["Accountant Portal"]
---

# Get customer books integrity check status (accountant mirror)

`GET /accountant/companies/{customerId}/books-integrity`

## Request

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

Read-only accountant mirror of `GET /companies/{companyId}/books-integrity` (#4067, #2010). Returns the stored verdict without re-running ledger invariants or exposing invariant details. Human bearer only; service tokens receive 404.

## Path parameters

- `customerId` string, uuid, required

## Response `200`

Latest integrity verdict, or not_checked when none exists

- BooksIntegrityStatusResponse
  - `success` true, required
  - `data` BooksIntegrityStatus, required: The company's latest automated books integrity verdict (#2010). Built from each scheduled check window's latest passed or failed run; errored, skipped and operator runs are not verdicts. `failing` while any window's latest verdict failed on at least one invariant other than the books invariants I22–I30, or on the books invariant I25 (business event failed to post). The other books invariants, including I29 (books differ from the bank balance, #4953), never make it `failing` by themselves. `not_checked` means no verdict exists and is not a failure. No invariant codes, counts or amounts are exposed.
    - `companyId` string, uuid, required
    - `status` 'failing' | 'passing' | 'not_checked', required
    - `checkedAt` string, date-time, nullable, required: failing: when the most recent failing check finished. passing: when the most recent check finished. not_checked: null.

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member

## Changes

- **2026-11-25** `3ea7ae2c311e`: 1 info
  - endpoint added

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