# IssueInvoiceInput

input type

Issue-input for issueInvoice.

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `caption` | [String](/types/#scalars) | no | Optional: when omitted the default is 'invoice of <order sysId> N lines'; when supplied it must be non-blank. |
| `orderId` | [ID](/types/#scalars) `ID!` | yes | The Order to invoice — same-group; ∈ {placed, completed} (an open/held cart cannot bill; a voided/abandoned/cancelled order has nothing to bill). |
| `lines` | [InvoiceLineSelectionInput](/types/InvoiceLineSelectionInput/) `[InvoiceLineSelectionInput!]` | no | The partial-model selections (omitted = the FULL un-invoiced remainder; supplied = ≥ 1 entries, distinct orderLineNos). |

## Used by

- [issueInvoice](/reference/selling/issueInvoice/)
