Skip to content

Commit 5d897e9

Browse files
Added download of discharge (#84)
* New endpoint for download discharges to api/v1 * Changed size string return
1 parent a687fd1 commit 5d897e9

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

changelog.markdown

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ Você também pode se inscrever para receber as notificações de alterações d
2222

2323
#### Últimas alterações realizadas na API.
2424

25+
### 15/07/2021
26+
27+
- Adicionado novo endpoint para [Download do CNAB de Retorno](/reference/v1/discharges/#download-do-cnab).
28+
2529
### 22/06/2021
2630

2731
- Ajusta documentação em [Webhook Enviados](/reference/v1/webhook_deliveries/)

reference/v1/discharges.markdown

+39
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ breadcrumb: CNAB (Retorno)
1515
| [GET /api/v1/discharges](#listar-cnabs) | Listar CNABs
1616
| [PUT /api/v1/discharges/:id/pay_off](#quitar-boletos) | Quitar boletos
1717
| [PUT /api/v1/discharges/:id/reprocess](#reprocessar-cnab) | Reprocessar CNAB
18+
| [GET /api/v1/discharges/:id/download](#download-do-cnab) | Download do CNAB
1819

1920
### Modelo de Dados
2021

@@ -651,6 +652,44 @@ Array
651652
</div> -->
652653
</div>
653654

655+
### Download do CNAB
656+
657+
`GET /api/v1/discharges/:id/download`
658+
659+
#### Exemplo
660+
661+
<ul class="nav nav-tabs" role="tablist">
662+
<li class="active"><a href="#bash3" role="tab" data-toggle="tab">Bash</a></li>
663+
</ul>
664+
665+
<div class="tab-content">
666+
<div class="tab-pane active" id="bash3">
667+
<small>Requisição:</small>
668+
669+
<pre class="bash">
670+
curl -i \
671+
-H "Authorization: Bearer $BOLETOSIMPLES_TOKEN" \
672+
-H 'Content-Type: application/json' \
673+
-H 'User-Agent: MyApp ([email protected])' \
674+
-X GET 'https://sandbox.boletosimples.com.br/api/v1/discharges/1/download'
675+
</pre>
676+
677+
<small>Resposta:</small>
678+
679+
<pre class="http">
680+
HTTP/1.1 200 OK
681+
Server: Cowboy
682+
Connection: keep-alive
683+
Strict-Transport-Security: max-age=2592000
684+
Content-Type: application/octet-stream
685+
Content-Transfer-Encoding: binary
686+
...
687+
02RETORNO01COBRANCA...
688+
</pre>
689+
690+
</div>
691+
</div>
692+
654693
### Listar CNABs
655694

656695
`GET /api/v1/discharges`

0 commit comments

Comments
 (0)