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

# 42 - Account Closure Query

> <p>Scopes:</p>
<b>api.ext api.conta.encerrar</b>

Through this endpoint, the partner can check the account closure request, being restricted only to the account of the integrator making the query.


## OpenAPI

````yaml get /api/Conta/Encerramento
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/Conta/Encerramento:
    get:
      tags:
        - Conta
      summary: >-
        Endpoint responsável por consultar o status de uma solicitação de
        encerramento de conta bancária.
      description: "<p>Scopes:</p>\r\n<b>api.ext api.conta.encerrar</b>"
      parameters:
        - name: codigoSolicitacao
          in: query
          description: UUID da solicitação.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/BMPSPB.Domain.Messaging.API.Shared.SolicitacaoEncerramentoResponse
        '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.Shared.SolicitacaoEncerramentoResponse:
      type: object
      properties:
        codigo:
          type: string
          format: uuid
        motivoEncerramento:
          allOf:
            - $ref: '#/components/schemas/BMPSPB.Infra.Enums.MotivoEncerramento'
        complementoEncerramento:
          type: string
          nullable: true
        situacao:
          allOf:
            - $ref: >-
                #/components/schemas/BMPSPB.Infra.Enums.SituacaoSolicitacaoEncerramentoConta
        motivoRejeicao:
          type: string
          nullable: true
        dtInclusao:
          type: string
          format: date-time
      additionalProperties: false
    BMPSPB.Infra.Enums.MotivoEncerramento:
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
      type: integer
      description: ''
      format: int32
    BMPSPB.Infra.Enums.SituacaoSolicitacaoEncerramentoConta:
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
      type: integer
      description: ''
      format: int32
  securitySchemes:
    Bearer:
      type: apiKey
      description: Copie 'Bearer ' + token
      name: Authorization
      in: header

````