Inventory API set levels not working

New Member
2 0 0

Hi !

 

I have an external software that connects to one managed store and it syncs available inventory for each item on Shopify every 30 mins.

 

It was working fine, but since a week ago it just stopped working for some items. 

 

I'm sending:  

 

POST /admin/api/2019-07/inventory_levels/set.json

 

{
"location_id": 16736092248,
"inventory_item_id": 30832533897304,
"available": 0
}

 

Response:

 

{"inventory_item_id":30832533897304,"location_id":16736092248,"available":0,"updated_at":"2019-08-09T18:30:07-05:00","admin_graphql_api_id":"gid://shopify/InventoryLevel/16363356248?inventory_item_id=30832533897304"}

 

The response seems to be successful but if i check that item on the admin ui, there's no change:

ssShopifyadmin.jpg

Can you please help me ?

 

Thanks !

0 Likes
Shopify Staff
Shopify Staff
918 55 124

Hey @jmo_dev , 

 

It looks like the inventory level has been correctly set to 0 when I look at this shop, so as far as I can tell all is well at the moment. Am I missing anything, or has the problem been sorted out? If you're still having issues, please let me know! 

1 Like
New Member
2 0 0

Hi Josh ! Thanks for your answer, yes it's working for that particular item, but it's still happening on random items. There are more than 2000+ sku so is a bit difficult to keep track. 

 

Deleting and creating again a product fix the issue, but i think the api should return some kind of error so we can log it and fix it.

 

Can you provide me some kind of log for the inventory updates from the shopify side?

0 Likes
Shopify Staff
Shopify Staff
918 55 124

Hey again @jmo_dev , 

 

Typically in the event of a problem we would return some sort of error. Do you have an example of a product that encountered inventory issues more recently? I could certainly take a look at our logs to see if anything stands out. 

0 Likes