Show current stock/inventory number to website

Hi everyone

As the title suggests, I am looking for a way to display current stock/inventory number of a product that has been set in Snipcart built-in inventory management system (similar to how to display number of item inside cart).

I checked the document but I didn’t not see anything about it.

Any help is appreciated :smiley:

Hi @MorningTide,

You can retrieve this by sending a GET request to our product API.

However, since this API needs your secret API key, the client should send a request to one of your endpoints, which returns the value it gets from our API.

Let me know if that helps,

Cheers!

Thank you so much for thr swift reply!

That’s very helpful. Thank you!

I wish if there is an easier way to add this by using the span element like total number of items for the cart.

1 Like