XM

Add Item to Wishlist

Path:

POST /api-cart/wishlist/user

Items that your customers desire to purchase in the future can be added to their Wishlist, which is an effective way to drive future sales. In addition, Wishlist saves considerable amount of time as your customers don’t have to search for the same items again when they are ready to buy.

Headers

Content-Type : application/json

Authorization: JWT

x-site-context : {"channel":12,"date":"2020-04-24"}

Consumes

  • application/json

Produces

  • application/json

Parameters

Type : body

Name : itemId and userId

Required: true

Path:

https://{baseURL}/api-cart/wishlist/user

Body:

{
"itemId": "1000000013"
}

Response

Response Code: 200

Message: OK

Description: You will see this message when an item is successfully added to the Wish List.

Sample

{
"userId": "5f988dadc3346713da73c1e5",
"items": [
1000000014,
1000000013
]
}

Response Code: 400

Message: Item Already in Wishlist

Response Code: 403

Message: Unauthorized User

changelog

  • Last updated - April 2021

  • First updated - July 2020