> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AssignIncomingInvoicePurchaseOrderCommandResponse

> Assigns a purchase order to an incoming invoice: every purchase order line with a quantity left to invoice becomes a line item, with the quantity chosen by "quantityBasis" minus what all incoming invoices already contain (this one included), the confirmed price (otherwise the ordered price) and the tax rate of the line. Lines of an item become item line items; all other lines (free lines, shipping charges, surcharges, discounts) become free-text line items. The purchase order itself does not change; its invoiced quantities are derived from the line items. A purchase order that is already on another invoice can be assigned too. - Response



**Kind**: `object`

## Fields

**`purchaseOrderId`**: `ID!`

The assigned purchase order.

---

**`lineItemIds`**: `[ID!]!`

The IDs of the new line items.

