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

# MovePaymentToSalesInvoiceCommandRequestInput

> Moves a payment to a sales invoice of the same sales order. The amount counts for the invoice from then on; an invoice that becomes fully paid starts its workflows. Errors: PAYMENT_NOT_FOUND (the payment was not found); SALES_INVOICE_NOT_FOUND (the sales invoice was not found); DOCUMENT_NOT_OF_PAYMENT_SALES_ORDER (the invoice does not belong to the sales order of the payment); SALES_INVOICE_IS_DRAFT (the invoice is a draft; finalise it first); SALES_INVOICE_CANCELLED (the invoice is cancelled; the payments of a cancelled invoice belong to the sales order); PAYMENT_CANNOT_BE_MOVED (the payment cannot be moved. The error lists the blocker codes: PAYMENT_BOOKED_BY_REFUND). - Request



**Kind**: `input`

## Fields

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

The ID of the payment.

---

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

The sales invoice the payment counts for from now on.

---

**`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.

