> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: About Discounts

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/discounts/introduction.md

## Article Content:

# About Discounts

Discounts enable businesses to create promotional strategies through custom discount triggers and configurable discount rules. The discount system allows businesses to define specific conditions under which discounts apply to carts and checkouts, extending beyond standard percentage or fixed-amount discounts with custom trigger logic.

This section covers:

- **[Custom Discount Triggers Service Plugin](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/custom-discount-triggers-integration-service-plugin/introduction.md)**: Create custom triggers that define when discounts can apply based on time periods, product categories, or custom business logic.
- **[Discount Rules API](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/discount-rules/introduction.md)**: Manage discount rules that combine triggers and scopes to define the complete conditions for discount application.

## Discount system architecture

The discount system operates through two complementary components:

+ **Discount triggers**: Define the conditions that must be met for a discount to become available. Triggers can be based on time windows (like happy hour pricing), customer attributes, purchase history, external data, or custom business logic.

+ **Discount rules**: Combine triggers with scopes to create complete discount definitions. Rules specify not only when discounts apply (triggers) but also what items they apply to (scopes) and how they should be calculated.

When trigger conditions are met, discounts are automatically applied to qualifying items in carts and checkouts, providing immediate pricing updates to customers during the [purchase flow](https://dev.wix.com/docs/rest/business-solutions/e-commerce/purchase-flow/introduction.md).

## Custom discount capabilities

The discount extension system supports sophisticated promotional scenarios:

+ **Time-based discounts**: Create triggers that activate during specific time periods, such as happy hour discounts that only apply between specific hours on certain days of the week.

+ **Product-specific promotions**: Implement discounts that apply to specific product categories, such as sales on digital products or particular product types.

+ **Custom trigger logic**: Define business-specific conditions that determine when discounts become available based on your app's custom logic and requirements.

## See also

- [About Extensions](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/introduction.md)
- [About Purchase Flow](https://dev.wix.com/docs/rest/business-solutions/e-commerce/purchase-flow/introduction.md) 
- [Extend the eCommerce Platform with Service Plugins](https://dev.wix.com/docs/rest/business-solutions/e-commerce/guides/extend-the-e-commerce-platform-with-service-plugins.md)