Remover um empréstimo legado previamente registrado
Atua como proxy de excluir-emprestimo-legado-trabalhador (Manual 007 v1.4 §3.2, PUT, não DELETE) e restabelece a elegibilidade do trabalhador para novas contratações. motivoExclusao aceita apenas 1, 2, 3, 7, 8 ou 9; o apêndice §4.1 não define 4, 5 ou 6. X-Idempotency é obrigatório. Uma repetição que recebe da rede o código de empréstimo inexistente é tratada como sucesso.
Autorizações
JWT bearer token issued by the identity provider.
Cabeçalhos
Client-chosen idempotency key. REQUIRED: an absent key is 422, never a generated default.
"idem-legado-excluir-0001"
Parâmetros de caminho
Number of the legado contract to remove.
1 - 20"99999999999AL1"
Corpo
Worker CPF, exactly 11 digits.
^[0-9]{11}$"99999999999"
Reason for the exclusion: 1 desistência, 2 falecimento, 3 liquidação antecipada, 7 ação judicial, 8 fraude, 9 outros. The set has holes at 4, 5 and 6 — the manual's own apêndice §4.1.
1, 2, 3, 7, 8, 9 9
Resposta
OK
True when the rail answered its own HX (incluir)/HY (excluir) idempotency code rather than fresh confirmation. On excluir (HY) this means the contract is confirmed gone, which is sound. On incluir (HX) it means ONLY that this numeroContrato is already registered on the rail — the values THIS request carried (valorEmprestimo, valorParcela, etc.) were NOT compared against what is stored. To correct a legado registered with wrong values, exclude it (motivo 9) and include it again; do not rely on idempotent:true as proof the stored values match.
false
The rail's own message.
"Emprestimo legado incluido com sucesso"
The contract number the rail confirmed the operation against.
"99999999999AL1"

