curl --request POST \
--url https://{host}/api/v1/wishlists/{wishlistId}/items \
--header 'Content-Type: application/json' \
--header 'X-Shopify-ApiKey: <api-key>' \
--header 'X-Shopify-CustomerId: <api-key>' \
--header 'X-Shopify-Shop: <api-key>' \
--data '
{
"productId": "8060316581941",
"variantId": "44986123976757"
}
'Items
Add a product, or several variants, to one list
POST
/
wishlists
/
{wishlistId}
/
items
curl --request POST \
--url https://{host}/api/v1/wishlists/{wishlistId}/items \
--header 'Content-Type: application/json' \
--header 'X-Shopify-ApiKey: <api-key>' \
--header 'X-Shopify-CustomerId: <api-key>' \
--header 'X-Shopify-Shop: <api-key>' \
--data '
{
"productId": "8060316581941",
"variantId": "44986123976757"
}
'Authorizations
ApiKey & Shop & CustomerIdApiKey & Shop & SessionId
Store API key from Wishlist settings > API Settings.
The store's myshopify domain, e.g. your-store.myshopify.com.
Numeric Shopify customer id of a logged-in shopper. Verified against the store on every call.
Path Parameters
Numeric wishlist id.
Pattern:
^\d+$Body
application/json
Response
Several variants: all were already in the list (added 0)