Skip to content

Delete All Wishlist Items

Remove every item from the authenticated customer's wishlist in a single request.

Endpoint

POST /api/shop/delete-all-wishlists

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key
AuthorizationYesCustomer Bearer token (Bearer <accessToken>)

Request Body

No fields are required. Send an empty JSON object:

json
{}

Response Fields (200 OK)

FieldTypeDescription
messagestringConfirmation message
deletedCountintegerNumber of wishlist items removed

Use Cases

  • "Clear wishlist" action on the wishlist page
  • Reset a customer's saved products in one call

Notes

  • Only the authenticated customer's items are removed.
  • Returns deletedCount: 0 when the wishlist is already empty.

Released under the MIT License.