cURL
curl --request POST \
--url https://api.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'IdempotencyKey: <idempotencykey>' \
--data '
{
"consulta": {
"lista": [
"<string>"
],
"webhookId": "<string>"
}
}
'import requests
url = "https://api.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF"
payload = { "consulta": {
"lista": ["<string>"],
"webhookId": "<string>"
} }
headers = {
"IdempotencyKey": "<idempotencykey>",
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
IdempotencyKey: '<idempotencykey>',
Authorization: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({consulta: {lista: ['<string>'], webhookId: '<string>'}})
};
fetch('https://api.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF', 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.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF",
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([
'consulta' => [
'lista' => [
'<string>'
],
'webhookId' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json",
"IdempotencyKey: <idempotencykey>"
],
]);
$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.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF"
payload := strings.NewReader("{\n \"consulta\": {\n \"lista\": [\n \"<string>\"\n ],\n \"webhookId\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("IdempotencyKey", "<idempotencykey>")
req.Header.Add("Authorization", "<api-key>")
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.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF")
.header("IdempotencyKey", "<idempotencykey>")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"consulta\": {\n \"lista\": [\n \"<string>\"\n ],\n \"webhookId\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["IdempotencyKey"] = '<idempotencykey>'
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"consulta\": {\n \"lista\": [\n \"<string>\"\n ],\n \"webhookId\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"msg": "<string>",
"hasError": true,
"messages": [
{
"code": "<string>",
"context": "<string>",
"description": "<string>",
"field": "<string>"
}
]
}{
"msg": "<string>",
"hasError": true,
"messages": [
{
"code": "<string>",
"context": "<string>",
"description": "<string>",
"field": "<string>"
}
]
}Receita
5 - Consulta por Lote de CPFs
cURL
curl --request POST \
--url https://api.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'IdempotencyKey: <idempotencykey>' \
--data '
{
"consulta": {
"lista": [
"<string>"
],
"webhookId": "<string>"
}
}
'import requests
url = "https://api.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF"
payload = { "consulta": {
"lista": ["<string>"],
"webhookId": "<string>"
} }
headers = {
"IdempotencyKey": "<idempotencykey>",
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
IdempotencyKey: '<idempotencykey>',
Authorization: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({consulta: {lista: ['<string>'], webhookId: '<string>'}})
};
fetch('https://api.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF', 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.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF",
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([
'consulta' => [
'lista' => [
'<string>'
],
'webhookId' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json",
"IdempotencyKey: <idempotencykey>"
],
]);
$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.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF"
payload := strings.NewReader("{\n \"consulta\": {\n \"lista\": [\n \"<string>\"\n ],\n \"webhookId\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("IdempotencyKey", "<idempotencykey>")
req.Header.Add("Authorization", "<api-key>")
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.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF")
.header("IdempotencyKey", "<idempotencykey>")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"consulta\": {\n \"lista\": [\n \"<string>\"\n ],\n \"webhookId\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bmpdigital.moneyp.dev.br/Bureau/ConsultarReceitaLoteCPF")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["IdempotencyKey"] = '<idempotencykey>'
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"consulta\": {\n \"lista\": [\n \"<string>\"\n ],\n \"webhookId\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"msg": "<string>",
"hasError": true,
"messages": [
{
"code": "<string>",
"context": "<string>",
"description": "<string>",
"field": "<string>"
}
]
}{
"msg": "<string>",
"hasError": true,
"messages": [
{
"code": "<string>",
"context": "<string>",
"description": "<string>",
"field": "<string>"
}
]
}Utilize este endpoint para realizar consultas em lote que verificam a situação fiscal de cidadãos em um relatório centralizado.
Mostrar Exemplo de retorno completo
Mostrar Exemplo de retorno completo
O exemplo de retorno, mostrado no lado direito desta tela, está resumido. O retorno do Bureau é enviado de forma serializada, sendo necessário deserializá-lo para uma melhor visualização. O campo
TipoCallback deve ser enviado com o valor 2 em todas as chamadas.[
{
\"Erro": false,
\"MensagemOperador": "OK",
\"ResultadoConsulta": {
\"Ni": "11122233344",
\"Nome": "TONY VALADÃO",
\"Situacao": {
\"Codigo": "0",
\"Descricao": "Regular"
},
\"Nascimento": "1985-09-03"
}
},
{
\"Erro": false,
\"MensagemOperador": "OK",
\"ResultadoConsulta": {
\"Ni": "11122233344",
\"Nome": "TONY VALADÃO",
\"Situacao": {
\"Codigo": "0",
\"Descricao": "Regular"
},
\"Nascimento": "1985-09-03"
}
}
]
Mostrar Tabela de dados fictícios para testes
Mostrar Tabela de dados fictícios para testes
| CPF | Situação Cadastral |
|---|---|
| 40442820135 | CPF Regular |
| 63017285995 | CPF Regular |
| 91708635203 | CPF Regular |
| 58136053391 | CPF Regular |
| 40532176871 | Suspensa |
| 47123586964 | Suspensa |
| 07691852312 | Pendente de Regularização |
| 10975384600 | Pendente de Regularização |
| 01648527949 | Cancelada por Multiplicidade |
| 47893062592 | Cancelada por Multiplicidade |
| 98302514705 | Nula |
| 18025346790 | Nula |
| 64913872591 | Cancelada de Ofício |
| 52389071686 | Cancelada de Ofício |
| 05137518743 | Titular Falecido |
| 08849979878 | Titular Falecido |
Esta página foi útil?
⌘I

