> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# UpdatePaymentCommandRequestInput

> Changes a payment. Fields that are omitted stay as they are. A changed amount can change the payment status of the document the payment counts for (for a payment of an invoice correction, of the corrected invoice), and a document that becomes fully paid starts its workflows. Where the payment counts is changed with the move operations. Errors: PAYMENT_NOT_FOUND (the payment was not found); PAYMENT_METHOD_NOT_FOUND (the payment method was not found); AMOUNT_NOT_POSITIVE (the amount is not greater than 0); PAYMENT_CANNOT_BE_CHANGED (the payment cannot be changed. The error lists the blocker codes: PAYMENT_IS_VOUCHER_REDEMPTION (for the amount, the date, the transaction ID and the note), PAYMENT_BOOKED_BY_REFUND, PaymentFromPaymentTransaction (for the amount)). - Request



**Kind**: `input`

## Fields

**`paymentId`**: `ID!` (required)

The ID of the payment.

---

**`amount`**: `Decimal`

The new amount as a positive number with at most two decimals; a payout stays a payout.

---

**`paymentDate`**: `DateTime`

The new date of the payment.

---

**`paymentMethodId`**: `ID`

The new payment method.

---

**`externalTransactionId`**: `String`

The new transaction ID; null removes it.

---

**`note`**: `String`

The new note; null removes it.

---

**`isDownPayment`**: `Boolean`

Whether the payment is a down payment.

---

**`generalLedgerAccount`**: `String`

The new general ledger account; null removes it.

---

**`isExcludedFromAccountingExport`**: `Boolean`

Whether the payment is left out of the accounting export.

---

**`disableAutomaticWorkflows`**: `Boolean`

Whether to suppress the workflows this call would start because a sales order or a sales invoice becomes fully paid. Defaults to false when omitted.

---

**`idempotencyKey`**: `String`

Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.

