Different data returned by authenticated API and AJAX API

Shopify Partner
65 0 7

Hello,

I'm seeing something odd I haven't enountered before and wondering if anyone else has enountered it.

A product returned by the store API is showing an inventory quantity of 0. When I fetch the same product data using the client side AJAX API I see an inventory quantity of 1.

I thought perhaps the AJAX API response was cached by the browser. I fetched it again with curl and saw the same response. The server side response indicates the item was last updated over 10 days ago, so I expect the changes should be visible on the front end by now.

Has anyone else seen this before? Does anyone from Shopify know if the AJAX API has been updated recently?

One of my apps makes heavy use of the AJAX API so it would be good to know if there is a change in behaviour or a known bug.

Many thanks,
Matt

 

 

 

 

 

Developer of Back in Stock, the easiest way to increase sales on out of stock products. https://apps.shopify.com/back-in-stock
0 Likes