---
title: "Mass-delete coupons for a cart rule"
method: POST
path: "/marketing/cart-rules/{cartRuleId}/coupons/mass-delete"
tags: ["Admin Marketing: Promotions"]
---

# Mass-delete coupons for a cart rule

`POST /marketing/cart-rules/{cartRuleId}/coupons/mass-delete`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/marketing/cart-rules/{cartRuleId}/coupons/mass-delete`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/marketing/cart-rules/:cartRuleId/coupons/mass-delete/post.ts> (a function with typed inputs; its response is checked against the schema)

Mass-delete coupons for a cart rule

## Path parameters

- `cartRuleId` integer, required

## Request body

- object
  - `indices` integer[], required

## Response `200`

Coupons deleted

## Other responses

- `400`: Invalid input
- `422`: Validation Error

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
