Removes a wished item from a wishlist.
JavaScript
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));
200
Wished Item
{ "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" } } } } }
User token to authorize Cart and Checkout requests.
It is required to associate Cart with the User.
200 Success - Returns an array of wished_item objects.
wished_item
Show child attributes
Was this page helpful?