Averbate a portability
Performs averbar-portabilidade-trabalhador (Manual 008 v1.10 §5.3): the proponent institution’s averbação of a portability. The origin-side exclusion is a separate command, POST /v1/consignado/contracts//portabilidade/exclusao. It may occur before or after this averbação under Manual 008 §4, which explicitly defines the before-exclusion case and treats the reserved value as zero.
dataExclusaoOrigem is optional and is not sent to Dataprev. When supplied, it is the origin exclusion date tracked by the client. The gateway echoes it so it can refuse an averbação whose 20-calendar-day window (Manual 008 §4) has already elapsed before calling the rail. No business calendar is consulted because the window is in calendar days. When absent, the gateway submits the averbação as occurring before the origin exclusion. The gateway has no initiating fact to fall back on, so the client is the only source of the exclusion date when one exists.
X-Idempotency is the mandatory transport replay key. A retry with the same key is answered from the stored Dataprev answer instead of being resubmitted to the rail. A rejection that the gateway issues on its own is not stored, so a corrected body under the same key is processed. A 500, 503 or 504 that may have reached Dataprev holds the key for its 7-day TTL: that response carries X-Idempotency-Fenced: true, and a resend under the same key is rejected with 422 IDEMPOTENCY_OUTCOME_UNRECORDED. A 503 whose only Dataprev code is OZ (service suspended) does not hold the key. Reconcile on GET /v1/consignado/portabilidade/efetivacoes instead of resending under a new key, which would submit the averbação again. This route does not have durable Postgres-backed replay storage, so, unlike the bid route, that guarantee does not survive a Redis eviction or restart.
Authorizations
JWT bearer token issued by the identity provider.
Headers
Required transport replay key, scoped by authenticated tenant.
1 - 128"idem-portabilidade-averbacao-2026-01-21-0001"
Path Parameters
The portability's NSU (Manual 008 v1.10 publishes 21 algarismos, which overflows int64/float64 — carried and validated as a digit string only).
1 - 21^[0-9]{1,21}$"100000000000000000001"
Body
1 CNPJ, 2 CPF.
^[12]$"1"
Worker CPF, 11 digits.
^[0-9]{11}$"99999999999"
Contract end date.
"2031-01-01T00:00:00Z"
Contract start date.
"2026-01-01T00:00:00Z"
First payroll discount date.
"2026-02-01T00:00:00Z"
Worker registration number at the employer.
1 - 30"99999999999-A"
Worker's full name. Manual 008 §5.3.1 publishes 90 characters; the mirrored Swagger publishes maxLength 100 for the same field — the wider bound is accepted here so a value the rail itself would honour is never rejected first.
1 - 100"Trabalhador 99999999999"
Contract number being averbado, minted by the CLIENT: 2 to 15 letters or digits, without spaces, accents or symbols (Manual 008 §5.3.1 and its note [2]; the Swagger's maxLength 20 is not followed).
2 - 15^[A-Za-z0-9]+$"199971600000"
Employer inscription number.
1 - 15"99999999999881"
Number of instalments.
1 <= x <= 99948
Whether this averbação pledges FGTS collateral.
false
Annual total effective cost in percent.
10^[0-9]+(\.[0-9]{1,2})?$"11.00"
Monthly total effective cost in percent.
10^[0-9]+(\.[0-9]{1,2})?$"0.90"
Principal plus financed costs as an exact decimal string.
13^[0-9]+(\.[0-9]{1,2})?$"2160.00"
Settlement amount for the ORIGINAL contract(s) being ported — a field unique to this averbação.
13^[0-9]+(\.[0-9]{1,2})?$"2000.00"
Instalment amount as an exact decimal string.
13^[0-9]+(\.[0-9]{1,2})?$"180.00"
Annual interest rate in percent.
10^[0-9]+(\.[0-9]{1,2})?$"10.00"
Monthly interest rate in percent.
10^[0-9]+(\.[0-9]{1,2})?$"0.80"
OPTIONAL correspondent/cooperado CNPJ.
14"12345678000199"
OPTIONAL. yyyyMM.
^[0-9]{6}$"202602"
OPTIONAL. Origin exclusion date the client tracks, NEVER sent to Dataprev. When present, the gateway's own 20-calendar-day pre-rail refusal is judged against it. When absent, this averbação is submitted as occurring BEFORE the origin exclusion (Manual 008 §4 permits either order).
"2026-01-01T00:00:00Z"
OPTIONAL. Manual-only field of undocumented referent — see the operation description.
20"7K9M2P4R6T8V3W5X2Y4Z"
OPTIONAL severance-pay percentage pledged as collateral.
6^[0-9]+(\.[0-9]{1,2})?$"15.00"
OPTIONAL rescission-penalty amount pledged as collateral.
13^[0-9]+(\.[0-9]{1,2})?$"300.00"
OPTIONAL consignable FGTS balance pledged as collateral.
13^[0-9]+(\.[0-9]{1,2})?$"600.00"
Response
OK
Bounded rail outcome code, relayed verbatim. Free-form provider text is never returned.
32^[A-Za-z0-9_-]*$"BD"
First payroll-discount competência (yyyyMM) echoed by Dataprev.
202602
Contract number echoed by Dataprev.
"199971600000"
The portability identity addressed by this averbação.
"100000000000000000001"
UTC instant the gateway submitted this averbação.
"2026-01-15T00:00:00Z"
Rail message, relayed verbatim.
"Averbacao realizada com sucesso"

