So i already have a full product object that im just pasting into my store, but when i send the request i get back this error : ‘The following image IDs do not exist or do not belong to the product: 40075820597538,40075820564770,40075820859682’
does anyone know whats the cause? i tried to match the imageId of the variants to the images in the “images” field but still doesnt work
The error message you received indicates that the image IDs you provided in the images field of the product object do not exist or do not belong to the specific product. This might be happening due to a mismatch between the image IDs and the images associated with the product.
To troubleshoot this issue, you can follow these steps:
Double-check the image IDs: Verify that the image IDs you are using in the images field correspond to valid image IDs of the product. Ensure that the image IDs are accurate and belong to the same product you are creating.
Check image associations: Confirm that the images you are referencing in the images field are associated with the product. If the images you are trying to assign are not already associated with the product, you need to create the association by uploading the images or referencing existing images using their image IDs.
Verify image existence: Ensure that the images referenced by the image IDs actually exist in your Shopify store. If any of the referenced image IDs are invalid or have been deleted, you will need to update the product object with valid image IDs.
As i said i “stole” a product from a different store so it already had imageId’s and everything.
so what i needed to do was the remove the imageId from each variant and then after the product is created i put the new created id in place
I’ve made my own mock images but when I delete the stock images provided by printful, then fo to make changes in the description, it says The following image IDs do not exist or do not belong to the product.
Prior to deleting the initial mocks this error does not appear when saving the description. I’ve tried re uploading the template many times the same thing happens.
I’ve changed the names to a similar name as the origional file names from Printful but I am still getting the same error. Even if I down load the origional photos from printful and just upload those images I get the error. If i delete all the photos I get the error…
So I simply cant change the description if I delete those origional photos so im stuck having to use them?
Programmatically you would need to fetch all variants of a product via GET.
Then assign the referenced image id to null via PUT.
Payload looks like this:
{ “variant”: { “id”: 4733234164, “image_id”: null } }