Skip to main content
POST
Import a contract already averbado outside this gateway

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Idempotency
string
required

Required idempotency key. Absent is 422, never a generated default.

Example:

"idem-import-1"

Path Parameters

numero_contrato
string
required

The contract number as the RAIL holds it (Manual 005 v1.13 §3.2.1 p.13, 2..15 alphanumerics). It is the only identifier the import takes: everything else about the contract is read back from Dataprev.

Required string length: 2 - 15
Pattern: ^[A-Za-z0-9]+$
Example:

"199971600000"

Body

application/json
booking
object

OPTIONAL. The lender booking of this contract: the body the averbação route takes, with the FULL booking block and an EMPTY numero_proposta, plus the documentation the CCB-attachment route takes — both documents, signature_evidence_ref, data_hora_assinatura and the signature evidence — in one object. Its numero_contrato must equal the path, and its cpf, matricula, codigo_inscricao_empregador and numero_inscricao_empregador must equal what Dataprev publishes for the contract (an employer published as its 8-digit CNPJ root is sent as that root). Its money terms, first_deduction_competencia, contract dates and guarantee must equal the rail read wherever the read publishes them. Nothing in it reaches Dataprev. Requires registration.

parcelas_pagas
integer<int64>
default:0

How many monthly competências of this contract have ALREADY amortized under whoever averbou it. It must lie between 0 and the contract's own total de parcelas as the rail reports it; anything outside that is refused 422. Leave it at 0 only for a contract that has genuinely not been discounted yet. The saldo devedor treats as paid only the parcelas already due on the import day; this count decides when the contract reaches quitado — a value higher than reality ends the reports early, a lower one never reaches quitado, and the full count reports 0.00.

Required range: x >= 0
Example:

7

registration
object

OPTIONAL. The rail's acknowledgement of the averbação somebody else performed, as you received it. Requires booking.

Response

Created

competencia_inicio_desconto
string
required

The first payroll competência the discount runs in, as the rail's verbatim AAAAMM literal.

Example:

"202601"

numero_contrato
string
required

The contract that was imported.

Example:

"199971600000"

numero_parcelas
integer<int64>
required

The contract's total de parcelas, as the rail reports it. Read back, never supplied.

Example:

24

origem
enum<string>
required

Always "importado" on this route — the provenance stamped on the obligation, distinguishing it forever from one this gateway averbou.

Available options:
importado
Example:

"importado"

parcelas_pagas
integer<int64>
required

The amortized count recorded on the obligation — the value sent with the request.

Example:

7

saldo_devedor_dispatch_scheduled
boolean
required

True when this request minted the obligation and scheduled its first M015 saldo devedor report durably alongside it; it does NOT mean the report has been delivered to Dataprev — the outbox does that afterwards. False only on an import with booking whose contract already held an obligation: that obligation was left untouched and parcelas_pagas was not applied.

Example:

true

situacao_emprestimo
integer<int64>
required

The rail's own situação código for the contract at the moment it was imported (Manual 005 §3.2.2 p.17). Only 0, 7, 8 and 17 are importable.

Example:

0

valor_parcela
string
required

The instalment, as the rail reports it, verbatim (BRL decimal string).

Example:

"1116.31"