Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

API Call to get Total Product Variants in Database by Lisa Snyder

$
0
0

When making the call to get all product variants, the maximum number of allowed records returned is 250.  I would like to be able to get the total COUNT of product variants and divide by 250, so I know how many pages I will need to loop through in order to find a SKU, get the ID and update the inventory quantity.  I have not found an API call to return total product variant count.  Does one exist?  Or does someone have a work-around?  I don't want to hard-code the number of pages or put in a number of pages too large.

Thank you!

Lisa


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>