← All types
Ob Object

InvoiceOrderPayload

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

Fields

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.

errors

[FieldError!]!Non-null

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

Referenced by (1)
Exact type 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!]!
}