Wishlist (storefront API)
Storefront and customer routes of the wishlist module. Send Accept-Language (or X-Locale from a browser) on every call; a customer route needs the session cookie.
GET /v1/wishlist
Section titled “GET /v1/wishlist”Get wishlist
Parameters:
pagein query (number, min 1, optional).pageSizein query (number, min 1, max 100, optional).
Responses:
200: Wishlist retrieved.401: Unauthorized.
DELETE /v1/wishlist/{productId}
Section titled “DELETE /v1/wishlist/{productId}”Remove item from wishlist
Parameters:
productIdin path (string, required).
Responses:
204: Item removed.401: Unauthorized.404: Item not found.
POST /v1/wishlist/{productId}
Section titled “POST /v1/wishlist/{productId}”Add item to wishlist
Parameters:
productIdin path (string, required).
Responses:
201: Item added.401: Unauthorized.404: Product not found.409: Item already in wishlist.
GET /v1/wishlist/ids
Section titled “GET /v1/wishlist/ids”Get wishlisted product ids
Responses:
200: Product ids retrieved.401: Unauthorized.