Get active loan account
Returns the active loan account detail read model. A malformed UUID yields 422 (schema error), distinct from 404 when the account does not exist.
Parámetros de ruta
Respuesta
OK
Where the contract stands, as a durable recorded fact. active: no terminal fact closes the account — including one that was closed and later reopened by a repurchase or by undoing a refinance. settled: the borrower discharged the debt. ceded: the receivable was sold and left this balance sheet. ported: the contract moved to another institution. reversed: a refinance the rail undid inside its regret window. renegotiated: a substantial renegotiation replaced this contract and the debt is carried on the new account it opened. written_off: the institution wrote the contract off as a credit loss (Res. CMN 4.966 art. 49); irreversible. Only settled means the borrower discharged the debt — do not label any of the other five as one, and do not read any of them as a statement about whether payments were made on time, which is paymentHealth. Always present.
active, settled, ceded, ported, reversed, renegotiated, written_off "active"
How the borrower is paying, derived when this response is built and stored nowhere. Assessed ONLY while lifecycleState is active: a live contract can be months overdue, and on a closed one state is 'unknown' rather than 'current', because the schedule copy a closed contract leaves behind is not a debt this book still carries.
Outstanding principal THIS institution carries on the contract (2 d.p. string). Zero once the credit risk has left this book — see paymentHealth for the rule — and zero is the number there rather than a placeholder: what this book carries on a receivable it sold is nothing. The contract's own history is unaffected; the schedule, transactions and charges still answer it.
"1234.56"
Present only when lifecycleState is renegotiated: the loan account a substantial renegotiation (Res. CMN 4.966 art. 22) opened in place of this one, which now carries the debt. Nothing was paid on this contract's last schedule; the debt moved to the replacement.
"550e8400-e29b-41d4-a716-446655440040"
The restructuring class recorded with this account's latest servicing renegotiation; omitted when none recorded one, which includes every renegotiation made before this capture existed. After a substantial renegotiation it sits on the account that was replaced. A consignado refinance records its class on the refinance lineage, not here.

