sdk.wishlist namespace manages the authenticated customer’s wishlist. All methods require a Bearer token (set via sdk.setAuthToken()).
Methods
wishlist.get()
Retrieve the customer’s full wishlist.
{ items: Product[]; count: number }
wishlist.addItem(productId)
Add a product to the wishlist.
| Field | Type | Description |
|---|---|---|
productId | number | Product ID to add |
void
wishlist.removeItem(productId)
Remove a product from the wishlist.
void
wishlist.check(productId)
Check whether a specific product is in the customer’s wishlist.
{ in_wishlist: boolean }
wishlist.clear()
Remove all items from the wishlist.
void

