[System] You are a VTEX documentation expert. You provide accurate, detailed information about VTEX platform, APIs, apps, and Store Framework development.

[User] Provide a guide on guides faststore molecules order summary in VTEX.

[Assistant]
Documentation

[Feedback](https://read.calvincode.net/reader?url=https://docs.google.com/forms/d/e/1FAIpQLSfmnotPvPjw-SjiE7lt2Nt3RQgNUe10ixXZmuO2v9enOJReoQ/viewform?entry.1972292648=developers.vtex.com%26entry.1799503232=)

[GuidesLearn how to use our APIs and extend the VTEX platform.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides)

[API ReferenceExplore detailed information about our endpoints.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/api-reference)

[App DevelopmentLearn how to build cloud-based apps and integrations.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/app-development)

[Storefront DevelopmentExpress your brand identity creating unique storefronts.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/storefront-development)

[VTEX IO AppsFind pre-built solutions to grow your business.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/vtex-io-apps)

[TroubleshootingFind practical solutions to common development issues.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/troubleshooting)

[Release NotesStay up to date with our latest releases and bug fixes.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/updates/release-notes)

Storefront Development

[Getting started with storefront solutions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/getting-started-with-storefront-solutions)

---

[FastStore](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore)

[FastStore versions and support levels](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/getting-started-faststore-versions-and-support-levels)

[Getting Started](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/getting-started-overview)

[FastStore WebOps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/webops-dashboard)

[Headless CMS](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/headless-cms-overview)

[Developer tools and references](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/developer-tools-overview)

[Styling](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/styling-overview)

[UI components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/components-index)

[Atoms](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/atoms-overview)

[Molecules](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-overview)

[Accordion](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-accordion)

[Alert](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-alert)

[Breadcrumb](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-breadcrumb)

[BuyButton](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-buy-button)

[Card](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-card)

[Carousel](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-carousel)

[CartItem](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-cart-item)

[CheckboxField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-checkbox-field)

[DiscountBadge](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-discount-badge)

[Dropdown](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-dropdown)

[Gift](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-gift)

[IconButton](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-icon-button)

[InputField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-input-field)

[LinkButton](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-link-button)

[Modal](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-modal)

[NavbarLinks](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-navbar-links)

[OrderSummary](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary)

[Popover](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-popover)

[ProductCard](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-product-card)

[ProductPrice](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-product-price)

[ProductTitle](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-product-title)

[QuantitySelector](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-quantity-selector)

[RadioField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-radio-field)

[RadioGroup](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-radio-group)

[Rating](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-rating)

[RatingField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-rating-field)

[RegionBar](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-region-bar)

[SearchAutocomplete](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-search-auto-complete)

[SearchDropdown](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-search-dropdown)

[SearchHistory](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-search-history)

[SearchInputField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-search-input-field)

[SearchProducts](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-search-products)

[SearchTop](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-search-top)

[SelectField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-select-field)

[SKUSelector](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-sku-selector)

[Table](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-table)

[Tag](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-tag)

[TextareaField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-textarea-field)

[Toast](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-toast)

[Toggle](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-toggle)

[ToggleField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-toggle-field)

[Tooltip](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-tooltip)

[Organisms](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/organisms-overview)

[Implementing storefront features](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/storefront-features-overview)

[FastStore API](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/faststore-api-overview)

[FastStore SDK](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/sdk-overview)

[Developing and overriding UI components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/developing-and-overriding-components-overview)

[Extending the FastStore API](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/api-extensions-overview)

[Managing URLs with redirects and rewrite paths](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/routing-managing-urls-with-redirects-and-rewrite-paths)

[Managing performance](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/managing-performance-overview)

[SEO](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/seo-overview)

[Going live](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/go-live-overview)

[Troubleshooting](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/troubleshooting-overview)

---

[Store Framework](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/store-framework)

---

(Legacy) CMS Portal

---

[Storefront best practices](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/storefront-best-practices)

---

[Guides](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides)

[API Reference](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/api-reference)

[App Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/app-development)

[Storefront Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/storefront-development)

[VTEX IO Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/vtex-io-apps)

[Troubleshooting](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/troubleshooting)

---

[Release Notes](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/updates/release-notes)

Storefront Development

[Getting started with storefront solutions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/getting-started-with-storefront-solutions)

---

[FastStore](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore)

[FastStore versions and support levels](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/getting-started-faststore-versions-and-support-levels)

[Getting Started](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/getting-started-overview)

[FastStore WebOps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/webops-dashboard)

[Headless CMS](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/headless-cms-overview)

[Developer tools and references](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/developer-tools-overview)

[Styling](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/styling-overview)

[UI components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/components-index)

[Atoms](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/atoms-overview)

[Molecules](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-overview)

[Accordion](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-accordion)

[Alert](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-alert)

[Breadcrumb](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-breadcrumb)

[BuyButton](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-buy-button)

[Card](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-card)

[Carousel](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-carousel)

[CartItem](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-cart-item)

[CheckboxField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-checkbox-field)

[DiscountBadge](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-discount-badge)

[Dropdown](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-dropdown)

[Gift](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-gift)

[IconButton](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-icon-button)

[InputField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-input-field)

[LinkButton](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-link-button)

[Modal](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-modal)

[NavbarLinks](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-navbar-links)

[OrderSummary](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary)

[Popover](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-popover)

[ProductCard](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-product-card)

[ProductPrice](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-product-price)

[ProductTitle](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-product-title)

[QuantitySelector](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-quantity-selector)

[RadioField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-radio-field)

[RadioGroup](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-radio-group)

[Rating](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-rating)

[RatingField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-rating-field)

[RegionBar](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-region-bar)

[SearchAutocomplete](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-search-auto-complete)

[SearchDropdown](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-search-dropdown)

[SearchHistory](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-search-history)

[SearchInputField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-search-input-field)

[SearchProducts](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-search-products)

[SearchTop](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-search-top)

[SelectField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-select-field)

[SKUSelector](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-sku-selector)

[Table](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-table)

[Tag](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-tag)

[TextareaField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-textarea-field)

[Toast](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-toast)

[Toggle](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-toggle)

[ToggleField](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-toggle-field)

[Tooltip](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-tooltip)

[Organisms](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/organisms-overview)

[Implementing storefront features](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/storefront-features-overview)

[FastStore API](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/faststore-api-overview)

[FastStore SDK](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/sdk-overview)

[Developing and overriding UI components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/developing-and-overriding-components-overview)

[Extending the FastStore API](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/api-extensions-overview)

[Managing URLs with redirects and rewrite paths](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/routing-managing-urls-with-redirects-and-rewrite-paths)

[Managing performance](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/managing-performance-overview)

[SEO](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/seo-overview)

[Going live](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/go-live-overview)

[Troubleshooting](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/troubleshooting-overview)

---

[Store Framework](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/store-framework)

---

(Legacy) CMS Portal

---

[Storefront best practices](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/storefront-best-practices)

---

[Storefront development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/storefront-development)

[FastStore](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore)

[UI components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/components-index)

[Molecules](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-overview)

OrderSummary

Provides a summary of the items in the cart, including the total price, related shipping tax, and discounts.

[ Source code](https://read.calvincode.net/reader?url=https://github.com/vtex/faststore/tree/main/packages/components/src/molecules/OrderSummary)

The `OrderSummary` provides a summary of the items in the cart, including the total price, related shipping tax, and discounts.

Example

Code

* Subtotal (3 products)$1,200
* Discount\-$100
* Total$1,100

## Usage

### Import the component

`1

import { OrderSummary } from '@faststore/ui'

`

### Import styles

To apply styles, include the following in your stylesheet:

`1

@import '@faststore/ui/src/components/molecules/OrderSummary/styles.scss';

`

For details, see [Importing FastStore UI component styles](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/using-themes-importing-ui-components-styles).

---

## Design tokens

| Local token                                | Default value/Global token linked |
| ------------------------------------------ | --------------------------------- |
| \--fs-order-summary-padding                | var(--fs-spacing-3)               |
| \--fs-order-summary-margin-bottom          | var(--fs-spacing-2)               |
| \--fs-order-summary-row-gap                | 0                                 |
| \--fs-order-summary-discount-text-color    | var(--fs-color-success-text)      |
| \--fs-order-summary-total-text-size        | var(--fs-text-size-3)             |
| \--fs-order-summary-total-text-font-weight | var(--fs-text-weight-bold)        |
| \--fs-order-summary-taxes-label-color      | var(--fs-color-info-text)         |
| \--fs-order-summary-taxes-text-size        | var(--fs-text-size-tiny)          |
| \--fs-order-summary-taxes-text-weight      | var(--fs-text-weight-regular)     |

---

## Data attributes

You can target and override `OrderSummary` styles using the following data attributes:

`data-fs-order-summary`

`data-fs-order-summary-subtotal`

`data-fs-order-summary-subtotal-label`

`data-fs-order-summary-subtotal-value`

`data-fs-order-summary-discount`

`data-fs-order-summary-discount-label`

`data-fs-order-summary-discount-value`

`data-fs-order-summary-total`

`data-fs-order-summary-total-label`

`data-fs-order-summary-total-value`

`data-fs-order-summary-taxes-label`

---

## Props

| Name                  | Type          | Description                                                                                | Default          |
| --------------------- | ------------- | ------------------------------------------------------------------------------------------- | ---------------- |
| **testId**            | string        | ID to find this component in testing tools (e.g., cypress, testing-library, and jest).      | fs-order-summary |
| **subtotalLabel**     | string        | Label for the subtotal value of the order. It will only show if subtotalValue is provided.  |                  |
| **subtotalValue**     | string        | Subtotal value of the order. If provided, a subtotal label and value will be shown.         |                  |
| **discountLabel**     | string        | Label for the discount value for the order. It will only show if discountValue is provided. | Discount         |
| **discountValue**     | string        | Discount value for the order. If provided, a discount label and value will be shown.        |                  |
| **totalLabel**        | string        | Label for the total value of the order.                                                     | Total            |
| **totalValue**        | string        | Total value of the order.                                                                   |                  |
| **includeTaxes**      | false \| true | Specifies whether the displayed price should include taxes.                                 | false            |
| **includeTaxesLabel** | string        | Label to determine if the price includes taxes.                                             | Tax included     |

Contributors

4

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F60782333%3Fv%3D4%26w=64%26q=75)](https://github.com/carolinamenezes)

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F67270558%3Fv%3D4%26w=64%26q=75)](https://github.com/mariana-caetano)

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F51174217%3Fv%3D4%26w=64%26q=75)](https://github.com/ArthurTriis1)

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F62757720%3Fv%3D4%26w=64%26q=75)](https://github.com/aliceoq)

Was this helpful?

Yes

No

[Suggest Edits (GitHub)](https://read.calvincode.net/reader?url=https://github.com/vtexdocs/dev-portal-content/edit/main/docs/faststore/components/molecules/order-summary.mdx)

[NavbarLinks« Previous](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-navbar-links)[PopoverNext »](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-popover)

Contributors

4

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F60782333%3Fv%3D4%26w=64%26q=75)](https://github.com/carolinamenezes)

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F67270558%3Fv%3D4%26w=64%26q=75)](https://github.com/mariana-caetano)

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F51174217%3Fv%3D4%26w=64%26q=75)](https://github.com/ArthurTriis1)

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F62757720%3Fv%3D4%26w=64%26q=75)](https://github.com/aliceoq)

ON THIS PAGE

[Usage](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary%23usage)

[Import the component](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary%23import-the-component)[Import styles](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary%23import-styles)

[Design tokens](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary%23design-tokens)

[Data attributes](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary%23data-attributes)

[Props](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary%23props)

Was this helpful?

 Send feedback

[Suggest edits (GitHub)](https://read.calvincode.net/reader?url=https://github.com/vtexdocs/dev-portal-content/edit/main/docs/faststore/components/molecules/order-summary.mdx)

Copy page

On this page

ON THIS PAGE

[Usage](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary%23usage)

[Import the component](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary%23import-the-component)[Import styles](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary%23import-styles)

[Design tokens](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary%23design-tokens)

[Data attributes](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary%23data-attributes)

[Props](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/molecules-order-summary/docs/guides/faststore/molecules-order-summary%23props)

On this page

[Github](https://read.calvincode.net/reader?url=https://github.com/vtex-apps)[Help Center](https://read.calvincode.net/reader?url=https://help.vtex.com/)[Community](https://read.calvincode.net/reader?url=https://community.vtex.com/?%5Fga=2.198523433.743584735.1647618303-1974737580.1645714642)[Feedback](https://read.calvincode.net/reader?url=https://docs.google.com/forms/d/e/1FAIpQLSfmnotPvPjw-SjiE7lt2Nt3RQgNUe10ixXZmuO2v9enOJReoQ/viewform?entry.1972292648=developers.vtex.com%26entry.1799503232=)


[System] You are a VTEX documentation expert. You provide accurate, detailed information about VTEX platform, APIs, apps, and Store Framework development.

[User] Provide a guide on guides using policy engine api on promotion alerts in VTEX.

[Assistant]
Documentation

[Feedback](https://read.calvincode.net/reader?url=https://docs.google.com/forms/d/e/1FAIpQLSfmnotPvPjw-SjiE7lt2Nt3RQgNUe10ixXZmuO2v9enOJReoQ/viewform?entry.1972292648=developers.vtex.com%26entry.1799503232=)

[GuidesLearn how to use our APIs and extend the VTEX platform.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides)

[API ReferenceExplore detailed information about our endpoints.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/api-reference)

[App DevelopmentLearn how to build cloud-based apps and integrations.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/app-development)

[Storefront DevelopmentExpress your brand identity creating unique storefronts.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/storefront-development)

[VTEX IO AppsFind pre-built solutions to grow your business.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/vtex-io-apps)

[TroubleshootingFind practical solutions to common development issues.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/troubleshooting)

[Release NotesStay up to date with our latest releases and bug fixes.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/updates/release-notes)

Guides

[VTEX Platform Overview](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/vtex-platform-overview)

---

[API usage](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/api-usage)

---

[Getting started](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/getting-started)

---

Integration Guides

---

[Catalog](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/catalog-integration)

---

[Checkout](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/checkout-api-overview)

---

[Master Data](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/master-data)

---

Payments

---

Orders

---

Logistics

---

B2B Suite

---

VTEX Sales App

---

UI Customization

---

Message Center

---

Pricing

---

Promotions

[Creating and managing coupons with Promotions API](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/creating-and-managing-coupons-with-promotions-api)

[Using Policy Engine API on Promotion Alerts](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts)

[Seller Opt-in Promotions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/seller-opt-in-promotions)

---

Infrastructure

---

Search

---

Storefront Permissions

---

[VTEX Activity Flow](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/activity-flow)

---

[VTEX Ads](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/vtex-ads)

---

VTEX Session

---

VTEX Shield

---

[Data Protection Plus](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/data-protection-plus)

---

Weni by VTEX

---

[Guides](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides)

[API Reference](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/api-reference)

[App Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/app-development)

[Storefront Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/storefront-development)

[VTEX IO Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/vtex-io-apps)

[Troubleshooting](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/troubleshooting)

---

[Release Notes](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/updates/release-notes)

Guides

[VTEX Platform Overview](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/vtex-platform-overview)

---

[API usage](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/api-usage)

---

[Getting started](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/getting-started)

---

Integration Guides

---

[Catalog](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/catalog-integration)

---

[Checkout](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/checkout-api-overview)

---

[Master Data](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/master-data)

---

Payments

---

Orders

---

Logistics

---

B2B Suite

---

VTEX Sales App

---

UI Customization

---

Message Center

---

Pricing

---

Promotions

[Creating and managing coupons with Promotions API](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/creating-and-managing-coupons-with-promotions-api)

[Using Policy Engine API on Promotion Alerts](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts)

[Seller Opt-in Promotions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/seller-opt-in-promotions)

---

Infrastructure

---

Search

---

Storefront Permissions

---

[VTEX Activity Flow](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/activity-flow)

---

[VTEX Ads](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/vtex-ads)

---

VTEX Session

---

VTEX Shield

---

[Data Protection Plus](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/data-protection-plus)

---

Weni by VTEX

---

[Guides](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides)

Promotions

[Using Policy Engine API on Promotion Alerts](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts)

Using Policy Engine API on Promotion Alerts

The Promotion Alerts is a feature that sets alarms to trigger actions when certain products are sold with undesired prices and promotions. It will allow you to set conditions that check if the prices and the promotions are correct. If not, the system will also generate an alert with information about the product sold at unexpected prices.

This guide will describe all the steps to [create](#creating-a-promotion-alert), [update](#updating-a-promotion-alert), and [delete](#deleting-a-promotion-alert) a Promotion Alert.

## Creating a Promotion Alert

To create a new promotion alert, you should use the [Create Policy](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/api-reference/policies-system-api%23post-/api/policy-engine/policies/-id-) endpoint. Let us take a scenario: you want to be alert on Slack if products from the brand _Easy Cosmetics_ are sold with a discount greater than 40%. To do so, you should create conditions to check unusual prices or promotions.

### Setting up the `actions`

First, you should define the alert action. This array will define what action it should take when encountering products with the wrong discount or promotion. The alert can have multiple steps. See the code below as an example.

`1

"actions": [

2

 {

3

 "id": "SendSlackMessage",

4

 "metadata": {

5

 "channel": "C01NJFF35R6",

6

 "relatedUsers": [

7

 "URUNDC2NB"

8

 ]

9

 }

10

 }

11

 ]

`

#### The `id` parameter

Each object inside it contains an `id` that establishes what the warning will be. Check the table below for its possible values.

| id possible values   | Definition                                      |
| -------------------- | ----------------------------------------------- |
| SendSlackMessage     | It sends a Slack message to a specific channel. |
| SendEmail            | It sends an email.                              |
| DeactivatePromotions | It deactivates the promotions.                  |

In the example case, you should define `id` as `SendSlackMessage`.

#### Other parameters

After setting the `id`, you will determine the `metadata` object that contains the details of the action. Inside it, you should define the `channel` where the alert will notify, and the `alertDescription` displayed when the alert is valid. You can also inform specific users by including their Slack IDs on the `relatedUsers` field.

#### Other options examples

For sending emails

`1

"actions": [

2

 {

3

 "id": "SendEmail",

4

 "metadata": {

5

 "emailList": [

6

 "email@email.com"

7

 ]

8

 }

9

 }

10

 ]

`

![{"base64":"  ","img":{"width":1078,"height":1328,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":158621,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/using-policy-engine-api-on-promotion-alerts-0.png"}}](https://read.calvincode.net/reader?url=https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/using-policy-engine-api-on-promotion-alerts-0.png)

For deactivating the promotions

`1

"actions": [

2

 {

3

 "id": "DeactivatePromotions",

4

 }

5

 ]

`

After configuring the `actions`, you should fill the `condition` object with specific information to include the promotion alert context.

### Creating the `conditions`

Every alert will be described by an object that has a `condition` parameter. This will teach the VTEX platform how to know if the action should be executed or not. Conditions usually check a parameter described by the `key` parameter against the`values` by means of the `operation`.

The `condition` object contains a `conditions` array, a `key` string, a `values` array of strings, and an `operation` string. The `condition` parameter allows recursiveness up to a limit of ten object levels inside it.

To create the alert in the example, you should create one condition to define the brand and another to restrict the discount. First, you create the condition for the brand _Easy Cosmetics_. To do so, fill your request body as the example below. You can use the [Get Brand List](https://read.calvincode.net/reader?url=https://developers.vtex.com/vtex-rest-api/reference/catalog-api-get-brand-list) to get the Brand ID of the brand.

`1

{

2

 "conditions": [],

3

 "operation": "stringEquals",

4

 "key": "brandId",

5

 "values": [

6

 "2000001"

7

 ]

8

}

`

After this, you will create the condition to restrict the discount for the brand. Fill your request body as the example below. In this case, `values` contains the percentage discount.

`1

{

2

 "conditions": [],

3

 "operation": "numericGreaterThan",

4

 "key": "discountPercentage",

5

 "values": [

6

 "40.00"

7

 ]

8

}

`

In the table below, you can see other possible values to `key`. It can affect SKUs, brands, and discounts.

#### The `key` parameter

| key possible values | Definition                        |
| ------------------- | --------------------------------- |
| skuId               | SKU ID                            |
| brandId             | Brand ID                          |
| discountPercentage  | Number of the percentage discount |

Now you should establish a relation between the two created conditions. In this case, both conditions should be valid to the alert active, so you should set the `operation` direct from the `condition` object to `and`. Check the example below.

`1

"condition": {

2

 "conditions": [

3

 {

4

 "conditions": [],

5

 "operation": "stringEquals",

6

 "key": "brandId",

7

 "values": [

8

 "2000001"

9

 ]

10

 },

11

 {

12

 "conditions": [],

13

 "operation": "numericGreaterThan",

14

 "key": "discountPercentage",

15

 "values": [

16

 "40.00"

17

 ]

18

 }

19

 ],

20

 "operation": "and"

21

 }

`

In the table below, you can see other possible values to `operation`. There are numerous ways to relate the conditions you create to the alarm.

#### The `operation` parameter

| operation possible values | Definition                                                                                |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| stringEquals              | It will check the first string inside values, being case sensitive, with the corresponding attribute within the context, when evaluating this policy.                                            |
| stringEqualsIgnoreCase    | It will check the first string inside values, not being case sensitive, with the corresponding attribute within the context, when evaluating this policy.                                        |
| numericEquals             | It will consist of the exact number inside values.                                                                                |
| numericLessThan           | It will check if the first number is smaller than the one inside values with the corresponding attribute within the context when evaluating this policy. This is a string type.                  |
| numericLessThanEquals     | It will check if the first number is smaller than or equals the one inside values with the corresponding attribute within the context when evaluating this policy. This is a string type.        |
| numericGreaterThan        | It will check if the first number is greater than the one inside values with the corresponding attribute within the context when evaluating this policy. This is a string type.                  |
| numericGreaterThanEquals  | It will check if the first number is greater than or equals to the one inside value with the corresponding attribute within the context when evaluating this policy. This is a string type.      |
| bool                      | It will determine if the condition is true or false, considering what is inside values.                                                                                |
| not                       | It will negate a list of conditions inside the conditions array.                                                                                |
| or                        | For the alert to be valid, at least one of the conditions should be satisfied.                                                                                |
| and                       | For the alert to be valid, all of the conditions should be satisfied.                                                                                |
| dateTimeUtcGreaterThan    | The date should be greater than the one inside values.                                                                                |
| dateTimeUtcLessThan       | The date should be smaller than the one inside values.                                                                                |
| between                   | It will check if the corresponding attribute within the context when evaluating this policy is between the other values inside values. The values array must have exactly two strings inside it. |

> The values `and`, `or`, and `not` are the most common ones to use when the `operation` parameter refers to a `conditions` array. Check the request body below as an example of the scenario.

`1

{

2

 "name": "alert-test",

3

 "description": "Alert Test",

4

 "statements": [

5

 {

6

 "actions": [

7

 {

8

 "id": "SendSlackMessage",

9

 "metadata": {

10

 "channel": "C01NJFF35R6",

11

 "relatedUsers": [

12

 "URUNDC2NB"

13

 ],

14

 "alertDescription": "Avoid selling products from Easy Cosmetics with a discount greater than 40%."

15

 }

16

 }

17

 ],

18

 "resource": "vrn:vtex.promotions-alert:aws-us-east-1:kamila:master:/_v/promotions_alert",

19

 "condition": {

20

 "conditions": [

21

 {

22

 "conditions": [],

23

 "operation": "stringEquals",

24

 "key": "brandId",

25

 "values": [

26

 "2000001"

27

 ]

28

 },

29

 {

30

 "conditions": [],

31

 "operation": "numericGreaterThan",

32

 "key": "discountPercentage",

33

 "values": [

34

 "40.00"

35

 ]

36

 }

37

 ],

38

 "operation": "and"

39

 }

40

 }

41

 ]

42

 }

43

 }

`

> To fill the `resource` of your account, just use the following code `vrn:vtex.promotions-alert:aws-us-east-1:{accountName}:master:/_v/promotions_alert`, replacing `{accountName}` with the name of your account. If your request is successful, it will return `200 OK`.

## Updating a Promotion Alert

To update an existing promotion alert, you should use the [Update Policy](https://read.calvincode.net/reader?url=https://developers.vtex.com/vtex-rest-api/reference/put%5Fapi-policy-engine-policies-id) endpoint. Follow the steps below to update a promotion alert.

1. Enter the Policy ID in the path.
2. Change the desired information on the request body.
3. Send the request.
4. If the response to the request is `200 OK`, the promotion alert was updated.

## Deleting a Promotion Alert

To delete an existing promotion alert, you should use the [Delete Policy](https://read.calvincode.net/reader?url=https://developers.vtex.com/vtex-rest-api/reference/policy%5Fdelete) endpoint. Follow the steps below to delete a promotion alert.

1. Enter the Policy ID in the path.
2. If the response to the request is `200 OK`, the promotion alert was deleted.

Contributors

1

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F60782333%3Fv%3D4%26w=64%26q=75)](https://github.com/carolinamenezes)

Was this helpful?

Yes

No

[Suggest Edits (GitHub)](https://read.calvincode.net/reader?url=https://github.com/vtexdocs/dev-portal-content/edit/main/docs/guides/Promotions/using-policy-engine-api-on-promotion-alerts.md)

[Creating and managing coupons with Promotions API« Previous](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts//docs/guides/creating-and-managing-coupons-with-promotions-api)[Seller Opt-in PromotionsNext »](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts//docs/guides/seller-opt-in-promotions)

Contributors

1

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F60782333%3Fv%3D4%26w=64%26q=75)](https://github.com/carolinamenezes)

ON THIS PAGE

[Creating a Promotion Alert](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts%23creating-a-promotion-alert)

[Setting up the actions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts%23setting-up-the-actions)[Creating the conditions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts%23creating-the-conditions)

[Updating a Promotion Alert](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts%23updating-a-promotion-alert)

[Deleting a Promotion Alert](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts%23deleting-a-promotion-alert)

Was this helpful?

 Send feedback

[Suggest edits (GitHub)](https://read.calvincode.net/reader?url=https://github.com/vtexdocs/dev-portal-content/edit/main/docs/guides/Promotions/using-policy-engine-api-on-promotion-alerts.md)

Copy page

On this page

ON THIS PAGE

[Creating a Promotion Alert](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts%23creating-a-promotion-alert)

[Setting up the actions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts%23setting-up-the-actions)[Creating the conditions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts%23creating-the-conditions)

[Updating a Promotion Alert](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts%23updating-a-promotion-alert)

[Deleting a Promotion Alert](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/using-policy-engine-api-on-promotion-alerts/docs/guides/using-policy-engine-api-on-promotion-alerts%23deleting-a-promotion-alert)

On this page

[Github](https://read.calvincode.net/reader?url=https://github.com/vtex-apps)[Help Center](https://read.calvincode.net/reader?url=https://help.vtex.com/)[Community](https://read.calvincode.net/reader?url=https://community.vtex.com/?%5Fga=2.198523433.743584735.1647618303-1974737580.1645714642)[Feedback](https://read.calvincode.net/reader?url=https://docs.google.com/forms/d/e/1FAIpQLSfmnotPvPjw-SjiE7lt2Nt3RQgNUe10ixXZmuO2v9enOJReoQ/viewform?entry.1972292648=developers.vtex.com%26entry.1799503232=)


[System] You are a VTEX documentation expert. You provide accurate, detailed information about VTEX platform, APIs, apps, and Store Framework development.

[User] Provide a guide on guides faststore troubleshooting tracing the error source in VTEX.

[Assistant]
Documentation

[Feedback](https://read.calvincode.net/reader?url=https://docs.google.com/forms/d/e/1FAIpQLSfmnotPvPjw-SjiE7lt2Nt3RQgNUe10ixXZmuO2v9enOJReoQ/viewform?entry.1972292648=developers.vtex.com%26entry.1799503232=)

[GuidesLearn how to use our APIs and extend the VTEX platform.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides)

[API ReferenceExplore detailed information about our endpoints.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/api-reference)

[App DevelopmentLearn how to build cloud-based apps and integrations.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/app-development)

[Storefront DevelopmentExpress your brand identity creating unique storefronts.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/storefront-development)

[VTEX IO AppsFind pre-built solutions to grow your business.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/vtex-io-apps)

[TroubleshootingFind practical solutions to common development issues.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/troubleshooting)

[Release NotesStay up to date with our latest releases and bug fixes.](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/updates/release-notes)

Storefront Development

[Getting started with storefront solutions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/getting-started-with-storefront-solutions)

---

[FastStore](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore)

[FastStore versions and support levels](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/getting-started-faststore-versions-and-support-levels)

[Getting Started](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/getting-started-overview)

[FastStore WebOps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/webops-dashboard)

[Headless CMS](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/headless-cms-overview)

[Developer tools and references](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/developer-tools-overview)

[Styling](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/styling-overview)

[UI components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/components-index)

[Implementing storefront features](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/storefront-features-overview)

[FastStore API](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/faststore-api-overview)

[FastStore SDK](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/sdk-overview)

[Developing and overriding UI components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/developing-and-overriding-components-overview)

[Extending the FastStore API](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/api-extensions-overview)

[Managing URLs with redirects and rewrite paths](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/routing-managing-urls-with-redirects-and-rewrite-paths)

[Managing performance](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/managing-performance-overview)

[SEO](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/seo-overview)

[Going live](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/go-live-overview)

[Troubleshooting](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-overview)

[Debugging Partytown and analytics issues](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-analytics-and-partytown)

[Identifying development errors and Starter bugs](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-identifying-development-errors-and-starter-bugs)

[Tracing the error source](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-tracing-the-error-source)

---

[Store Framework](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/store-framework)

---

(Legacy) CMS Portal

---

[Storefront best practices](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/storefront-best-practices)

---

[Guides](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides)

[API Reference](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/api-reference)

[App Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/app-development)

[Storefront Development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/storefront-development)

[VTEX IO Apps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/vtex-io-apps)

[Troubleshooting](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/troubleshooting)

---

[Release Notes](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/updates/release-notes)

Storefront Development

[Getting started with storefront solutions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/getting-started-with-storefront-solutions)

---

[FastStore](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore)

[FastStore versions and support levels](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/getting-started-faststore-versions-and-support-levels)

[Getting Started](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/getting-started-overview)

[FastStore WebOps](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/webops-dashboard)

[Headless CMS](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/headless-cms-overview)

[Developer tools and references](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/developer-tools-overview)

[Styling](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/styling-overview)

[UI components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/components-index)

[Implementing storefront features](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/storefront-features-overview)

[FastStore API](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/faststore-api-overview)

[FastStore SDK](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/sdk-overview)

[Developing and overriding UI components](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/developing-and-overriding-components-overview)

[Extending the FastStore API](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/api-extensions-overview)

[Managing URLs with redirects and rewrite paths](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/routing-managing-urls-with-redirects-and-rewrite-paths)

[Managing performance](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/managing-performance-overview)

[SEO](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/seo-overview)

[Going live](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/go-live-overview)

[Troubleshooting](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-overview)

[Debugging Partytown and analytics issues](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-analytics-and-partytown)

[Identifying development errors and Starter bugs](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-identifying-development-errors-and-starter-bugs)

[Tracing the error source](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-tracing-the-error-source)

---

[Store Framework](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/store-framework)

---

(Legacy) CMS Portal

---

[Storefront best practices](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/storefront-best-practices)

---

[Storefront development](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/storefront-development)

[FastStore](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore)

[Troubleshooting](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-overview)

Tracing the error source

If the issue you are facing is new and didn't exist in the past, use the **Binary Search** debugging process presented in the following to find where in time and which changes to the code caused this new bug.

Notice that the FastStore development workflow is **Git-based**, meaning developers must create a commit on the store's `main` branch for each new release. This action generates a release timeline which you can use to go back to previous versions of your store and test if the issue was already happening in the past.

If your feature was working correctly in the past, you will certainly find which version of your store introduced this error. You'll also be able to tell exactly which files and code changes caused the issue.

---

## Instructions

To speed up the process of going back in time, checking version by version of your store, you can use a strategy called **Binary Search**, which is available via the **bisect** Git feature. Below, we present a step by step on how to use `git bisect` with FastStore.

1. Open the terminal on your project's root and run the following command to list all commits made in your repository:
`1
git log
`
2. Copy the hash of a commit that worked properly in the past.
3. Use binary search to find the commit that introduced the bug:
   * _Replace `{commitHash}` with the hash value you copied in the previous step._
`1
git bisect start HEAD {commitHash}
`
4. Start a local development server to test this previous version of your store:
`1
yarn && yarn develop
`
5. Access the localhost using the browser and test your features. If everything works as expected, bisect your project as in the following:
`1
git bisect good
`
Otherwise, if that version is broken, run the following command:
`1
git bisect bad
`

After a few iterations, Git will find the bad version for you. Then, after identifying this version, use `git diff` to detect the changes that caused the issue.

## Related resources

* [git-bisect](https://read.calvincode.net/reader?url=https://git-scm.com/docs/git-bisect)
* [git-diff](https://read.calvincode.net/reader?url=https://git-scm.com/docs/git-diff)

Contributors

3

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F60782333%3Fv%3D4%26w=64%26q=75)](https://github.com/carolinamenezes)

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F67270558%3Fv%3D4%26w=64%26q=75)](https://github.com/mariana-caetano)

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F62757720%3Fv%3D4%26w=64%26q=75)](https://github.com/aliceoq)

Was this helpful?

Yes

No

[Suggest Edits (GitHub)](https://read.calvincode.net/reader?url=https://github.com/vtexdocs/dev-portal-content/edit/main/docs/faststore/docs/troubleshooting/tracing-the-error-source.mdx)

[Identifying development errors and Starter bugs« Previous](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-identifying-development-errors-and-starter-bugs)[Store FrameworkNext »](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/store-framework)

Contributors

3

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F60782333%3Fv%3D4%26w=64%26q=75)](https://github.com/carolinamenezes)

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F67270558%3Fv%3D4%26w=64%26q=75)](https://github.com/mariana-caetano)

[![Photo of the contributor](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/_next/image?url=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F62757720%3Fv%3D4%26w=64%26q=75)](https://github.com/aliceoq)

ON THIS PAGE

[Instructions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-tracing-the-error-source%23instructions)

[Related resources](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-tracing-the-error-source%23related-resources)

Was this helpful?

 Send feedback

[Suggest edits (GitHub)](https://read.calvincode.net/reader?url=https://github.com/vtexdocs/dev-portal-content/edit/main/docs/faststore/docs/troubleshooting/tracing-the-error-source.mdx)

Copy page

On this page

ON THIS PAGE

[Instructions](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-tracing-the-error-source%23instructions)

[Related resources](https://read.calvincode.net/reader?url=https://developers.vtex.com/docs/guides/faststore/troubleshooting-tracing-the-error-source/docs/guides/faststore/troubleshooting-tracing-the-error-source%23related-resources)

On this page

[Github](https://read.calvincode.net/reader?url=https://github.com/vtex-apps)[Help Center](https://read.calvincode.net/reader?url=https://help.vtex.com/)[Community](https://read.calvincode.net/reader?url=https://community.vtex.com/?%5Fga=2.198523433.743584735.1647618303-1974737580.1645714642)[Feedback](https://read.calvincode.net/reader?url=https://docs.google.com/forms/d/e/1FAIpQLSfmnotPvPjw-SjiE7lt2Nt3RQgNUe10ixXZmuO2v9enOJReoQ/viewform?entry.1972292648=developers.vtex.com%26entry.1799503232=)