---
title: "Remove cart discounts"
method: DELETE
path: "/v3/checkout/shoppingCarts/{shoppingCartId}/discounts/{discountCode}"
tags: ["ShoppingCart"]
---

# Remove cart discounts

`DELETE /v3/checkout/shoppingCarts/{shoppingCartId}/discounts/{discountCode}`

## Request

- Base URL: `https://marketplace.appdirect.com/api`
- URL: `https://marketplace.appdirect.com/api/v3/checkout/shoppingCarts/{shoppingCartId}/discounts/{discountCode}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/appdirect/apis/companies/docs/v3/checkout/shoppingCarts/:shoppingCartId/discounts/:discountCode/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a discount by code from shopping cart items. To remove the discount from specific items only, send the item IDs as parameters. Otherwise, the discount will be removed from all items.

## Path parameters

- `shoppingCartId` string, required
- `discountCode` string, required

## Query parameters

- `itemId` string[]

## Response `204`

NO CONTENT

## Changes

- **2026-11-06** `1fc240f06971`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/appdirect/apis/companies/changes/v3/checkout/shoppingCarts/:shoppingCartId/discounts/:discountCode/delete.md)

---

[API](https://skmtc.dev/appdirect/apis/companies.md) - [All operations](https://skmtc.dev/appdirect/apis/companies/llms.txt) - [OpenAPI document](https://skmtc.dev/appdirect/apis/companies/revisions/1fc240f06971?raw)
