Skip to main content
inputRestockSuggestionPurchaseOrderLineInput

Fields

clientId
String

A temporary identifier chosen by the client, for example to match the answer to an optimistic update. It is not stored and is returned unchanged.

itemId
ID!
required

The ID of the item: an active item that is no variation parent and no bill of materials.

supplierId
ID!
required

The ID of the supplier, an active one; the company's own production as well.

warehouseId
ID!
required

The ID of the receiving warehouse, an active one that is no drop shipping target.

quantity
Decimal!
required

The quantity to order, more than 0. As in 'CreatePurchaseOrder', the ERP raises it to the supplier's minimum order quantity, rounds it to whole units for an item that is not divisible and up to the supplier's order interval.

netUnitPrice
Decimal

The net price per unit in the supplier's currency; it may be negative. When omitted, the supplier's price for the item and quantity is used, including its scale prices.

assignItemToSupplier
Boolean

Whether to assign the item to the supplier when it is not assigned yet, as 'CreatePurchaseOrder' does. Defaults to false: an item the supplier does not deliver is refused.