CreatePurchaseOrderLineItemCommandRequestInput
Adds a line item to a purchase order, in every status; it is put after the last item or custom line. The input is a one-of: an item line or a custom line. The allowances and charges are computed anew. An order that is sent or partially delivered gets its status computed anew from the ordered and delivered quantities; a completed order stays completed. Raises the workflow event ‘changed’. Errors arrive as GraphQL errors with the code in ‘extensions.code’; a refusal because of the current state also lists every reason in ‘extensions.blockers’. Codes: an invalid request, for example a quantity below 0, a tax rate outside 0 to 100 or a text with control characters; PURCHASE_ORDER_NOT_FOUND (the order was not found); ITEM_NOT_FOUND (the item was not found); ITEM_INACTIVE, ITEM_IS_VARIATION_PARENT, ITEM_IS_BILL_OF_MATERIALS or ITEM_NOT_ASSIGNED_TO_SUPPLIER (the item cannot be ordered from this supplier as it is). - Request
CreatePurchaseOrderLineItemCommandRequestInputFields
The ID of the purchase order.
The new line item. Exactly one variant.
Suppresses the automatic workflow triggers of this call. Defaults to false when omitted.
Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.
Was this page helpful?