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
MovePaymentToSalesInvoiceCommandRequestInputFields
The ID of the payment.
The sales invoice the payment counts for from now on.
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.
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.
Was this page helpful?