Add product with multiples images

Highlighted
New Member
1 0 0

Hello Shopify community, 

 

I am frustrated because I couldn't get API add a new product with multiples Images for this product.

 

I get the problem around on many different tries :

 

  • Add product with multiples images => not working
  • Add product with no images then update product with images => not working
  • Add product with one variant, then upload images to the variant => not working

 

I am using NodeJs Shopify API ( MONEI ) https://github.com/MONEI/Shopify-api-node

 

Welcome for any help . Thank you a lot

0 Likes
Shopify Staff
Shopify Staff
204 23 22

 

Hi @LBS_Shop 

 

The library you mentioned is not created by Shopify, and therefore we would not be able to support any errors you are receiving. I would suggest attempting to create the product with multiple images through our API to troubleshoot the issue. You can upload multiple images through the product API similar to something like: 

 

PUT /admin/products/#{id}.json 

 { 
 "product": {
 "images": [
    {
     "src": "#{image_url}"
    },
    {
     "src":"#{image_url}"
    }
   ]
  }
 }

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


0 Likes