curl --request POST \
--url https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency: <x-idempotency>' \
--data '
{
"codigoInscricaoEmpregador": "1",
"cpf": "99999999999",
"matricula": "99999999999-A",
"numeroInscricaoEmpregador": "42422253000101"
}
'import requests
url = "https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate"
payload = {
"codigoInscricaoEmpregador": "1",
"cpf": "99999999999",
"matricula": "99999999999-A",
"numeroInscricaoEmpregador": "42422253000101"
}
headers = {
"X-Idempotency": "<x-idempotency>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Idempotency': '<x-idempotency>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
codigoInscricaoEmpregador: '1',
cpf: '99999999999',
matricula: '99999999999-A',
numeroInscricaoEmpregador: '42422253000101'
})
};
fetch('https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'codigoInscricaoEmpregador' => '1',
'cpf' => '99999999999',
'matricula' => '99999999999-A',
'numeroInscricaoEmpregador' => '42422253000101'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Idempotency: <x-idempotency>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate"
payload := strings.NewReader("{\n \"codigoInscricaoEmpregador\": \"1\",\n \"cpf\": \"99999999999\",\n \"matricula\": \"99999999999-A\",\n \"numeroInscricaoEmpregador\": \"42422253000101\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Idempotency", "<x-idempotency>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate")
.header("X-Idempotency", "<x-idempotency>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"codigoInscricaoEmpregador\": \"1\",\n \"cpf\": \"99999999999\",\n \"matricula\": \"99999999999-A\",\n \"numeroInscricaoEmpregador\": \"42422253000101\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Idempotency"] = '<x-idempotency>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"codigoInscricaoEmpregador\": \"1\",\n \"cpf\": \"99999999999\",\n \"matricula\": \"99999999999-A\",\n \"numeroInscricaoEmpregador\": \"42422253000101\"\n}"
response = http.request(request)
puts response.read_body{
"hashOperacao": "33908101"
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Reactivate a suspended contract
Proxies reativar-consignado-trabalhador (Manual 003 §3.5). Same tenant-ownership proof and idempotency requirement as suspend.
curl --request POST \
--url https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency: <x-idempotency>' \
--data '
{
"codigoInscricaoEmpregador": "1",
"cpf": "99999999999",
"matricula": "99999999999-A",
"numeroInscricaoEmpregador": "42422253000101"
}
'import requests
url = "https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate"
payload = {
"codigoInscricaoEmpregador": "1",
"cpf": "99999999999",
"matricula": "99999999999-A",
"numeroInscricaoEmpregador": "42422253000101"
}
headers = {
"X-Idempotency": "<x-idempotency>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Idempotency': '<x-idempotency>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
codigoInscricaoEmpregador: '1',
cpf: '99999999999',
matricula: '99999999999-A',
numeroInscricaoEmpregador: '42422253000101'
})
};
fetch('https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'codigoInscricaoEmpregador' => '1',
'cpf' => '99999999999',
'matricula' => '99999999999-A',
'numeroInscricaoEmpregador' => '42422253000101'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Idempotency: <x-idempotency>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate"
payload := strings.NewReader("{\n \"codigoInscricaoEmpregador\": \"1\",\n \"cpf\": \"99999999999\",\n \"matricula\": \"99999999999-A\",\n \"numeroInscricaoEmpregador\": \"42422253000101\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Idempotency", "<x-idempotency>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate")
.header("X-Idempotency", "<x-idempotency>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"codigoInscricaoEmpregador\": \"1\",\n \"cpf\": \"99999999999\",\n \"matricula\": \"99999999999-A\",\n \"numeroInscricaoEmpregador\": \"42422253000101\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://consignado.sandbox.lerian.net/v1/consignado/contracts/{numero_contrato}/reactivate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Idempotency"] = '<x-idempotency>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"codigoInscricaoEmpregador\": \"1\",\n \"cpf\": \"99999999999\",\n \"matricula\": \"99999999999-A\",\n \"numeroInscricaoEmpregador\": \"42422253000101\"\n}"
response = http.request(request)
puts response.read_body{
"hashOperacao": "33908101"
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Authorizations
JWT bearer token issued by the identity provider.
Headers
Client-chosen idempotency key. REQUIRED: an absent key is 422, never a generated default.
"idem-lifecycle-2026-07-30-0001"
Path Parameters
Rail contract number of an averbação belonging to the authenticated tenant.
1 - 15"99999999999AN1"
Body
Employer inscription type: 1 = CNPJ, 2 = CPF.
1, 2 "1"
Worker CPF, exactly 11 digits. In the BODY, never a path or query parameter.
^[0-9]{11}$"99999999999"
1"99999999999-A"
1"42422253000101"
Response
OK
The rail's own operation identity, surfaced as its exact decimal digits (the rail types it Numérico). Manual 003 publishes no response table for these operations, so it MAY be absent on a 2xx — a 2xx is itself the success signal, do not branch on this field being present.
"33908101"
Was this page helpful?

