If the item stock is set to 0 or it does not set from the square admin then how to get the stock data from the Inventory api.
Actually stock data only gets returned if it is set to some positive value greater than 0 but if it is not set or is equal to 0 then how can we get that data.
I’m not sure what you mean, here. When I do RetrieveInventoryCount I definitely see stock counts less than 0. Can you clarify what you’re seeing on your end? Do you have example variation ids that are not returning the count?
So looking at the first object: FWYCUVRX5E2ZPP536OBMITZ4, I see that it doesn’t have inventory tracking enabled, and it has never had any stock, so I wouldn’t really expect there to be a response, since it’s never actually “been counted”.