get
https://api.caas.staging.bancocdc.com.br/operation/document/download/
The document download route retrieves the Base64-encoded version of a previously attached document.
Attention point:
- In this route, it will be necessary to pass the document code.
- File downloads are disabled in the development environment.
Response
| Http Code | Return Code | Message |
|---|---|---|
| 200 | 200-01 | Success. |
| 400 | 400-01 | Something unexpected happened. |
| 400 | 400-80 | Document not found. |
| 401 | 401-05 | Unauthorized or token invalid. |
| 401 | 401-13 | Route unavailable for this environment. |
| 429 | 429-01 | Too many requests. |
Response Parameters
| Parameter | Format | Description |
|---|---|---|
| request_code | String | Request identification code. |
| return | Boolean | Indicates if the request was successful. |
| return_code | String | Return code of the request. |
| message | String | Return message of the request. |
| data | Array | Array containing retrieved document information. |
| data.code | String | Document identification code. |
| data.base64 | String | Base64 encoded document. |
| data.base64_header | String | Represents the MIME header of the Base64-encoded document. |