Skip to content

Copy Cart Rule

EndpointMethod
/api/admin/marketing/cart-rules/{id}/copyPOST

Duplicates an existing cart rule into a brand-new rule. This is the API equivalent of the Copy action on the cart rules listing.

Send an empty body ({}) with Content-Type: application/json. The response is the full detail of the newly created rule.

What gets copied

FieldBehaviour
namePrefixed with Copy of (e.g. Copy of 10% off summer).
statusForced to 0 (the copy starts inactive).
channelsCopied from the source rule.
customerGroupsCopied from the source rule.
actionType, discountAmount, conditions, other settingsCopied from the source rule.
CouponsNot copied. The new rule has no coupons.

A 404 is returned if the source rule id is unknown.

Permission: marketing.promotions.cart_rules.create.

Released under the MIT License.