draftOrderDuplicate - admin-graphql - MUTATION
Version: 2025-01
Description:
Duplicates a draft order.
Access Scopes
`write_draft_orders` access scope. Also: The user must have access to manage draft orders.
Arguments
-
draftOrderId:
ID -
The ID of the draft order to duplicate.
-
id:
ID -
The ID of the draft order to duplicate.
Returns
-
draftOrder:
DraftOrder
The newly duplicated draft order.
-
userErrors:
UserError!
The list of errors that occurred from executing the mutation.
Examples