Skip to main content
inputCreateSalesInvoiceCommandRequestInput

Fields

salesOrderId
ID!
required

The ID of the sales order to create the invoice for.

invoiceOnlyDeliveredQuantity
Boolean

If true, only the delivered quantities of the sales order line items are added to the new invoice.

asDraft
Boolean

If true, the invoice will be created as a draft. An invoice draft has no invoice number yet and can be edited until finalized.

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.