post
https://api.caas.staging.bancocdc.com.br/client/document/base64/
Purpose of attaching the document
Attention points:
- To consume the route, it's necessary to pass the client's code as a parameter.
- The document must be sent encoded in base 64.
Response
| Http Code | Return Code | Message |
|---|---|---|
| 200 | 200-01 | Success. |
| 400 | 400-01 | Something unexpected happened. |
| 400 | 400-10 | Please provide the correct document. |
| 400 | 400-11 | Error registering. |
| 400 | 400-37 | Invalid type for field #replaceHere. |
| 400 | 400-39 | Error checking base64 string, please send a valid format. |
| 400 | 400-79 | ocument not allowed for this client. |
| 401 | 401-05 | Unauthorized or token invalid. |
| 406 | 406-01 | User was not found. |
| 406 | 406-03 | Field 'X' is mandatory and was not informed. |
| 409 | 409-01 | Customer already registered on the base. |
| 406 | 406-03 | field #replaceHere is mandatory and was not informed. |
| 429 | 429-01 | Too many requests. |
| 503 | 503-02 | It was not possible to register the document with the service, please contact CDC BANK. |
Response Parameters
| Parameters | Format | Description |
|---|---|---|
| request_code | String | Unique identifier for the request. |
| return | Boolean | Indicates if the request was successful or not. |
| return_code | String | Code representing the status of the request. |
| message | String | Message describing the result of the request. |
| data.code | String | Unique identifier for the client's document. |
Documents Types
| Code | Format |
|---|---|
| 1 | RG FRENTE |
| 2 | RG VERSO |
| 3 | CNH FRENTE |
| 4 | CNH VERSO |
| 5 | LOGO |
| 6 | RNE VERSO |
| 7 | PERFIL |
| 8 | ASSINATURA |
| 9 | COMPROVANTE DE RESIDÊNCIA |
| 10 | SELFIE COM RG |
| 12 | INSCRIÇÃO MUNICIPAL |
| 43 | OUTROS |
| 13 | AVALIAÇÃO INTERNA DE RISCO |
| 14 | ENRIQUECIMENTO |
| 15 | TERMO CESSÃO |
| 16 | CNAB CESSÃO |
| 45 | CERTIDÃO DE CASAMENTO |
| 17 | CPF |
| 18 | CNPJ |
| 19 | FATURAMENTO ÚLTIMOS 12 MESES |
| 20 | CONTRATO SOCIAL |
| 21 | ESTATUTO E ATA DE NOMEAÇÃO DE DIRETORIA |
| 22 | CERTIFICADO DA CONDIÇÃO DE MICROEMPREENDEDOR INDIVIDUAL |
| 23 | CPF SÓCIO/REPRESENTANTE |
| 24 | RG FRENTE SÓCIO/REPRESENTANTE |
| 25 | RG VERSO SÓCIO/REPRESENTANTE |
| 26 | CNH FRENTE SÓCIO/REPRESENTANTE |
| 27 | CNH VERSO SÓCIO/REPRESENTANTE |
| 28 | COMPROVANTE RESIDENCIA SÓCIO/REPRESENTANTE |
| 29 | CARTEIRA DE TRABALHO |
Extension Types
| Code | Format |
|---|---|
| 1 | .png |
| 2 | |
| 3 | .jpeg |
| 4 | .txt |
| 7 | .doc |
| 8 | .xls |
| 9 | .xlsx |
| 10 | .docx |
| 11 | x-compressed(.rar) |
| 12 | x-zip-compressed(.zip) |