Skip to content

Delete Wishlist Item

About

The deleteWishlist mutation removes a specific item from the authenticated customer's wishlist. Use this mutation to:

  • Remove individual products from the wishlist
  • Implement "Remove from Wishlist" buttons
  • Clean up wishlist items programmatically

Authentication

This mutation requires customer authentication:

  • Authenticated customers: Provide a valid customer authentication token in the Authorization header. Obtain this token via the Customer Login API.
Authorization: Bearer <accessToken>

Arguments

ArgumentTypeDescription
idID!The IRI of the wishlist item to delete (e.g. /api/shop/wishlists/69).
clientMutationIdStringOptional client-side mutation identifier for tracking.

Possible Returns

FieldTypeDescription
wishlistWishlist!The deleted wishlist item.
wishlist.idID!IRI identifier of the removed item.
wishlist._idInt!Numeric identifier of the removed item.

Released under the MIT License.