Inconsistent Product data between Rest, JS API and JSON

Highlighted
Shopify Partner
39 0 8

The inventory_quantity field for a ProductVariant served by the Rest API is sometimes wrong. This causes numerous out of stock items to still appear as available in the REST API. eg. Product with id 2048670629919's inventory_quantity gives 2 from a REST call while it's 0 everywhere else and the item is indeed out of stock.

 

Please can someone from Shopify take a look?

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 124

Hey @Recomatic ,

 

Would you be able to provide the myshopify.com URL of this store that has the issue with inventory_quantity for certain products via the REST API? You could DM it to me if you would prefer.

 

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Shopify Partner
39 0 8

Hello Hassain,

 

Thanks for your answer, I've just DMed you the myshopify domain of the store.

 

Best.

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 124

Hi @Recomatic ,

 

Thank you for DMing me the MyShopify URL of your store.

 

From my database record checks, for the Product Variant with ID 2048670629919 there are currently 79 quantities of this item in your "LANNERAY" location and 4 quantities of this item in your "LOSSERAND" location. Because of that, the Shopify REST Admin API (and our DB records) demonstrate that there is currently an "inventory_quantity" of 83 for product variant (79+4=83)

 

From my records and from going through the inventory history of this variant, it all appears to be working correctly. The available quantities for this product variant do appear to be 79 and 4 respectively at both locations, thereby creating a total quantity of 83. However please let me know if I am missing anything

  

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes