> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Revise due-date charge batch

> Revises specific charges within a batch. The cobsv array may contain fewer items than the originating batch, but it cannot add or remove charges. Pix API PATCH /lotecobv/{id}.



## OpenAPI

````yaml en/openapi/v3-current/spi-brcode.yaml patch /api/v1/brcode/lotecobv/{id}
openapi: 3.1.0
info:
  contact:
    email: contact@lerian.studio
    name: Lerian Studio
    url: https://lerian.studio
  description: BR Code service for QR code generation and decoding (EMV QRCPS-MPM).
  license:
    name: Lerian Studio General License
  title: Lerian SPI — BR Code API
  version: 1.0.0
servers:
  - url: https://spi.sandbox.lerian.net
security: []
tags:
  - description: EMV BR Code payload generation, decoding, validation, info, and lookup.
    name: BRCode
  - description: >-
      Pix charges (Cob/CobV/LoteCobV): create, retrieve by TxID, list, cancel,
      reconcile, and resolve public payloads.
    name: Charges
  - description: >-
      Flow (mandatory order): create cob/cobv → generate QR/payload. A dynamic
      BR Code payload references a charge, so the cob/cobv charge MUST be
      created first; the payload links to it by txid/locator.
    name: charge
paths:
  /api/v1/brcode/lotecobv/{id}:
    patch:
      tags:
        - LoteCobV
      summary: Revise due-date charge batch
      description: >-
        Revises specific charges within a batch. The cobsv array may contain
        fewer items than the originating batch, but it cannot add or remove
        charges. Pix API PATCH /lotecobv/{id}.
      operationId: patchLoteCobV
      parameters:
        - description: Identificador do lote (texto).
          in: path
          name: id
          required: true
          schema:
            description: Identificador do lote (texto).
            pattern: ^[A-Za-z0-9-]{1,35}$
            type: string
        - description: Idempotency key, max 255 characters.
          in: header
          name: Idempotency-Key
          schema:
            description: Idempotency key, max 255 characters.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoteCobVBodyRevisado'
        required: true
      responses:
        '202':
          description: Accepted
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Error
      security:
        - BearerAuth: []
