# NegativeStock in product insert and update

URL: https://shoptet.dev/news/api/negativestock-in-product-insert-and-update

May 6, 2021 · One min read
Pavel Husa

Products (or variants) have attribute `negativeStockAllowed` , which allows to sell a product (variant) even if it is not on stock. If global eshop settings are "not allowed", this attribute can override the global settings. It is possible to allow a product (variant) in case the global setting is "disallow" but not vice versa (if global setting is "negative allowed", you cannot prohibit it for one product/variant).

Item `data.variants[].negativeStockAllowed` can be provided for all [Product insertion](https://api.docs.shoptet.com/shoptet-api/openapi/products/createproduct) , [Product update](https://api.docs.shoptet.com/shoptet-api/openapi/products/updateproduct) and [Product by code update](https://api.docs.shoptet.com/shoptet-api/openapi/products/updateproductbycode) endpoints. Valid values are `true` or `false` .

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