Void the duplicate journal entry of one Stripe row booked twice
Changed onThe bookkeeping agent's key only, a high-impact write that voids a journal entry. Needs X-Agent-Run-Id and X-Agent-Evidence-Id; the evidence must be a repair_duplicate_stripe_je intent naming this row whose before.fingerprint equals the body's (otherwise 403 AGENT_EVIDENCE_MISMATCH). The API re-detects the pair with the close-blocker audit's own read and refuses with 409 on any difference: DUPLICATE_STRIPE_JE_REPAIR_TARGET_CHANGED, DUPLICATE_STRIPE_JE_REPAIR_BLOCKED (with the reason), DUPLICATE_STRIPE_JE_REPAIR_DONE or DUPLICATE_STRIPE_JE_REPAIR_NOT_APPLICABLE; a filing-locked period (422 JOURNAL_ENTRY_PERIOD_LOCKED) and a reconciled entry or transaction (422) are refused by the journal funnel. Exactly one side is voided through the existing funnel (the atomic void, or the atomic transaction soft-delete when the transaction goes too), in one database transaction with the repair record and the row's open duplicate_stripe_je blockers resolved. A write that loses a race for the same row answers DUPLICATE_STRIPE_JE_REPAIR_DONE or DUPLICATE_STRIPE_JE_REPAIR_TARGET_CHANGED. Returns the state before and the state read back after (transactionDeleted: the transaction side's transaction, true once soft-deleted, false when kept; null on the system side). Refused with 403 AGENT_PHI_RESTRICTED for a patient-data-restricted company. The shared cloud-bookkeeping service token gets 404 here.
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
Request body
Response
Success envelope
Changes
- info
endpoint added
- info