---
title: "List Stripe rows booked twice that block the close"
method: GET
path: "/accountant/companies/{customerId}/agent/stripe-duplicate-je-repairs"
tags: ["Accountant Portal"]
---

# List Stripe rows booked twice that block the close

`GET /accountant/companies/{customerId}/agent/stripe-duplicate-je-repairs`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/agent/stripe-duplicate-je-repairs`
- Auth: HTTP bearer

The bookkeeping agent's key only. Read-only. Stripe balance transactions the close-blocker audit finds booked twice (a `system` entry from the balance sync and a categorized `transaction` entry) with open `duplicate_stripe_je` blockers, all of severity `block` (a same-day `warn` may still be in flight and is not listed). The entry kept must be a real cover (the mirror's own categorized entry or a transfer consolidation over it, moving Stripe Clearing by the row's net; the mirror's own entry kept when the system entry is voided must also book every other account exactly as the system entry does), else the row is blocked `not_a_duplicate`; a transaction-side row still inside the Stripe sync's 48-hour read-back window is blocked `in_sync_window`, and one whose transaction would be soft-deleted while the Stripe activity queue still has an item open for it is blocked `sync_work_pending`. `ready` lists repairs the agent may make, each with the side to void (`strategy`: a payout, or a cover found by line linkage, voids the system entry and keeps the categorized one; every other type voids the categorized entry and soft-deletes its transaction, or keeps the transaction, `softDeleteTransactionId` null, when the system entry kept names it on its lines) and the fingerprint its write must carry; `blocked` groups the rest by reason. `status` is `not_configured` on a deployment without the Postgres journal funnels. Ids, codes, cents and dates only. Refused with 403 `AGENT_PHI_RESTRICTED` for a patient-data-restricted company. Mounted only when the deployment enables the bookkeeping agent; otherwise 404. The shared cloud-bookkeeping service token gets 404 here.

## Path parameters

- `customerId` string, uuid, required

## Response `200`

Success envelope

- object
  - `success` boolean, required
  - `data` object, required
    - `status` 'ok' | 'not_configured', required
    - `truncated` boolean, required: More rows than one read classifies (200), more open blockers than one read takes (500), or more ready repairs than it returns (25).
    - `ready` object[], required
      - `balanceTransactionId` string, uuid, required
      - `stripeTxnId` string, required
      - `sbtType` string, required
      - `strategy` 'void_system_je' | 'void_transaction_je_and_soft_delete_txn', required
      - `voidJournalEntryId` string, uuid, required
      - `keepJournalEntryId` string, uuid, required
      - `softDeleteTransactionId` string, uuid, nullable, required: The transaction soft-deleted with the void. Null on the system side, and on the transaction side when the system entry kept names the transaction on its lines (it is kept).
      - `transactionId` string, uuid, required
      - `closeBlockerIds` string[], required
      - `amountCents` integer, required: Integer cents, as the audit reads the Stripe row.
      - `occurredOn` string, date, required
      - `entryDate` string, date, required
      - `fingerprint` string, required
    - `blocked` object[], required
      - `reason` 'period_filing_locked' | 'period_closed' | 'writer_stood_down' | 'entry_reconciled' | 'transaction_reconciled' | 'transaction_linked' | 'entry_shared' | 'not_a_duplicate' | 'in_sync_window' | 'sync_work_pending' | 'ambiguous_pair' | 'evidence_differs' | 'policy_event_type_held' | 'unexpected_shape' | 'entity_mismatch' | 'already_repaired' | 'already_voided', required: The original Stripe reporting categories transfer, transfer reversal, adjustment and other adjustment are held for accounting review as `policy_event_type_held`.
      - `count` integer, required
      - `stripeTxnIds` string[], required
      - `oldestOn` string, date, required
      - `newestOn` string, date, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: The agent is not enabled for this company, or its kill switch is on

## Changes

- **2026-11-28** `24ced4d421d8`: 1 warning
  - added the new `policy_event_type_held` enum value to the `data/blocked/items/reason` response property for the response status `200`
- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

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