← API reference
CANONICAL TYPE REFERENCE

InvoiceOrderPayload

Result of invoiceOrder: the newly raised invoice and its lines.

The new invoice — kind invoice, status draft, paidAmount 0, with customer, addresses, currency and amounts copied from the order. Null when errors is non-empty.

Invoice lines created one-for-one from the order lines, each linked back to its order line and job. Null on failure.

Field-level validation errors. Empty on success; when non-empty no invoice was written.

View exact SDL
"""Result of `invoiceOrder`: the newly raised invoice and its lines."""
type InvoiceOrderPayload {
  """
  The new invoice — kind `invoice`, status `draft`, `paidAmount` 0, with customer, addresses, currency and amounts copied from the order. Null when `errors` is non-empty.
  """
  invoice: InvoiceState
  """
  Invoice lines created one-for-one from the order lines, each linked back to its order line and job. Null on failure.
  """
  invoiceLines: [InvoiceLineState!]
  """
  Field-level validation errors. Empty on success; when non-empty no invoice was written.
  """
  errors: [FieldError!]!
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.