Run the duplicate bill-accrual journal-entries repair (#1704)
Detects groups of posted document-sourced Bill accrual: journal entries duplicating the same (company, description, date, amount) and (on apply) voids the surplus entries through the atomic void-with-audit-and-recompute funnel, keeping the adjudicated or earliest-posted entry. Groups with distinct invoice numbers or reconciled surplus entries are reported, never touched. Dry-run by default; apply additionally requires companyId and confirm set to exactly REPAIR <companyId>. Fleet-wide apply is refused. Requires a human bearer JWT whose user id is present in the immutable server-owned SUPER_ADMIN_USER_IDS allowlist; API keys cannot call this operation. Every void is audit-logged with the caller as actor.
Request
- Base URL: https://api.medianfi.com/api/v1
- URL: https://api.medianfi.com/api/v1/admin/repairs/duplicate-bill-accruals
- Auth: HTTP bearer
Request body
Response
JSON change ledger (proposals, voids, failures, remaining work)
Changes
No recorded changes to this operation across all 1 revision of this API.