Save a product to the wishlist (up to 100)
POST
/ store/ v1/ customers/ me/ wishlist- Idempotency-Key supported
Save a product to the wishlist (up to 100). Saving it again keeps it, with the variant if one is given. A store with wishlists off answers 409 wishlist_off.
Headers
X-Customer-TokenstringrequiredCustomer session token
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
product_idstringrequiredTypeID with the
prodprefix.variant_idstring · or nullThe size or colour chosen, if any.
Returns
204 Saved.
Errors
- 401
unauthenticatedNo valid customer session. - 409The store has wishlists off.
- 422
validation_failedThe wishlist is full.