Remove from the wishlist
DELETE
/wishlists/{id}
const url = 'https://acme.mykreezalid.com/front_api/v1/wishlists/4242?type=listing';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url 'https://acme.mykreezalid.com/front_api/v1/wishlists/4242?type=listing' \ --header 'Authorization: Bearer <token>'Removes a listing (by default) or a vendor (type=vendor) from the signed-in member’s wishlist. The response is always 200: check success.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer
Example
4242Identifier of the listing, or of the vendor with type=vendor.
Query Parameters
Section titled “Query Parameters”type
string
Kind of item to remove.
Responses
Section titled “Responses”The outcome. success is true when the item is removed.
Media typeapplication/json
object
success
boolean
message
On success, listing deleted successfully from wishlist (or vendor …). Otherwise listing_not_in_your_wishlist (or vendor_not_in_your_wishlist) or unable_to_remove.
string
Example
{ "success": true, "message": "listing deleted successfully from wishlist"}No valid access token was sent.
Media typeapplication/json
Error body returned by the Front API when it refuses a request.
object
code
HTTP status code, repeated in the body.
integer
status
string
message
Human-readable reason.
string
Example
{ "code": 403, "status": "error", "message": "Token not found in request"}