'variants' field not returned in productByCollection API

Highlighted
New Member
1 0 0

 

When fetching courses by collection (with collection id as the param), we do not receive 'variants' in the response for each product. The below screenshot is of a sample response from the 'all products' API. As you can see, we get the variants field in it. We require the same field to be present in productByCollection api as well. How do we achieve/debug this? 

Note: we're using 2020-07 api version

 

shopify-ss.jpg

0 Likes