Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

fetch_stock.json returning valid json data but quantities are not updated.

Solved

fetch_stock.json returning valid json data but quantities are not updated.

solexsylvain
Tourist
6 1 0

My customer's site pygmaliart.myshopify.com is calling our fetch_stock.json endpoint every hour and it's returning valid json. There are maybe 2000 products.

Issue is that no product quantity are getting updated on Shopify.

If you edit a product on shopify by changing who manages it and then switch it back to the app, a call to fetch_stock.json requesting the quantity for this particular item occurs and then the quantity is updated.

I reached support through chat but they don't have access to information that could help like logs.

If any of you has any idea why it does that, let me know.

 

 

Accepted Solution (1)

solexsylvain
Tourist
6 1 0

This is an accepted solution.

Found the issue. 

The agency in charge of the Shopify website for our customer imported the products via a csv file. Normal process.

I compared the data of a manual created product linked with a fulfillment service and a product that has been imported linked with a fulfillment service. Both shows the same information for the inventory in Shopify UI but only the ones created manually updated their quantities based on fetch_stock.

Using the API, I retrieve the data for both products and the inventory_management field was set to shopify for one and the other one was set to our fulfillment service.

In the csv import, "Variant Inventory Tracker" column data should be the name of your fulfillment service as it is for the "Variant Fulfillment Service" column. Documentation found here https://help.shopify.com/en/manual/products/import-export/using-csv#get-a-sample-csv-file is a bit misleading and should be corrected to avoid confusion.

Hope this reply help others.

 

 

View solution in original post

Reply 1 (1)

solexsylvain
Tourist
6 1 0

This is an accepted solution.

Found the issue. 

The agency in charge of the Shopify website for our customer imported the products via a csv file. Normal process.

I compared the data of a manual created product linked with a fulfillment service and a product that has been imported linked with a fulfillment service. Both shows the same information for the inventory in Shopify UI but only the ones created manually updated their quantities based on fetch_stock.

Using the API, I retrieve the data for both products and the inventory_management field was set to shopify for one and the other one was set to our fulfillment service.

In the csv import, "Variant Inventory Tracker" column data should be the name of your fulfillment service as it is for the "Variant Fulfillment Service" column. Documentation found here https://help.shopify.com/en/manual/products/import-export/using-csv#get-a-sample-csv-file is a bit misleading and should be corrected to avoid confusion.

Hope this reply help others.