Skip to main content
POST
Supersede loan product chart of accounts

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Parâmetros de caminho

id
string<uuid>
obrigatório

Loan product identifier.

Exemplo:

"550e8400-e29b-41d4-a716-446655440000"

Corpo

application/json
accountingMode
enum<string>
obrigatório

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.

Opções disponíveis:
accrual,
cash
Exemplo:

"accrual"

effectiveFrom
string<date>
obrigatório

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.

Exemplo:

"2026-08-01"

postingRules
object[]
obrigatório

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.

Required array length: 7 - 20 elements
midazLedgerId
string

Optional per-product Midaz ledger the new chart's postings route into; both-or-neither with midazOrganizationId.

Maximum string length: 128
Exemplo:

"ledger-def"

midazOrganizationId
string

Optional per-product Midaz organization the new chart's postings route into; both-or-neither with midazLedgerId.

Maximum string length: 128
Exemplo:

"org-abc"

Resposta

Created

charts
object[]
obrigatório

The new chart written for every affected version, one per version.

effectiveFrom
string
obrigatório

First civil day (YYYY-MM-DD) the new chart governs.

Exemplo:

"2026-08-01"

loanProductId
string
obrigatório

The product whose chart changed (uuid).

Exemplo:

"550e8400-e29b-41d4-a716-446655440000"

movedPositions
object[]
obrigatório

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.