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

# 55 - Update Bill

> <p>Scopes:</p>
<b>api.ext api.boleto.alterar</b>

Through this endpoint, the partner can allow the operator to make updates to a given bill as long as it is within the due date and has not been paid.


## OpenAPI

````yaml post /api/Boleto/Alterar
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/Boleto/Alterar:
    post:
      tags:
        - Boleto
      summary: Altera os dados de um boleto bancário.
      description: "<p>Scopes:</p>\r\n<b>api.ext api.boleto.alterar</b>"
      parameters:
        - name: IdempotencyKey
          in: header
          required: true
          schema:
            type: string
        - name: IgnoraHandshake
          in: header
          description: (somente em homologação)
          required: true
          schema:
            type: boolean
            default: true
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - $ref: >-
                    #/components/schemas/BMPSPB.Domain.Messaging.API.Externa.DDA.AlterarBoletoExternoRequest
          text/json:
            schema:
              allOf:
                - $ref: >-
                    #/components/schemas/BMPSPB.Domain.Messaging.API.Externa.DDA.AlterarBoletoExternoRequest
          application/*+json:
            schema:
              allOf:
                - $ref: >-
                    #/components/schemas/BMPSPB.Domain.Messaging.API.Externa.DDA.AlterarBoletoExternoRequest
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/BMPSPB.Domain.Messaging.API.Shared.DDA.Alteracao.AlteracaoBoletoResponse
        '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.DDA.AlterarBoletoExternoRequest:
      type: object
      properties:
        codigoRegistroBoleto:
          type: string
          format: uuid
          nullable: true
        codigoBarras:
          type: string
          nullable: true
        dadosBoleto:
          allOf:
            - $ref: >-
                #/components/schemas/BMPSPB.Domain.Messaging.API.Shared.DDA.Alteracao.AlteracaoBoletoDadosDto
          nullable: true
        pagador:
          allOf:
            - $ref: >-
                #/components/schemas/BMPSPB.Domain.Messaging.API.Shared.DDA.BoletoPagadorExternoDto
          nullable: true
        sacadorAvalista:
          allOf:
            - $ref: >-
                #/components/schemas/BMPSPB.Domain.Messaging.API.Shared.DDA.BoletoSacadorAvalistaDto
          nullable: true
        juros:
          allOf:
            - $ref: >-
                #/components/schemas/BMPSPB.Domain.Messaging.API.Shared.DDA.ItemCalculavelBoleto
          nullable: true
        multa:
          allOf:
            - $ref: >-
                #/components/schemas/BMPSPB.Domain.Messaging.API.Shared.DDA.ItemCalculavelBoleto
          nullable: true
        desconto:
          allOf:
            - $ref: >-
                #/components/schemas/BMPSPB.Domain.Messaging.API.Shared.DDA.ItemCalculavelBoleto
          nullable: true
        descontos:
          type: array
          items:
            $ref: >-
              #/components/schemas/BMPSPB.Domain.Messaging.API.Shared.DDA.ItemCalculavelBoleto
          nullable: true
        identificadorCliente:
          type: string
          nullable: true
        instrucoesBeneficiario:
          type: array
          items:
            type: string
          nullable: true
      additionalProperties: false
    BMPSPB.Domain.Messaging.API.Shared.DDA.Alteracao.AlteracaoBoletoResponse:
      type: object
      properties:
        sucesso:
          type: boolean
        mensagem:
          type: string
          nullable: true
        codigoAlteracaoBoleto:
          type: string
          format: uuid
        situacaoBoleto:
          allOf:
            - $ref: '#/components/schemas/BMPSPB.Infra.Enums.SituacaoBoleto'
          nullable: true
      additionalProperties: false
    BMPSPB.Domain.Messaging.API.Shared.DDA.Alteracao.AlteracaoBoletoDadosDto:
      type: object
      properties:
        dtVencimento:
          type: string
          description: Data do vencimento do boleto.
          format: date-time
          nullable: true
        dtLimPgto:
          type: string
          description: Data limite do pagamento do boleto.
          format: date-time
          nullable: true
        numDocTit:
          type: string
          description: Número do documento do título.
          nullable: true
        vlrAbatimento:
          type: number
          description: Valor do abatimento.
          format: double
        vlrTit:
          type: number
          description: Valor do título.
          format: double
          nullable: true
        numeroDocumento:
          type: string
          description: Número do documento.
          nullable: true
      additionalProperties: false
    BMPSPB.Domain.Messaging.API.Shared.DDA.BoletoPagadorExternoDto:
      type: object
      properties:
        tipoPessoa:
          allOf:
            - $ref: '#/components/schemas/BMPSPB.Infra.Enums.TipoPessoa'
        documentoFederal:
          type: string
          nullable: true
        nomeRazao:
          type: string
          nullable: true
        nomeFantasia:
          type: string
          nullable: true
        logradouro:
          type: string
          nullable: true
        cidade:
          type: string
          nullable: true
        uf:
          type: string
          nullable: true
        cep:
          type: string
          nullable: true
        bairro:
          type: string
          nullable: true
        numero:
          type: string
          nullable: true
        complemento:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        telefone:
          type: string
          nullable: true
      additionalProperties: false
    BMPSPB.Domain.Messaging.API.Shared.DDA.BoletoSacadorAvalistaDto:
      type: object
      properties:
        tipo:
          allOf:
            - $ref: '#/components/schemas/BMPSPB.Infra.Enums.TipoSacadorAvalista'
          description: |-
            Tipo de sacador avalista.

             Valores:
            0 - Isento
            1 - CPF
            2 - CNPJ
            3 - PIS/PASEP
            9 - Outros
          nullable: true
        identificador:
          type: string
          description: Identificador do sacador avalista.
          nullable: true
        nomeSacadorAvalista:
          type: string
          description: Nome do sacador avalista.
          nullable: true
      additionalProperties: false
    BMPSPB.Domain.Messaging.API.Shared.DDA.ItemCalculavelBoleto:
      type: object
      properties:
        data:
          type: string
          description: Data associada ao item calculável.
          format: date-time
          nullable: true
        codigo:
          type: string
          description: Código do item calculável.
          nullable: true
        vlr:
          type: number
          description: Valor do item calculável.
          format: double
      additionalProperties: false
    BMPSPB.Infra.Enums.SituacaoBoleto:
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
      type: integer
      description: ''
      format: int32
    BMPSPB.Infra.Enums.TipoPessoa:
      enum:
        - 1
        - 2
      type: integer
      description: ''
      format: int32
    BMPSPB.Infra.Enums.TipoSacadorAvalista:
      enum:
        - 0
        - 1
        - 2
        - 3
        - 9
      type: integer
      description: ''
      format: int32
  securitySchemes:
    Bearer:
      type: apiKey
      description: Copie 'Bearer ' + token
      name: Authorization
      in: header

````