Wishlists / Wished Items
Add Item to Wishlist
The Add Item to Wishlist endpoint adds a variant to an existing wishlist by creating a new wished_item
. A wished item in a wishlist is comparable to a line item in a cart.
Each wished item references a single variant, holds the desired quantity and returns price information determined by the variant price in current currency, and desired quantity.
POST
/
api
/
v2
/
storefront
/
wishlists
/
{token}
/
add_item
Authorizations
Authorization
string
headerrequiredUser token to authorize Cart and Checkout requests.
It is required to associate Cart with the User.
Path Parameters
token
string
requiredThe token is a unique string used to identify the target resource.
Body
application/vnd.api+json
variant_id
string
requiredThe variant ID that is to be added to the wishlist.
quantity
number
Set a quantity greater than 0, or omit the quantity param if your wishlist does not support quantities.
Response
200 - application/vnd.api+json
data
object
requiredincluded
object[]
Was this page helpful?