Mutation / commerce
invoiceOrder
Generate an invoice from an order and its lines. Rejects orders that already have an invoice, including concurrent retries. Requires invoice:write.
Arguments
inputInvoiceOrderInput!Order to invoice, its invoice number, and optional dates, terms and notes.
Returns InvoiceOrderPayload!
Explore in a view
View exact SDL
"""
Generate an invoice from an order and its lines. Rejects orders that already have an invoice, including concurrent retries. Requires invoice:write.
"""
invoiceOrder(
"""
Order to invoice, its invoice number, and optional dates, terms and notes.
"""
input: InvoiceOrderInput!
): InvoiceOrderPayload! @topic(names: ["commerce"])Schema reference describes the API contract. Actual access is checked by the platform for every operation.