Supersede loan product chart of accounts
Replaces the chart of accounts every configured version of this loan product books against, from a stated month forward. One action, one effective date, every affected version written together or none. A version with no chart is not touched: giving it a first one is the separate configure action, and this route requires its own permission because replacing a live chart moves balances on every live contract.
Autorizaciones
JWT bearer token issued by the identity provider.
Parámetros de ruta
Loan product identifier.
"550e8400-e29b-41d4-a716-446655440000"
Cuerpo
Accounting recognition mode. It must match what the product already books under: the accrual basis is contract economics, frozen on the product version at origination, and only the chart of accounts is datable.
accrual, cash "accrual"
First civil day (YYYY-MM-DD) the new chart governs. Always a month start, and always a month that has not opened yet: a chart landing inside the open competência would change the accounts of a month already partly accrued, and one landing on a posted month could never be corrected — the ledger dedupes a replayed month on a key that does not carry which chart produced the posting, so the correction is built, sent, and dropped in silence.
"2026-08-01"
The complete new chart, in the same shape the configure route admits. It must keep every borrower position booked per operation, and must keep every per-operation position the outgoing chart had: a position the new chart stops booking leaves the balance already sitting there with nowhere to go, and the double entry would never complain.
7 - 20 elementsOptional per-product Midaz ledger the new chart's postings route into; both-or-neither with midazOrganizationId.
128"ledger-def"
Optional per-product Midaz organization the new chart's postings route into; both-or-neither with midazLedgerId.
128"org-abc"
Respuesta
Created
The new chart written for every affected version, one per version.
First civil day (YYYY-MM-DD) the new chart governs.
"2026-08-01"
The product whose chart changed (uuid).
"550e8400-e29b-41d4-a716-446655440000"
Every per-operation position that changes account. Each one produces a balance-transfer posting on the effective date, on every live contract of every affected version, so no contract ends with its balance split across two accounts. Empty means the change files nothing anywhere new.

