Delete A Cart Or A Cart Item

Delete a Cart

DELETE https://graph.whisk.com/v1/:cart_id

Delete a cart, along with all of its cart items.

Path Parameters

NameTypeDescription

cart_id

string

Unique cart identifier

{
  "ok": true
}

Sample Request

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

Delete a Cart Item

DELETE https://graph.whisk.com/v1/:cart_id/items/:item_id

Delete a single item from a cart.

Path Parameters

NameTypeDescription

cart_id

string

Unique cart identifier

item_id

string

Unique cart item identifier

{
  "ok": true
}

Sample Request

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

Last updated