This endpoint switches a product's addition or removal from the customer's wishlist. It simply calls the other endpoints Add and Remove as needed. A copy of the customer's wishlist is saved in the broswer local storage to speed the process of retrieving its content. Based on the content of the wishlist in the local storage, the items will be added or removed.Payload authenticated
#
Response#
Usage#
To perform the action of switching a product's addition or removal from a wishlist, the method toggle()
may be called as below.Events#
This endpoint calls the add
and remove
endpoint, accordingly, all of their events are applicable. Modified at 2025-03-04 12:54:02