Realiza o download de um arquivo de retorno no padrão CNAB 400.
curl --request GET \
--url https://api.ext.dbs.moneyp.dev.br/api/Arquivo/Download \
--header 'Authorization: <api-key>'import requests
url = "https://api.ext.dbs.moneyp.dev.br/api/Arquivo/Download"
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/Arquivo/Download', 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/Arquivo/Download",
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/Arquivo/Download"
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/Arquivo/Download")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ext.dbs.moneyp.dev.br/api/Arquivo/Download")
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{
"sucesso": true,
"mensagem": "<string>"
}{
"sucesso": true,
"mensagem": "<string>"
}CNAB
36 - Download Arquivos 200
Scopes:
api.ext api.arquivo.downloadRealiza o download de um arquivo de retorno no padrão CNAB 400.
curl --request GET \
--url https://api.ext.dbs.moneyp.dev.br/api/Arquivo/Download \
--header 'Authorization: <api-key>'import requests
url = "https://api.ext.dbs.moneyp.dev.br/api/Arquivo/Download"
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/Arquivo/Download', 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/Arquivo/Download",
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/Arquivo/Download"
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/Arquivo/Download")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ext.dbs.moneyp.dev.br/api/Arquivo/Download")
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{
"sucesso": true,
"mensagem": "<string>"
}{
"sucesso": true,
"mensagem": "<string>"
}Por meio deste endpoint, o parceiro pode efetuar o download de arquivos do tipo 2001, 2002, 2003 e 2004. O conteúdo dos arquivos trará registros e confirmações de pagamento de boletos. Caso o arquivo não esteja processado não terá sucesso no retorno.
Autorizações
Copie 'Bearer ' + token
Parâmetros de consulta
Código de identificação do correntista cadastrado junto a CIP.*
Número de identificação do tipo padrão de emissão de boleto.*
Origem da transação no contexto CNAB.*
Valores: 2001 - CNAB_REG 2002 - CNAB_PGT 2003 - CNAB_ALT 2004 - CNAB_CAN
Opções disponíveis:
2001, 2002, 2003, 2004 Tipo de arquivo CNAB.*
Valores: 1 - CNAB240 2 - CNAB400
Opções disponíveis:
1, 2 Nome completo do arquivo de retorno que se deseja baixar.*
Observações:
- O nome completo do arquivo é composto pelo nome e extensão do mesmo.
- A extensão do arquivo deverá ser fixa '.RET'.
- O nome completo do arquivo deve ser informado em caixa alta. Exemplo: CB27020004997.RET.
Resposta
Success
Esta página foi útil?

