About Custom Discount Triggers Service Plugin

The eCommerce Custom Discount Triggers service plugin (formerly SPI) allows you to provide custom triggers that specify when a discount can apply to a cart and checkout.

Custom triggers play a part in the definition of discount rules - sets of triggers and scopes that together define the necessary conditions for a discount to apply to items in the cart and checkout. For example, a trigger that only fires between 4pm-6pm on Mondays through Thursdays.

The integration is done via an app in the Wix App Market (created in the Wix Developers Center) and the Wix Custom Discount Triggers service plugin.

Learn more about service plugin extensions.

Before you begin

To use a custom trigger to apply a discount, you must first create a discount rule. Create an automatic discount using the dashboard, or by using the Discount Rules API.

Use cases

Configuration

Complete the following steps to adapt Wix system's integration to make your custom triggers available to merchants and their customers.

  1. Go to the Extensions tab in the Wix Developers Center.

  2. Click Create Extension in the top right.

  3. Filter by eCommerce in the left menu, then find Ecom Discounts Trigger and click Create.

  4. Provide the following configuration:

    NameTypeDescription
    deploymentUristringRequired. Base URI where the endpoints are called. Wix appends the endpoint path to the base URI. For example, to call the Get Eligible Triggers endpoint at https://my-discount-app.com/v1/getEligibleTriggers, the base URI you provide here is https://my-discount-app.com/.
    componentNamestringA unique name for this component. This is an internal name that will only appear in the Dev Center.
Was this helpful?
Yes
No