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
Authorizations
User token to authorize Cart and Checkout requests.
It is required to associate Cart with the User.
Path Parameters
The token is a unique string used to identify the target resource.
Body
application/vnd.api+json
Passing a quantity value is optional for those wishlist systems that do not support quantities. In this scenario, the returned quantity value will always be `1`, allowing the add-to-cart and pricing to reflect the single representation of the wished item accurately.
If the wishlist system you are building allows for setting quantity, add the quantity attribute to the request body with an integer value greater than zero.
The body is of type object
.
Response
200
application/vnd.api+json
200 Success - Returns an array of `wished_item` objects.
The response is of type object
.