Get one contract's saldo devedor and its amortization book
Returns ONE contract’s saldo devedor obligation together with its whole amortization book, by the rail contract number.
‘obrigacao’ is the SAME shape as one element of GET /v1/consignado/saldo-devedor, so a console needs one renderer for both. ‘amortizacoes’ is the per-competência record of what has already amortized, ordered by competência, which is the amortization table’s own key order.
‘origem’ on each amortization is the provenance a reversal acts against: E1 is an amortização prevista, which nothing withdraws, and E5 is an antecipação, which its own exclusion can withdraw. That distinction is why the two are published rather than collapsed into a count.
An obligation with NO amortization at all answers an empty list and never a 404. The obligation is real and has simply never amortized, which is the ordinary state of a contract in its first month.
It answers from a LOCAL table and never reaches the Dataprev rail. The tenant is derived from the validated identity: a contract that does not exist and a contract belonging to another tenant are the SAME answer, 404, so this read cannot be used to probe another tenant’s book.
Authorizations
JWT bearer token issued by the identity provider.
Path Parameters
The rail contract number, exactly as it was registered. It is never trimmed or normalized.
2 - 15"99999999999AN1"

