DELETE
/
api
/
v1
/
locations
/
{locationId}
/
carts
/
{cartId}
Delete a Cart
curl --request DELETE \
  --url https://api.cravejs.com/api/v1/locations/{locationId}/carts/{cartId} \
  --header 'X-API-Key: <api-key>'
{
  "success": true
}

Path Parameters

locationId
string
required
The unique identifier for the restaurant location
cartId
string
required
The unique identifier for the cart to delete
{
  "success": true
}

Authorizations

X-API-Key
string
header
required

Path Parameters

locationId
string
required

The unique identifier for the restaurant location

cartId
string
required

The ID of the cart to delete.

Response

Cart deleted successfully.

The response is of type object.