Refinanciar um ou mais contratos ativos em um novo
Esta operação atua como proxy de realizar-refinanciamento-trabalhador (Manual 008 v1.10 §3.1): encerra todos os contratos mencionados em listaContratosQuitadosTrabalhador e averba o novo contrato que os substitui, reservando margem até o fechamento do refinanciamento. todo contrato quitado deverá ser uma averbação do tenant autenticado que a rede reconheceu; qualquer outra coisa é 404 antes de a rede ser chamada - se esse contrato está atualmente ACTIVE no registro do governo fica a critério da própria rede. com garantia (temGarantias=true), o refinanciamento só poderá relacionar-se 1:1 (regra fr, no máximo um contrato quitado) e deverá informar pelo menos um dos três valores de garantia (regra fi). X-Idempotency é obrigatório.
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-refinanciamento-0001"
Parâmetros de caminho
The NEW contract number, minted by the CLIENT — the rail mints nothing here.
2 - 15"99999999999ARN1"
Corpo
Employer inscription type: 1 CNPJ, 2 CPF.
^[12]$"1"
Worker CPF, 11 digits.
11^[0-9]{11}$"99999999999"
End date of the new consignado contract, RFC 3339 UTC.
"2027-07-10T00:00:00Z"
Start date of the new consignado contract, RFC 3339 UTC.
"2025-06-11T00:00:00Z"
Date of the first payroll deduction, RFC 3339 UTC.
"2025-07-10T00:00:00Z"
Every contract this refinanciamento quits. Each must be an active averbação of the authenticated tenant — 'active' is the government registry's own judgment, which this gateway does not locally track.
1Matrícula assigned to the worker by the employer.
30"99999999999-A"
Worker's full name.
90"Trabalhador 99999999999"
Employer inscription number, Texto since Manual 008 v1.7 (the mirrored Swagger still types this int64).
14"99999999999881"
Number of instalments of the new contract, capped at the manual's own 3-digit field width (Manual 008 §3.1.1 p.10).
1 <= x <= 99924
Whether FGTS collateral secures the new contract. When true, exactly one contract may be named in lista_contratos_quitados_trabalhador (regra FR) and at least one of the three garantia values below must be informed (regra FI).
true
valorCETAnual — Custo Efetivo Total, annual percent decimal string.
13^[0-9]+(\.[0-9]{1,2})?$"7.26"
valorCETMensal — Custo Efetivo Total, monthly percent decimal string.
13^[0-9]+(\.[0-9]{1,2})?$"0.59"
valorEmprestimo — the new contract's principal (decimal string, BRL).
13^[0-9]+(\.[0-9]{1,2})?$"9018.54"
valorIOF — the IOF charged, in reais (decimal string, BRL).
13^[0-9]+(\.[0-9]{1,2})?$"94.95"
valorPago — settlement amount paid to quit the original contracts (decimal string, BRL).
13^[0-9]+(\.[0-9]{1,2})?$"6114.50"
valorParcela — the new contract's instalment amount (decimal string, BRL).
13^[0-9]+(\.[0-9]{1,2})?$"400.00"
valorTaxaAnual — annual interest rate, percent decimal string.
13^[0-9]+(\.[0-9]{1,2})?$"6.17"
valorTaxaMensal — monthly interest rate, percent decimal string.
13^[0-9]+(\.[0-9]{1,2})?$"0.5"
valorTroco — amount delivered to the client after settling the quitados contracts (decimal string, BRL).
13^[0-9]+(\.[0-9]{1,2})?$"2809.09"
CNPJ of the operator (correspondent, cooperado or similar) responsible for the operation. Optional, Texto since v1.7.
14"12345678000199"
Payroll competência of the first deduction, yyyyMM. Optional.
^[0-9]{6}$"202507"
Percentage of severance pay pledged as collateral, 0 to 35%.
13^[0-9]+(\.[0-9]{1,2})?$"15"
FGTS termination-fine collateral, up to 100% of the 40% fine (decimal string, BRL). Optional individually.
13^[0-9]+(\.[0-9]{1,2})?$"300.00"
FGTS balance pledged as collateral (decimal string, BRL). Optional individually; at least one of the three garantia values is required when temGarantias is true.
13^[0-9]+(\.[0-9]{1,2})?$"600.00"
Resposta
OK
Payroll competência of the first deduction, yyyyMM.
"202507"
The rail's own identity for this operation.
"34006311"
Every contract the rail confirmed as quitado by this refinanciamento.
The rail's own message.
"Refinanciamento realizado com sucesso"
The new contract's number, as confirmed by the rail.
"99999999999ARN1"

