Skip to content

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

OperationTypePurpose
createAdminMarketingCartRuleCouponMassDeleteMutationDelete multiple coupons of one cart rule

Details

  • Requires an admin Bearer token and the marketing.promotions.cart_rules.delete permission.
  • Pass the parent cartRuleId plus the numeric coupon ids in indices. Ids that do not belong to that cart rule are silently skipped (returned in skipped); the ids actually removed are returned in deleted.
  • An empty or missing indices list returns a 422 error.

Input fields

FieldTypeRequiredNotes
cartRuleIdIntYesParent cart-rule id
indicesArrayYesNon-empty list of numeric coupon ids to delete

Released under the MIT License.