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

fetch('https://demo.spreecommerce.org/api/v2/storefront/wishlists/{token}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "error": "You are not authorized to access this page."
}

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

The token is a unique string used to identify the target resource.

Response

204 Success - No Content