curl --request POST \
--url https://api.example.com/trabalhador/consultar-dados-vinculo \
--header 'Content-Type: application/json' \
--data '
{
"CPF": "<string>",
"Matricula": "<string>",
"NumeroInscricaoEmpregador": "<string>",
"ConsultaCacheada": true,
"Autorizacao": {
"NsuAutorizacaoDigital": 123,
"DataHoraAutorizacaoDigital": "2023-11-07T05:31:56Z"
}
}
'import requests
url = "https://api.example.com/trabalhador/consultar-dados-vinculo"
payload = {
"CPF": "<string>",
"Matricula": "<string>",
"NumeroInscricaoEmpregador": "<string>",
"ConsultaCacheada": True,
"Autorizacao": {
"NsuAutorizacaoDigital": 123,
"DataHoraAutorizacaoDigital": "2023-11-07T05:31:56Z"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
CPF: '<string>',
Matricula: '<string>',
NumeroInscricaoEmpregador: '<string>',
ConsultaCacheada: true,
Autorizacao: {NsuAutorizacaoDigital: 123, DataHoraAutorizacaoDigital: '2023-11-07T05:31:56Z'}
})
};
fetch('https://api.example.com/trabalhador/consultar-dados-vinculo', 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://api.example.com/trabalhador/consultar-dados-vinculo",
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([
'CPF' => '<string>',
'Matricula' => '<string>',
'NumeroInscricaoEmpregador' => '<string>',
'ConsultaCacheada' => true,
'Autorizacao' => [
'NsuAutorizacaoDigital' => 123,
'DataHoraAutorizacaoDigital' => '2023-11-07T05:31:56Z'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://api.example.com/trabalhador/consultar-dados-vinculo"
payload := strings.NewReader("{\n \"CPF\": \"<string>\",\n \"Matricula\": \"<string>\",\n \"NumeroInscricaoEmpregador\": \"<string>\",\n \"ConsultaCacheada\": true,\n \"Autorizacao\": {\n \"NsuAutorizacaoDigital\": 123,\n \"DataHoraAutorizacaoDigital\": \"2023-11-07T05:31:56Z\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.example.com/trabalhador/consultar-dados-vinculo")
.header("Content-Type", "application/json")
.body("{\n \"CPF\": \"<string>\",\n \"Matricula\": \"<string>\",\n \"NumeroInscricaoEmpregador\": \"<string>\",\n \"ConsultaCacheada\": true,\n \"Autorizacao\": {\n \"NsuAutorizacaoDigital\": 123,\n \"DataHoraAutorizacaoDigital\": \"2023-11-07T05:31:56Z\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/trabalhador/consultar-dados-vinculo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"CPF\": \"<string>\",\n \"Matricula\": \"<string>\",\n \"NumeroInscricaoEmpregador\": \"<string>\",\n \"ConsultaCacheada\": true,\n \"Autorizacao\": {\n \"NsuAutorizacaoDigital\": 123,\n \"DataHoraAutorizacaoDigital\": \"2023-11-07T05:31:56Z\"\n }\n}"
response = http.request(request)
puts response.read_body{
"CPF": "<string>",
"Matricula": "<string>",
"NumeroInscricaoEmpregador": "<string>",
"NomeEmpregador": "<string>",
"CodigoInscricaoEmpregador": 123,
"Nome": "<string>",
"DataNascimento": "2023-11-07T05:31:56Z",
"CodigoCategoriaTrabalhador": 123,
"Elegivel": true,
"ValorTotalVencimentos": 123,
"ValorBaseMargem": 123,
"ValorMargemDisponivel": 123,
"DataAdmissao": "2023-12-25",
"PessoaExpostaPoliticamente": 123,
"Sexo": "<string>",
"NomeMae": "<string>",
"PaisNacionalidade": "<string>",
"CboDescricao": "<string>",
"DadosContato": {
"Email": "<string>",
"TelefoneCelular1": "<string>",
"TelefoneFixo1": "<string>"
},
"DadosComplementares": {
"RG": "<string>",
"RGOrgao": "<string>",
"RGUF": "<string>",
"EstadoCivil": 123
},
"Endereco": {
"CEP": "<string>",
"Logradouro": "<string>",
"Bairro": "<string>",
"Cidade": "<string>",
"UF": "<string>",
"NroLogradouro": "<string>",
"Complemento": "<string>"
},
"NomeConjuge": "<string>",
"CpfConjuge": "<string>"
}{
"ErrorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ErrorCode": "<string>",
"ErrorCampo": "<string>",
"Error": "<string>",
"Origem": "<string>"
}{
"ErrorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ErrorCode": "<string>",
"ErrorCampo": "<string>",
"Error": "<string>",
"Origem": "<string>"
}{
"ErrorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ErrorCode": "<string>",
"ErrorCampo": "<string>",
"Error": "<string>",
"Origem": "<string>"
}{
"Erro": "<string>"
}{
"ErrorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ErrorCode": "<string>",
"ErrorCampo": "<string>",
"Error": "<string>",
"Origem": "<string>"
}{
"Erro": "<string>"
}{
"Erro": "<string>"
}3 - Consultar Dados de Vínculo
Retorna todas as informações cadastradas de um trabalhador, seu empregador e vínculo, a partir dos identificadores fornecidos.
curl --request POST \
--url https://api.example.com/trabalhador/consultar-dados-vinculo \
--header 'Content-Type: application/json' \
--data '
{
"CPF": "<string>",
"Matricula": "<string>",
"NumeroInscricaoEmpregador": "<string>",
"ConsultaCacheada": true,
"Autorizacao": {
"NsuAutorizacaoDigital": 123,
"DataHoraAutorizacaoDigital": "2023-11-07T05:31:56Z"
}
}
'import requests
url = "https://api.example.com/trabalhador/consultar-dados-vinculo"
payload = {
"CPF": "<string>",
"Matricula": "<string>",
"NumeroInscricaoEmpregador": "<string>",
"ConsultaCacheada": True,
"Autorizacao": {
"NsuAutorizacaoDigital": 123,
"DataHoraAutorizacaoDigital": "2023-11-07T05:31:56Z"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
CPF: '<string>',
Matricula: '<string>',
NumeroInscricaoEmpregador: '<string>',
ConsultaCacheada: true,
Autorizacao: {NsuAutorizacaoDigital: 123, DataHoraAutorizacaoDigital: '2023-11-07T05:31:56Z'}
})
};
fetch('https://api.example.com/trabalhador/consultar-dados-vinculo', 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://api.example.com/trabalhador/consultar-dados-vinculo",
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([
'CPF' => '<string>',
'Matricula' => '<string>',
'NumeroInscricaoEmpregador' => '<string>',
'ConsultaCacheada' => true,
'Autorizacao' => [
'NsuAutorizacaoDigital' => 123,
'DataHoraAutorizacaoDigital' => '2023-11-07T05:31:56Z'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://api.example.com/trabalhador/consultar-dados-vinculo"
payload := strings.NewReader("{\n \"CPF\": \"<string>\",\n \"Matricula\": \"<string>\",\n \"NumeroInscricaoEmpregador\": \"<string>\",\n \"ConsultaCacheada\": true,\n \"Autorizacao\": {\n \"NsuAutorizacaoDigital\": 123,\n \"DataHoraAutorizacaoDigital\": \"2023-11-07T05:31:56Z\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.example.com/trabalhador/consultar-dados-vinculo")
.header("Content-Type", "application/json")
.body("{\n \"CPF\": \"<string>\",\n \"Matricula\": \"<string>\",\n \"NumeroInscricaoEmpregador\": \"<string>\",\n \"ConsultaCacheada\": true,\n \"Autorizacao\": {\n \"NsuAutorizacaoDigital\": 123,\n \"DataHoraAutorizacaoDigital\": \"2023-11-07T05:31:56Z\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/trabalhador/consultar-dados-vinculo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"CPF\": \"<string>\",\n \"Matricula\": \"<string>\",\n \"NumeroInscricaoEmpregador\": \"<string>\",\n \"ConsultaCacheada\": true,\n \"Autorizacao\": {\n \"NsuAutorizacaoDigital\": 123,\n \"DataHoraAutorizacaoDigital\": \"2023-11-07T05:31:56Z\"\n }\n}"
response = http.request(request)
puts response.read_body{
"CPF": "<string>",
"Matricula": "<string>",
"NumeroInscricaoEmpregador": "<string>",
"NomeEmpregador": "<string>",
"CodigoInscricaoEmpregador": 123,
"Nome": "<string>",
"DataNascimento": "2023-11-07T05:31:56Z",
"CodigoCategoriaTrabalhador": 123,
"Elegivel": true,
"ValorTotalVencimentos": 123,
"ValorBaseMargem": 123,
"ValorMargemDisponivel": 123,
"DataAdmissao": "2023-12-25",
"PessoaExpostaPoliticamente": 123,
"Sexo": "<string>",
"NomeMae": "<string>",
"PaisNacionalidade": "<string>",
"CboDescricao": "<string>",
"DadosContato": {
"Email": "<string>",
"TelefoneCelular1": "<string>",
"TelefoneFixo1": "<string>"
},
"DadosComplementares": {
"RG": "<string>",
"RGOrgao": "<string>",
"RGUF": "<string>",
"EstadoCivil": 123
},
"Endereco": {
"CEP": "<string>",
"Logradouro": "<string>",
"Bairro": "<string>",
"Cidade": "<string>",
"UF": "<string>",
"NroLogradouro": "<string>",
"Complemento": "<string>"
},
"NomeConjuge": "<string>",
"CpfConjuge": "<string>"
}{
"ErrorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ErrorCode": "<string>",
"ErrorCampo": "<string>",
"Error": "<string>",
"Origem": "<string>"
}{
"ErrorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ErrorCode": "<string>",
"ErrorCampo": "<string>",
"Error": "<string>",
"Origem": "<string>"
}{
"ErrorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ErrorCode": "<string>",
"ErrorCampo": "<string>",
"Error": "<string>",
"Origem": "<string>"
}{
"Erro": "<string>"
}{
"ErrorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ErrorCode": "<string>",
"ErrorCampo": "<string>",
"Error": "<string>",
"Origem": "<string>"
}{
"Erro": "<string>"
}{
"Erro": "<string>"
}Corpo
CPF do trabalhador (11 dígitos).
Matrícula do trabalhador.
Inscrição do empregador (CPF/CNPJ, apenas dígitos).
Tipo de inscrição do empregador. 1 = CPF, 2 = CNPJ.
1, 2 Se true, retorna dados do cache quando disponível.
Show child attributes
Show child attributes
Resposta
OK
CPF do trabalhador.
Matrícula do trabalhador.
Inscrição (CPF/CNPJ) do empregador.
Nome/Razão social do empregador.
Tipo de inscrição do empregador (1 = CPF, 2 = CNPJ).
Nome completo do trabalhador.
Data de nascimento do trabalhador (ISO 8601).
Código da categoria do trabalhador.
Indica se o trabalhador é elegível (autorizado).
Total de vencimentos do trabalhador.
Valor base para cálculo de margem.
Margem consignável disponível.
Data de admissão do trabalhador (YYYY-MM-DD).
Indicador de PEP (0 = Não, 1 = Nível 1, 2 = Nível 2).
Sexo do trabalhador.
Nome da mãe do trabalhador.
País de nacionalidade do trabalhador.
Descrição do cargo (CBO) do trabalhador.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Nome do cônjuge.
CPF do cônjuge.
Esta página foi útil?

