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
Name | Required | Type | Description |
---|---|---|---|
cartID | Required | string | Specifies the unique identifier of a cart created by you. |
code | Required | string | Specifies the promotion code to be removed from the cart. |
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The 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