@plentymarkets/shop-api / doAddWishlistItem
Function: doAddWishlistItem() ​
doAddWishlistItem(
context
,params
):Promise
<Data
<AddWishlistItemResponse
>>
Method doAddWishlistItem - Adds a product in the wishlist of the logged-in user.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: AddWishlistItemParams
Returns ​
Promise
<Data
<AddWishlistItemResponse
>>
Remarks ​
- Calls /rest/storefront/wishlist
- This method is used to add a product to the wishlist of the logged-in user.
Example ​
ts
const { data } = await useSdk().plentysystems.doAddWishlistItem({
variationId: 1100,
});