CopyPurchaseOrderCommandRequestInput
Creates a new purchase order as a copy of another one, of the same kind and in every status of the source: header, addresses and the item and custom lines with their quantities and prices. It gets a new number, starts as a new order of its kind would (‘Open’ or ‘Released’; ‘Released’ for drop shipping), and has no deliveries, no confirmation and no output dates; the requested delivery date and the dates of the lines are today plus the supplier’s delivery time. Allowances and charges are computed anew. Raises the workflow event ‘created’; an order that starts released also raises ‘changed’, and an order to a warehouse ‘released’ as well. 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: PURCHASE_ORDER_NOT_FOUND (the source order was not found); SUPPLIER_NOT_FOUND (the other supplier was not found); SUPPLIER_INACTIVE (the other supplier is not active). - Request
CopyPurchaseOrderCommandRequestInputFields
The ID of the purchase order.
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.
Another supplier for the copy, an active one. The copy takes its currency, exchange rate and language; prices and supplier numbers are kept as they are, and items are not checked against the new supplier. When omitted, the supplier of the source.
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?