Skip to main content
inputCreateSalesInvoiceFromSalesOrderLineItemsCommandRequestInput

Fields

salesOrderId
ID!
required

The ID of the sales order.

salesOrderLineItemIds
[ID]!
required

The line items of the sales order to invoice, at least 1, each at most once. They select what one new invoice contains; this is not a batch.

invoiceOnlyDeliveredQuantity
Boolean

Whether only the delivered quantities are invoiced for item, free, voucher and gift line items. Defaults to false: all open quantities are invoiced.

asDraft
Boolean

Whether the invoice is created as a draft: without a number, editable and not binding until it is finalized. Defaults to false: the invoice is finalized at once and gets its number.

clientId
String

A temporary ID chosen by the client. It is not stored and is returned unchanged.

disableAutomaticWorkflows
Boolean

Suppresses the automatic workflow triggers of this call. 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.