# AddPurchaseOrderLinesInput

input type

Append-input for addPurchaseOrderLines.

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `purchaseOrderId` | [ID](/types/#scalars) `ID!` | yes | The PurchaseOrder appended to — tenant-scoped + DRAFT (a live post-draft doc refuses CONFLICT/REF_STATE naming the required state). |
| `lines` | [PurchaseOrderLineInput](/types/PurchaseOrderLineInput/) `[PurchaseOrderLineInput!]!` | yes | The appended lines (1..90 — the PER-CALL ceiling; the same defaults + gates as create; distinct variant × receiving-LF keys across the WHOLE document, not merely the call; the document's total refuses past 1000). |

## Used by

- [addPurchaseOrderLines](/reference/purchasing/addPurchaseOrderLines/)
