DELETE
/
api
/
v1
/
locations
/
{locationId}
/
discounts
/
apply-discount
Remove Discount Code
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
}

Authorizations

X-API-Key
string
header
required

Path Parameters

locationId
string
required

The unique identifier for the restaurant location

Body

application/json

Response

200
application/json

Discount removed successfully

The response is of type object.