cURL
curl --request DELETE \ --url https://api.cravejs.com/api/v1/locations/{locationId}/discounts/apply-discount \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "cartId": "<string>" }'
{ "success": true }
Removes a previously applied discount code from a cart, reverting the cart total to the original amount before discount application.
The unique identifier for the restaurant location
Discount removed successfully
The response is of type object.
object