> ## 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.

# 30 - Payment Query and Bill Registration

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

Through this endpoint, the partner can check the status of the sent file, whether it has been processed or not.


## OpenAPI

````yaml get /api/Arquivo/ConsultarArquivos
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/ConsultarArquivos:
    get:
      tags:
        - Arquivo
      summary: Consulta arquivos de retorno no padrão CNAB 400.
      description: "<p>Scopes:</p>\r\n<b>api.ext api.arquivo.consultarArquivos</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: IncluindoJaBaixados
          in: query
          description: Indica se os registros já baixados devem ser incluídos na consulta.
          schema:
            type: boolean
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/BMPSPB.Domain.Messaging.API.Externa.ArquivoRetornoCNAB.ConsultaArquivosRetornoCNABResponse
        '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.Domain.Messaging.API.Externa.ArquivoRetornoCNAB.ConsultaArquivosRetornoCNABResponse:
      type: object
      properties:
        sucesso:
          type: boolean
        mensagem:
          type: string
          nullable: true
        arquivosRetorno:
          type: array
          items:
            $ref: >-
              #/components/schemas/BMPSPB.Domain.Messaging.API.Externa.ArquivoRetornoCNAB.ArquivoRetornoCNABItem
          description: >-
            Lista que contém informações detalhadas sobre os arquivos de retorno
            processados.
          nullable: true
      additionalProperties: false
    BMPSPB.Domain.Messaging.API.Externa.ArquivoRetornoCNAB.ArquivoRetornoCNABItem:
      type: object
      properties:
        origem:
          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
          nullable: true
        tipoCNAB:
          allOf:
            - $ref: '#/components/schemas/BMPSPB.Infra.Enums.TipoArquivo'
          description: |-
            Tipo de arquivo CNAB.*

            Valores:
            1 - CNAB240
            2 - CNAB400
          nullable: true
        nomeArquivo:
          type: string
          nullable: true
      additionalProperties: false
    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

````