# Validity range for product flags

URL: https://shoptet.dev/news/api/validity-range-for-product-flags

April 14, 2020 · One min read
Pavel Husa

For [Product Detail](https://api.docs.shoptet.com/shoptet-api/openapi/products/getproductdetail) endpoint when called with an optional section `?include=flags` there is now a validity range `data.flags[].dateFrom` and `data.flags[].dateTo` available. The dates reflect the settings from the product setup. The respective flag is displayed only within the given date range. Any of the fields can be null meaning there is no lower or upper boundary.

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