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
|Required||Specifies the unique identifier of a cart created by you.|
|Required||Specifies the promotion code to be removed from the cart.|
|Required||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"
204 No Content