Consulta protestos de boletos.
curl --request GET \
--url https://api.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto \
--header 'Authorization: <api-key>'import requests
url = "https://api.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto', 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.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"codigoBarras": "<string>",
"situacaoProtestoBoleto": 0,
"descricao": "<string>"
}
]{
"sucesso": true,
"mensagem": "<string>"
}{
"sucesso": true,
"mensagem": "<string>"
}Protests
67 - Check Protested Invoices
Scopes:
api.ext api.boleto.protesto.consultarConsulta protestos de boletos.
curl --request GET \
--url https://api.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto \
--header 'Authorization: <api-key>'import requests
url = "https://api.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto', 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.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ext.dbs.moneyp.dev.br/api/ProtestoBoleto/ConsultarProtestoBoleto")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"codigoBarras": "<string>",
"situacaoProtestoBoleto": 0,
"descricao": "<string>"
}
]{
"sucesso": true,
"mensagem": "<string>"
}{
"sucesso": true,
"mensagem": "<string>"
}Through this endpoint, it is possible to consult protested bills and it is possible to consult more than one bill per request.
Query Parameters
Response
Success
Situação do protesto do boleto.
Valores: 0 - Enviado Bloqueio Pagamento 1 - Erro Bloqueio Pagamento 2 - Pendente Envio Protesto 3 - Processando Envio Protesto 4 - Enviado Protesto 5 - Erro Protesto 6 - Protestado 7 - Protesto Aguardando Conciliação de Valores 8 - Protesto Cancelado 9 - Protesto em Anuência 10 - Pendente Cancelamento 11 - Pendente Anuência 12 - Protesto Pago 13 - Pendente Desistência 14 - Protesto em Desistência 15 - Apontado 16 - Protesto Cancelado Por Juizo
Available options:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 Was this page helpful?

