# Negative stock in Product detail

URL: https://shoptet.dev/news/api/negative-stock-in-product-detail

January 7, 2021 · One min read
Pavel Husa

We have added a new field to [Product detail](https://api.docs.shoptet.com/shoptet-api/openapi/products/getproductdetail) endpoint: `negativeStockAllowed` ( `data.variants[].negativeStockAllowed` ). In case an eshop does not allow to sell goods not available on stock (negative stock), this option can be overriden for individual products (variants). Possible values are:

- `yes-global` – selling goods not on stock is allowed in the eshop (all products)
- `no-global` – selling goods not on stock is not allowed in the eshop (and there is no exception for this product)
- `yes` – selling goods not on stock is not allowed in the eshop, but there is an exception for this product – it can be sold even if not avaiable on stock
Note: The other way around, i. e. all products can be sold even if not on stock, but individual products can be forbidden, is not possible.

**Tags:**
- [API](/news/tags/api/)
