Carts/
Cart Items/
Remove Promotion Code from Cart

Remove Promotion Code from Cart

You can remove promotion code from a cart if it was applied manually. This endpoint does not work if the promotion is applied automatically.

DELETE Remove Promotion Code from Cart

https://api.moltin.com/v2/carts/:cartID/discounts/:code

Parameters

Path parameters

NameRequiredTypeDescription
cartIDRequiredstringSpecifies the unique identifier of a cart created by you.
codeRequiredstringSpecifies the promotion code to be removed from the cart.

Headers

NameRequiredTypeDescription
AuthorizationRequiredstringThe Bearer token required to get access to the API.

Request Example - Curl

curl -X DELETE https://api.moltin.com/v2/carts/:cartID/discounts/:code \
     -H "Authorization: Bearer XXXX"

Response Example

204 No Content

Was this helpful?

Previous
Remove Cart Item

Learn

Docs