duplicateOrder
Duplicates an existing order into a new **draft** order.
Copies only base information (items, addresses, tags, notes, carrier selection, and money starting values) and lets the system recompute everything else. The new order starts in the "draft" state with a freshly generated order number and no fulfillments, shipments, or allocations. It behaves like creating a new order from a template.
To change quantities or any other field after duplicating, use the order update mutations
(e.g. updateOrderItems, updateOrderDetails) on the returned draft.
Requirements
- User must have
orders:duplicate_orderpermission - The source order must exist
Behavior
- A new order number is generated (the source number is not copied)
- Status, fulfillments, external identifiers, and order dates are NOT copied
- Returns the newly created draft order
duplicateOrder(
input: DuplicateOrderInput!
): V2Order!
Arguments
duplicateOrder.input ● DuplicateOrderInput! non-null input common
Parameters for DuplicateOrder
Type
V2Order object orders
The V2 order type. This type represents a V2 order in the system with only the fields necessary for draft creation and details.