← API reference
Mutation / commerce

createInvoice

Create a new invoice. Requires invoice:write permission.

Arguments

Invoice data for new invoice

Returns UpsertInvoicePayload!

Explore in a view

Order Intake
View exact SDL
"""Create a new invoice. Requires invoice:write permission."""
createInvoice(
  """Invoice data for new invoice"""
  input: CreateInvoiceInput!
): UpsertInvoicePayload! @topic(names: ["commerce"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.