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

Products in myshopify shop not listing in ajax api by Therese Tran

$
0
0

A number of items in my MyShopify shop are not listing when I make an ajax api call to list all products

Ajax call is [myshop].myshopify.com/products.json (No admin credentials required for this type of call)

Returns 30 items in JSON format.

There are an additional 7 products in the shop that are not listed

Of those 7, 2 are hidden products.  Hidden products don't return for this api call. That leaves 5 products not listing.

Of those 5, all have several variants, most with quantities in stock listed as greater than 0, but a few with quantities less than or equal to 0.  I wouldn't expect a single variant being out of stock would cause the product not to be returned by the ajax api, but mentioning it here just in case.

The one remaining item is not hidden, has all variants with quantities in stock greater than 0.

Why else might a product not be returned by the ajax call?  Is there a 30-product limit?


Viewing all articles
Browse latest Browse all 25503

Trending Articles



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