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

# Atualizar pagamento parcial de uma transação

> Altera valor, data, forma ou observação de um pagamento do lançamento. A soma dos pagamentos não pode passar do valor do lançamento (400); o lançamento volta a pago ou pendente pela nova soma. Exige permissão de editar o financeiro com JWT; aceita o header `x-juridiq-api-key`.



## OpenAPI

````yaml https://api.juridiq.com.br/api-docs/client/openapi.json patch /financial/transactions/{id}/payments/{paymentId}
openapi: 3.1.0
info:
  title: Juridiq API — Documentação para Integradores
  description: >-
    API REST para integradores autenticados com chave (`x-juridiq-api-key`).


    ## Rate limit


    A API aberta limita **120 requisições a cada 60s por chave**.

    Ao exceder, a resposta é `429 Too Many Requests` com os headers
    `x-ratelimit-limit`, `x-ratelimit-remaining`, `x-ratelimit-reset` e
    `retry-after`.

    Respeite o `retry-after` antes de tentar de novo. Sincronizações em lote
    devem paginar e tratar 429 com backoff.
  version: 1.0.0
servers:
  - url: https://api.juridiq.com.br
    description: Production server
security:
  - apiKeyAuth: []
tags: []
paths:
  /financial/transactions/{id}/payments/{paymentId}:
    patch:
      tags:
        - Financial
      summary: Atualizar pagamento parcial de uma transação
      description: >-
        Altera valor, data, forma ou observação de um pagamento do lançamento. A
        soma dos pagamentos não pode passar do valor do lançamento (400); o
        lançamento volta a pago ou pendente pela nova soma. Exige permissão de
        editar o financeiro com JWT; aceita o header `x-juridiq-api-key`.
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: ID da transação
        - schema:
            type: string
          in: path
          name: paymentId
          required: true
          description: ID do pagamento parcial
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                value:
                  type: number
                  description: Valor pago
                  exclusiveMinimum: 0
                paymentDate:
                  type: string
                  description: >-
                    Data do pagamento: YYYY-MM-DD, que conta como meia-noite
                    UTC. Com hora ISO 8601, o dia e o mês contam em UTC, e hora
                    sem fuso segue o fuso do servidor; para o dia local, envie
                    só a data
                paymentMethod:
                  type: string
                  enum:
                    - CASH
                    - PIX
                    - BOLETO
                    - CREDIT_CARD
                    - DEBIT_CARD
                    - BANK_TRANSFER
                    - CHECK
                    - OTHER
                  description: Forma de pagamento
                observation:
                  type: string
                  description: Observação
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: ID do pagamento
                  transactionId:
                    type: string
                    format: uuid
                    description: ID da transação
                  officeId:
                    type: string
                    format: uuid
                    description: ID do escritório
                  value:
                    type: number
                    description: Valor pago
                  paymentDate:
                    anyOf:
                      - type: string
                      - type: string
                        format: date-time
                    description: Data do pagamento
                  paymentMethod:
                    type: string
                    description: Forma de pagamento
                  observation:
                    type: string
                    nullable: true
                    description: Observação
                  createdAt:
                    anyOf:
                      - type: string
                      - type: string
                        format: date-time
                    description: Criado em
                  updatedAt:
                    anyOf:
                      - type: string
                      - type: string
                        format: date-time
                    description: Atualizado em
                required:
                  - id
                  - transactionId
                  - officeId
                  - value
                  - paymentDate
                  - paymentMethod
                  - createdAt
                  - updatedAt
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      message:
                        type: string
                      issues: {}
                    required:
                      - message
                    additionalProperties: false
                  - type: object
                    properties:
                      message:
                        type: string
                      statusCode:
                        type: number
                      translateMessage:
                        type: string
                    required:
                      - message
                      - statusCode
                      - translateMessage
                    additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  translateMessage:
                    type: string
                required:
                  - message
                  - statusCode
                  - translateMessage
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  translateMessage:
                    type: string
                required:
                  - message
                  - statusCode
                  - translateMessage
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  translateMessage:
                    type: string
                required:
                  - message
                  - statusCode
                  - translateMessage
                additionalProperties: false
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-juridiq-api-key
      description: >-
        Chave de API do escritório (criada no painel). Envie o valor no header
        x-juridiq-api-key. A API aberta aplica rate limit por chave (veja a
        documentação de integradores).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.