Delete A Cart Or A Cart Item

delete
Delete a Cart

https://graph.whisk.com/v1/:cart_id
Delete a cart, along with all of its cart items.
Request
Response
Request
Path Parameters
cart_id
required
string
Unique cart identifier
Response
200: OK
Returns an ok status when successful.
{
"ok": true
}

Sample Request

curl -X DELETE "https://graph.whisk.com/v1/7db042ed5cf5448581da768b5490ecd1" \
-H "Accept: application/json" \
-H "Authorization: Token <Access-Token>"

delete
Delete a Cart Item

https://graph.whisk.com/v1/:cart_id/items/:item_id
Delete a single item from a cart.
Request
Response
Request
Path Parameters
cart_id
required
string
Unique cart identifier
item_id
required
string
Unique cart item identifier
Response
200: OK
Returns an ok state when successful.
{
"ok": true
}

Sample Request

curl -X DELETE "https://graph.whisk.com/v1/7db042ed5cf5448581da768b5490ecd1/items/898003be304e49b084ac6224adc7ff53" \
-H "Accept: application/json" \
-H "Authorization: Token <Access-Token>"