Problem with list inventory API

Hello,

I’m trying to connect my app with the API. More specifically to get all inventory quantities from database and update them in Webflow app. I’m having a problem because I got 404 response when calling the route “GET /sites/:site_id/collections/:collection_id/items/:item_id/inventory”. I enabled Inventory tracking option for products in dashboard but it still don’t show the quantity. I tried calling separate IDs (site_id, collection_id and item_id) in other APIs and all works because they are all valid. But on this one I got 404 error “Route not found”. Also when getting all products with SKUs I’m not getting quantity either. Can you help me with this problem?


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Can you paste the cURL statement or a screenshot from Postman/Insomnia?

Hello,
Here is the cURL:
https://api.webflow.com/sites/62e783e7d9ed633ef80b8ecc/collections/62e783e7d9ed631bcd0b8efb/items/62e783e7d9ed636f0d0b8f2c/inventory
And here image of Postman

And i tried as I said checking the site, colleciton and item ids with other APIs and all is working.

Yea that’s strange. I’m not familiar with the inventory api and this…

I enabled Inventory tracking option for products in dashboard but it still don’t show the quantity.

…say’s something may be wrong with your account. Have you reached out to Webflow support? That may be your best bet in this specific case.

Hello,

Yes I did. Sent the message from Webflow app and directly with email but I got the same answer.

Hey @fArch, there isn’t a route https://api.webflow.com/sites/:id/collections/:id/items/:id/inventory

Webflow is trying to help you, indicating that it’s a RouteNotFound error, and not something like resource/record not found ;))

If you check the docs: Webflow CMS API Reference

You’ll see that the right way to do it is to fire out like this:

GET https://api.webflow.com/collections/:collection_id/items/:item_id/inventory