Skip to main content
DELETE
/
api
/
v2
/
storefront
/
wishlists
/
{token}
/
remove_item
/
{item_id}
Delete Item from Wishlist
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch('https://demo.spreecommerce.org/api/v2/storefront/wishlists/{token}/remove_item/{item_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{ "data": { "id": "1", "type": "wished_item", "attributes": { "quantity": 3, "price": "55.99", "total": "167.97", "display_price": "$55.99", "display_total": "$167.97" }, "relationships": { "variant": { "data": { "id": "149", "type": "variant" } } } } }

Authorizations

Authorization
string
header
required

User token to authorize Cart and Checkout requests.

It is required to associate Cart with the User.

Path Parameters

token
string
required
item_id
string
required

Response

200 Success - Returns an array of wished_item objects.

data
object
required
included
Wished Item Includes · object[]