CreatePurchaseOrderLineItemCommandResponse
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). - Response
CreatePurchaseOrderLineItemCommandResponseFields
The ID of the new line item.
The temporary identifier from the request, if one was sent.
Was this page helpful?