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

# 44 - Atualização de Conta Bancária

Por meio deste endpoint o nosso parceiro pode atualizar os dados bancários de desembolso das propostas que estiverem com status “aprovada”, “finalizada”, “liberada” e “pendente pagamento”.

## Tabelas

<Expandable title="Tabela TipoContaBancaria">
  | ID | Descrição      |
  | -- | -------------- |
  | 1  | Poupança       |
  | 2  | Conta Corrente |
</Expandable>


## OpenAPI

````yaml post /Proposta/AtualizarContaPagamento
openapi: 3.0.1
info:
  title: BMPDigitalCore.ApiExterna.Proposta.API
  version: '1.0'
servers:
  - url: https://api.bmpdigital.moneyp.dev.br
security:
  - Bearer: []
paths:
  /Proposta/AtualizarContaPagamento:
    post:
      tags:
        - Proposta
      parameters:
        - name: IdempotencyKey
          in: header
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PropostaAtualizarContaPagamentoCommand'
          text/json:
            schema:
              $ref: '#/components/schemas/PropostaAtualizarContaPagamentoCommand'
          application/*+json:
            schema:
              $ref: '#/components/schemas/PropostaAtualizarContaPagamentoCommand'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ActionResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '400':
          description: Bad Request
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ResponseBase'
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseBase'
            text/json:
              schema:
                $ref: '#/components/schemas/ResponseBase'
components:
  schemas:
    PropostaAtualizarContaPagamentoCommand:
      type: object
      properties:
        dto:
          $ref: '#/components/schemas/FindPropostaDTO'
        dtoPagto:
          $ref: '#/components/schemas/PropostaContaPagamentoDTO'
      additionalProperties: false
    ActionResponse:
      type: object
      properties:
        msg:
          type: string
          nullable: true
        result:
          type: boolean
          writeOnly: true
        hasError:
          type: boolean
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
          nullable: true
        parametros:
          type: array
          items:
            $ref: '#/components/schemas/ParametroDTO'
          nullable: true
      additionalProperties: false
    ResponseBase:
      type: object
      properties:
        msg:
          type: string
          nullable: true
        result:
          type: boolean
          writeOnly: true
        hasError:
          type: boolean
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
          nullable: true
      additionalProperties: false
    FindPropostaDTO:
      type: object
      properties:
        codigoProposta:
          type: string
          description: Código identificador da proposta
          format: uuid
          nullable: true
        codigoOperacao:
          type: string
          description: Código da operação do parceiro
          nullable: true
        numeroProposta:
          type: integer
          description: Número sequencial da proposta
          format: int64
          nullable: true
      additionalProperties: false
    PropostaContaPagamentoDTO:
      required:
        - agencia
        - conta
        - tipoConta
      type: object
      properties:
        codigoBanco:
          type: integer
          description: Código do banco
          format: int32
          nullable: true
        tipoConta:
          type: integer
          description: Tipo de conta
          format: int32
          nullable: true
        agencia:
          maxLength: 4
          minLength: 0
          type: string
          description: Número da Agência
          nullable: true
        agenciaDig:
          maxLength: 1
          minLength: 0
          type: string
          description: Dígito da agência
          nullable: true
        conta:
          maxLength: 20
          minLength: 0
          type: string
          description: Número da conta
          nullable: true
        contaDig:
          maxLength: 1
          minLength: 0
          type: string
          description: Dígito da conta
          nullable: true
        numeroBanco:
          type: string
          description: Número do banco
          nullable: true
        documentoFederalPagamento:
          maxLength: 20
          minLength: 0
          type: string
          description: >-
            Numero do Cadastro de Pessoa Física (CPF) ou  do Cadastro Nacional
            de Pessoa Física (CNPJ) indicado para pagamento (quando difere do
            Titular)
          nullable: true
        nomePagamento:
          maxLength: 60
          minLength: 0
          type: string
          description: Nome do titular do pagamento.
          nullable: true
      additionalProperties: false
    Message:
      type: object
      properties:
        messageType:
          $ref: '#/components/schemas/ErrorType'
        code:
          type: string
          nullable: true
        context:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        field:
          type: string
          nullable: true
      additionalProperties: false
    ParametroDTO:
      type: object
      properties:
        nome:
          type: string
          description: Refere-se ao nome do parâmetro.
          nullable: true
        valor:
          type: string
          description: Refere-se ao valor do parâmetro.
          nullable: true
      additionalProperties: false
    ErrorType:
      enum:
        - 1
        - 2
        - 3
      type: integer
      format: int32
  securitySchemes:
    Bearer:
      type: apiKey
      description: Informe o token
      name: Authorization
      in: header

````