Skip to content

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

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

Details

  • Requires an admin Bearer token and the marketing.promotions.cart_rules.create permission.
  • Send an empty body ({}) with Content-Type: application/json.
  • The response is the full detail of the newly created rule.
  • An unknown source id returns a 404.

What gets copied

FieldBehaviour
namePrefixed with Copy of (e.g. Copy of QA Coupon Rule)
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 (couponCode is null)

Released under the MIT License.