Reconcile a contract's deferred origination fee
Reads the ledger lines of the contract’s own deferred-fee accounts, across every chart it lived under, into deferred, recognised, released and remaining, and holds the deferred figure against the fee the contract record says was retained. The contract is named by its loan account alone: product version, disbursement day, currency and retained fee come from the tenant’s contract record. A ledger that does not answer is status UNAVAILABLE, not an error.
Autorizações
JWT bearer token issued by the identity provider.
Parâmetros de caminho
Loan account identifier of the contract.
"550e8400-e29b-41d4-a716-446655440003"
Resposta
OK
The contract's own deferred-fee accounts the figures were read from, one per chart the contract lived under, oldest first; always present, empty when the contract's charts defer no fee.
Asset the fee is held in.
"BRL"
Loan account (uuid) of the contract reconciled.
"550e8400-e29b-41d4-a716-446655440003"
Fee the contract record says was withheld at disbursement, summed over every tranche, as a fixed two-decimal string.
"150.00"
MATCH: the ledger deferred exactly the fee the contract retained. DIVERGENT: the two differ, or remaining is negative (the fee was earned more than once); figures.difference says by how much. UNAVAILABLE: the ledger did not answer, so figures is absent.
MATCH, DIVERGENT, UNAVAILABLE What the ledger holds on the fee accounts. Present on MATCH and DIVERGENT, absent on UNAVAILABLE.

