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.
TIP
New here? Read the Cart Rules overview for what a cart rule does and how its fields behave.
Endpoint
| Endpoint | Method |
|---|---|
/api/admin/marketing/cart-rules/{id}/copy | POST |
Details
- Requires an admin Bearer token and the
marketing.promotions.cart_rules.createpermission. - Send an empty body (
{}) withContent-Type: application/json. - The response is the full detail of the newly created rule.
- An unknown source id returns a
404.
What gets copied
| Field | Behaviour |
|---|---|
name | Prefixed with Copy of (e.g. Copy of QA Coupon Rule) |
status | Forced to 0 (the copy starts inactive) |
channels | Copied from the source rule |
customerGroups | Copied from the source rule |
actionType, discountAmount, conditions, other settings | Copied from the source rule |
| Coupons | Not copied — the new rule has no coupons (couponCode is null) |