components:
  schemas:
    LoteCobVBodyRevisado:
      additionalProperties: false
      properties:
        cobsv:
          description: Solicitações de alteração de cobranças com vencimento.
          items:
            $ref: '#/components/schemas/LoteCobVItemRevisado'
          type:
            - array
            - 'null'
        descricao:
          description: Descrição do lote.
          type: string
      required:
        - cobsv
      type: object
    Detail:
      additionalProperties: false
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          examples:
            - ERR-0001
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    LoteCobVItemRevisado:
      additionalProperties: false
      properties:
        calendario:
          $ref: '#/components/schemas/CobVCalendarioSolicitado'
          description: Controle de tempo da cobrança.
        chave:
          description: Chave DICT do recebedor.
          maxLength: 77
          type: string
        devedor:
          $ref: '#/components/schemas/Pessoa'
          description: Devedor da cobrança.
        infoAdicionais:
          description: Informações adicionais (máx 50).
          items:
            $ref: '#/components/schemas/InfoAdicional'
          type:
            - array
            - 'null'
        loc:
          $ref: '#/components/schemas/CobLocSolicitada'
          description: Referência de location.
        solicitacaoPagador:
          description: Texto livre apresentado ao pagador.
          maxLength: 140
          type: string
        status:
          description: >-
            Único valor aceito: REMOVIDA_PELO_USUARIO_RECEBEDOR (remove a
            cobrança).
          enum:
            - REMOVIDA_PELO_USUARIO_RECEBEDOR
          type: string
        txid:
          description: Identificador da transação do item [a-zA-Z0-9]{26,35}.
          pattern: ^[a-zA-Z0-9]{26,35}$
          type: string
        valor:
          $ref: '#/components/schemas/CobVValor'
          description: Valores monetários da cobrança.
      required:
        - txid
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    CobVCalendarioSolicitado:
      additionalProperties: false
      properties:
        dataDeVencimento:
          description: Data de vencimento da cobrança (YYYY-MM-DD).
          examples:
            - '2030-04-01'
          type: string
        validadeAposVencimento:
          description: >-
            Dias corridos após dataDeVencimento em que a cobrança pode ser paga
            (padrão 30).
          examples:
            - 30
          format: int64
          minimum: 0
          type: integer
      required:
        - dataDeVencimento
      type: object
    Pessoa:
      additionalProperties: false
      properties:
        cep:
          description: CEP do devedor.
          maxLength: 8
          type: string
        cidade:
          description: Cidade do devedor.
          maxLength: 200
          type: string
        cnpj:
          description: CNPJ do devedor (PJ). Mutuamente exclusivo com cpf.
          examples:
            - 12ABC34501DE35
          type: string
        cpf:
          description: CPF do devedor (PF). Mutuamente exclusivo com cnpj.
          examples:
            - '12345678901'
          type: string
        email:
          description: Email do devedor.
          type: string
        logradouro:
          description: Logradouro do devedor.
          maxLength: 200
          type: string
        nome:
          description: Nome do devedor.
          examples:
            - Fulano de Tal
          maxLength: 200
          type: string
        uf:
          description: UF do devedor.
          maxLength: 2
          type: string
      type: object
    InfoAdicional:
      additionalProperties: false
      properties:
        nome:
          description: Nome do campo.
          maxLength: 50
          type: string
        valor:
          description: Dados do campo.
          maxLength: 200
          type: string
      required:
        - nome
        - valor
      type: object
    CobLocSolicitada:
      additionalProperties: false
      properties:
        id:
          description: Id da location previamente criada.
          format: int64
          type: integer
        tipoCob:
          description: cob | cobv.
          enum:
            - cob
            - cobv
          type: string
      type: object
    CobVValor:
      additionalProperties: false
      properties:
        abatimento:
          $ref: '#/components/schemas/ValorPercModalidade'
          description: Abatimento aplicado (modalidade 1..2).
        desconto:
          $ref: '#/components/schemas/CobVDesconto'
          description: Descontos aplicados (modalidade 1..6).
        juros:
          $ref: '#/components/schemas/ValorPercModalidade'
          description: Juros aplicados (modalidade 1..8).
        multa:
          $ref: '#/components/schemas/ValorPercModalidade'
          description: Multa aplicada (modalidade 1..2).
        original:
          description: Valor original da cobrança (obrigatório na criação).
          examples:
            - '250.00'
          pattern: ^\d{1,10}\.\d{2}$
          type: string
      type: object
    ValorPercModalidade:
      additionalProperties: false
      properties:
        modalidade:
          description: Modalidade do componente, conforme tabela de domínios.
          format: int64
          type: integer
        valorPerc:
          description: Valor absoluto ou percentual conforme modalidade.
          pattern: ^\d{1,10}\.\d{2}$
          type: string
      required:
        - modalidade
        - valorPerc
      type: object
    CobVDesconto:
      additionalProperties: false
      properties:
        descontoDataFixa:
          description: Descontos com data fixa (modalidades 1..2), até 3 entradas.
          items:
            $ref: '#/components/schemas/DescontoDataFixa'
          type:
            - array
            - 'null'
        modalidade:
          description: Modalidade de desconto (1..6), conforme tabela de domínios.
          format: int64
          maximum: 6
          minimum: 1
          type: integer
        valorPerc:
          description: Desconto absoluto ou percentual (modalidades 3..6).
          pattern: ^\d{1,10}\.\d{2}$
          type: string
      required:
        - modalidade
      type: object
    DescontoDataFixa:
      additionalProperties: false
      properties:
        data:
          description: Data limite do desconto (YYYY-MM-DD).
          examples:
            - '2030-03-01'
          type: string
        valorPerc:
          description: Valor absoluto ou percentual do desconto.
          pattern: ^\d{1,10}\.\d{2}$
          type: string
      required:
        - data
        - valorPerc
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````