Copy Cart Rule
Duplicates an existing cart rule into a brand-new rule — the Copy row action on the admin Marketing → Promotions → Cart Rules datagrid. The new rule is a ready-to-edit clone that starts inactive.
TIP
New here? Read the Cart Rules overview for what a cart rule does and how its fields behave.
Operation
| Operation | Type | Purpose |
|---|---|---|
copyAdminMarketingCartRule | Mutation | Duplicate a cart rule into a new rule |
Details
- Requires an admin Bearer token and the
marketing.promotions.cart_rules.createpermission. - Pass the source rule's IRI (e.g.
/api/admin/marketing/cart-rules/47) asid. The mutation returns the full detail of the newly created rule. - The copy:
- prefixes
namewithCopy of, - forces
statusto0(the copy starts inactive), - copies the source's
channelsandcustomerGroups, - does not copy coupons — so
couponCodeisnullon the new rule.
- prefixes
- An unknown source id returns a
404error.
Input fields
| Field | Type | Required | Notes |
|---|---|---|---|
id | ID | Yes | The source rule's IRI |

