Create loan product accounting profile
Configures the accounting profile for a loan product version that belongs to the path loan product.
Authorizations
JWT bearer token issued by the identity provider.
Path Parameters
Loan product identifier.
"550e8400-e29b-41d4-a716-446655440000"
Body
Accounting recognition mode.
accrual, cash "accrual"
Loan product version identifier.
"550e8400-e29b-41d4-a716-446655440001"
Non-null GL account mappings per accounting event. New profiles require disbursement, repayment, prepayment, accrual, collection_unapplied, collection_reapply, and collection_refund; accrual_tax, accrual_fee_amortization, assignment_derecognition, assignment_retained_settlement, assignment_secured_borrowing, assignment_funding_amortization, assignment_funding_payoff, assignment_repurchase, refinance_payoff, refinance_payoff_reversal, provision_constitution, provision_reversal, renegotiation_gain, renegotiation_loss, renegotiation_derecognition, renegotiation_recognition, returned_payment_recognition, returned_payment_provision_constitution, returned_payment_provision_reversal and returned_payment_write_off are optional. A product whose receivables are ever assigned to a fund MUST carry assignment_derecognition: the cession flip and its write-off are both-or-nothing, so an acceptance over a product without it refuses and queues an exception case. It MUST also carry assignment_retained_settlement to be sellable mid-cycle: an instalment that fell due before the cession cut stays with the assignor, and this rule names the account it is reclassified into at acceptance and liquidated out of when its payroll repasse lands. Without it an acceptance over a receivable that retains one refuses instead of selling flow the fund did not buy. A product whose receivables are ever assigned WITH the assignor answering for them (coobrigação) MUST carry assignment_secured_borrowing: Res. CMN 4.966 art. 29 keeps such a receivable on the balance sheet and turns the price received into an obligation measured at amortized cost, appropriated over the remaining term, so this rule names the liability account the consideration is credited to. It is a different posting and not a variant of the write-off — it credits no receivable and books no gain or loss on the sale date — and a cession declared with retained risk over a product that lacks it is REFUSED rather than booked down the write-off path, which would take off the balance sheet the one asset regulation requires to stay on it. Such a product MUST carry assignment_funding_amortization beside it: the sale raises an obligation carried for the whole remaining term and the repasse posting is the only thing that ends it, so a chart with the sale rule alone can open a liability it can never close. The two are accepted together — a retained-risk cession over a product missing assignment_funding_amortization is refused AT ACCEPTANCE, before any obligation exists, rather than months later at the first repasse. assignment_funding_payoff ends a cession early and is not required yet; it becomes required on the same terms once the early-end payoff is issuable. Both stay optional to every product that does not sell with retained risk. A product whose sold receivables can be settled early by the bancarizador (a refinance) MUST carry assignment_repurchase: without it the fund-settlement receipt is refused, because flipping the contract back onto this book with nothing to recognize the asset against is the failure the both-or-nothing rule exists to stop. A product that is refinanced MUST also carry refinance_payoff and refinance_payoff_reversal, which discharge the old contract against the bancarizador warehouse advance and restore it if the rail undoes the swap inside its regret window. A product that retains an origination fee at disbursement MUST carry accrual_fee_amortization, and its disbursement rule MUST carry the optional origination_fee component credit leg: the fee is withheld from the borrower's cash at t0 and earned back as yield over the life, so without them the fee has no account to be deferred in and none to be earned out of, and every centavo of it is refused rather than falling back onto the borrower's interest receivable. A product booked under Brazilian credit-loss rules MUST carry provision_constitution and provision_reversal: the engine measures every contract's provision on every business date and posts the movement against the previous measurement, so a product without them accrues a measured provision that never reaches the ledger. A product whose contracts are renegotiated under Res. CMN 4.966/2021 art. 22 MUST carry renegotiation_gain and renegotiation_loss: a NON-substantial modification settles the difference between the modified payments and the carrying amount immediately, and a product with neither computes an adjustment with nowhere to book it. It MUST carry renegotiation_derecognition and renegotiation_recognition to be renegotiated SUBSTANTIALLY: that modification ends the old contract and mints a new one, so the two halves post separately against a bridge account, and a product missing either would derecognise a contract with nothing recognised in its place. A product whose final payments can be given back after the payroll mandate is already gone MUST carry returned_payment_recognition together with returned_payment_provision_constitution, returned_payment_provision_reversal and returned_payment_write_off: the diverted payment becomes a debt of the borrower's own that is due from day 1 and provisions by age on this product's own ladder, so a chart that can open one and cannot provision it is refused here rather than at 05:00 on the nightly sweep, where the debt would sit at face value for ever with nothing flagging it.
7 - 27 elementsOptional per-product Midaz ledger the profile's postings route into; both-or-neither with midazOrganizationId. Required under multi-tenant mode; empty single-tenant profiles fall back to the env default.
128"ledger-def"
Optional per-product Midaz organization the profile's postings route into; both-or-neither with midazLedgerId. Required under multi-tenant mode; empty single-tenant profiles fall back to the env default.
128"org-abc"
Response
Created
Accounting recognition mode (accrual|cash).
"accrual"
Creation timestamp (RFC3339, UTC).
"2026-06-14T12:00:00Z"
First civil day (YYYY-MM-DD) this chart of accounts governs, always a month start. A posting is booked against the chart in force for the competência it belongs to, never the day the run happened. A version configured before dated configuration reads 1900-01-01, because it was the only chart that version ever had.
"1900-01-01"
Server-assigned accounting profile identifier (uuid).
"550e8400-e29b-41d4-a716-446655440003"
Loan product version this profile is configured for (uuid).
"550e8400-e29b-41d4-a716-446655440001"
Persisted GL account mappings, one per accounting event.

