XM

Delete Item from Wishlist

Path:

DELETE https://{baseurl}/api-cart/wishlist/user/item/{itemId}

Through this API, your customer can easily remove from Wishlist the items that no longer interest them. This helps to update the Wishlist to reflect your customer's current items of interest.

Headers

Content-Type : application/json

Authorization: The JWT Authorization toke from the Login API.

x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox"

Parameters

Type : path

Name : The ID of the item to be deleted from the Wishlist.

Required: true

Path:

DELETE https://{baseurl}/api-cart/wishlist/user/item/170

Response

Response Code: 200

Message: OK

Description: You will see this message when the requested item is successfully removed from the Wishlist. The response lists all other items currently available in the Wishlist. When the only item in the Wishlist is removed, the API returns a blank array of items.

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

Error Code: 403

Message: Forbidden

Description: You will see this error when the user is not authorized to remove items from list.

{
"code": "UNAUTHORIZED_USER",
"message": "Unauthorized User"
}

Error Code: 500

Message: Internal Server Error

Description: You will see this error when the account number is incorrect in the x-site-context (for a multi-tenent client).

Change Log

  • June - 2021

  • July - 2020 First updated