Products REST API returning empty variant_ids[]

Quinn_Fahey
New Member
30 0 0

 

Previously we used the product api to query all products in our store, we would get variant_ids returned for the variants that shared that image file.

 

Recently I'm noticing that the variant_ids array is always empty when I know for a fact that cannot be the case

 

 

Quinn_Fahey_0-1612964418978.png

 

 

nothing on our end has changed, yet magically this information is not present on the response.

 

Has something changed that i'm not aware of? How else are we able to retrieve our product/product variant images?

 

This screams "BUG" to me, so please help me resolve this issue as it has become urgent for me and my organization. 

0 Likes
Greg_Kujawa
Shopify Partner
947 79 202

Your screen shot is too small, so can't see anything really. Can you please post a larger version of this Postman session?

0 Likes
Greg_Kujawa
Shopify Partner
947 79 202

What does this specific product look like when you bring it up in the Shopify web admin? Perhaps the images aren't assigned at the variant level, just the "parent" product level. Here are screen shots of the Shopify web admin and the API call for a product that has its images assigned at the variant level. Looks okay implemented this way.

 

Untitled1.pngUntitled2.png

0 Likes
Quinn_Fahey
New Member
30 0 0

Here is a link to show how products look in shopify: https://monosnap.com/file/zVkbkQoiYMGsIKEfbgfMWuSu7DlVfQ


Even when using the default title variant (default variant for a product that does not have any additional variants added to it) the id is empty.

https://monosnap.com/file/mGP0a164LnwcIcQGQV0YgQiaNYIyau
https://monosnap.com/file/uBBFkr3kEeHP7z9MoBnVcg74suT9un


It seems regardless of how these products are configured I cannot get the necessary information from the API to properly link images to products and product variants. 

0 Likes
Greg_Kujawa
Shopify Partner
947 79 202

If you've visually verified that these variants have images assigned to them, which appears to be the case, I'd suggest providing the Shopify request ID for one of these API responses, which appears in the header. That way a Shopify staff person can see what's going on in their side. Strange!

0 Likes
Quinn_Fahey
New Member
30 0 0

Is that something I should include in this thread or is there a way to provide that info to them directly?

0 Likes
Greg_Kujawa
Shopify Partner
947 79 202

Just paste it into this thread and someone from Shopify should see it. If they reviews logs on their end I think they can see what's going on perhaps. 

0 Likes
Quinn_Fahey
New Member
30 0 0

X-Request-ID: b4133143-45c6-48f2-bb32-bf6a4c166ff7

0 Likes
Greg_Kujawa
Shopify Partner
947 79 202

@_JB Are you available to check this out?

0 Likes