Mass Delete Cart Rule Coupons
Deletes several coupons of one cart rule in a single call — the Mass Delete action on the admin Marketing → Promotions → Cart Rules → Coupons datagrid.
TIP
New here? Read the Cart Rule Coupons overview for what a coupon does and how its fields behave.
Operation
| Operation | Type | Purpose |
|---|---|---|
createAdminMarketingCartRuleCouponMassDelete | Mutation | Delete multiple coupons of one cart rule |
Details
- Requires an admin Bearer token and the
marketing.promotions.cart_rules.deletepermission. - Pass the parent
cartRuleIdplus the numeric coupon ids inindices. Ids that do not belong to that cart rule are silently skipped (returned inskipped); the ids actually removed are returned indeleted. - An empty or missing
indiceslist returns a422error.
Input fields
| Field | Type | Required | Notes |
|---|---|---|---|
cartRuleId | Int | Yes | Parent cart-rule id |
indices | Array | Yes | Non-empty list of numeric coupon ids to delete |

