Eliminar un préstamo legado previamente registrado
Esta operación actúa como proxy de excluir-emprestimo-legado-trabalhador (Manual 007 v1.4 §3.2, PUT — nunca DELETE), restableciendo la elegibilidad del trabajador para nuevas contrataciones en esta red. MotivoExclusao es un conjunto cerrado y no contiguo (1,2,3,7,8,9; el apéndice §4.1 del propio Manual no tiene 4, 5 o 6). Se requiere X-Idempotency. Una solicitud reintentada que llega al propio hy de la red (“empréstimo inexistente”) responde con éxito en lugar de un rechazo.
Autorizaciones
JWT bearer token issued by the identity provider.
Encabezados
Client-chosen idempotency key. REQUIRED: an absent key is 422, never a generated default.
"idem-legado-excluir-0001"
Parámetros de ruta
Number of the legado contract to remove.
1 - 20"99999999999AL1"
Cuerpo
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
Respuesta
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"

