> ## Documentation Index
> Fetch the complete documentation index at: https://bmpdocs.moneyp.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# 31 - Download 200 Files

> <p>Scopes:</p>
<b>api.ext api.arquivo.download</b>

Through this endpoint, the partner can download files of types 2001, 2002, 2003, and 2004. The file contents will contain payment records and confirmations. If the file is not processed, the return will not be successful.


## OpenAPI

````yaml get /api/Arquivo/Download
openapi: 3.0.1
info:
  title: BMPSPBExt
  description: '<p><strong>Build Number: </strong>#0.0</p>'
  version: v1
servers:
  - url: https://api.ext.dbs.moneyp.dev.br/
    description: Localhost
security:
  - Bearer: []
paths:
  /api/Arquivo/Download:
    get:
      tags:
        - Arquivo
      summary: Realiza o download de um arquivo de retorno no padrão CNAB 400.
      description: "<p>Scopes:</p>\r\n<b>api.ext api.arquivo.download</b>"
      parameters:
        - name: NumeroCedente
          in: query
          description: Código de identificação do correntista cadastrado junto a CIP.*
          schema:
            type: integer
            format: int32
        - name: NumeroCarteira
          in: query
          description: Número de identificação do tipo padrão de emissão de boleto.*
          schema:
            type: integer
            format: int32
        - name: Arquivo.Origem
          in: query
          description: |-
            Origem da transação no contexto CNAB.*

            Valores:
            2001 - CNAB_REG
            2002 - CNAB_PGT
            2003 - CNAB_ALT
            2004 - CNAB_CAN
          schema:
            allOf:
              - $ref: '#/components/schemas/BMPSPB.Infra.Enums.OrigemTransacaoCNAB'
            description: |-
              Origem da transação no contexto CNAB.*

              Valores:
              2001 - CNAB_REG
              2002 - CNAB_PGT
              2003 - CNAB_ALT
              2004 - CNAB_CAN
        - name: Arquivo.TipoCNAB
          in: query
          description: |-
            Tipo de arquivo CNAB.*

            Valores:
            1 - CNAB240
            2 - CNAB400
          schema:
            allOf:
              - $ref: '#/components/schemas/BMPSPB.Infra.Enums.TipoArquivo'
            description: |-
              Tipo de arquivo CNAB.*

              Valores:
              1 - CNAB240
              2 - CNAB400
        - name: Arquivo.NomeArquivo
          in: query
          description: >-
            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.
          schema:
            type: string
      responses:
        '200':
          description: Success
        '400':
          description: Erro de negócio
          content:
            application/json:
              schema:
                type: object
                properties:
                  sucesso:
                    type: boolean
                  mensagem:
                    type: string
        '500':
          description: Erro interno do servidor
          content:
            application/json:
              schema:
                type: object
                properties:
                  sucesso:
                    type: boolean
                  mensagem:
                    type: string
components:
  schemas:
    BMPSPB.Infra.Enums.OrigemTransacaoCNAB:
      enum:
        - 2001
        - 2002
        - 2003
        - 2004
      type: integer
      description: ''
      format: int32
    BMPSPB.Infra.Enums.TipoArquivo:
      enum:
        - 1
        - 2
      type: integer
      description: ''
      format: int32
  securitySchemes:
    Bearer:
      type: apiKey
      description: Copie 'Bearer ' + token
      name: Authorization
      in: header

````