Automatic discount created

The Automatic discount created trigger starts a workflow when an automatic discount is created by you or by a third-party app in your store.

Data provided by the Automatic discount created trigger

The following data is provided to workflows that start with the Automatic discount created trigger.

Data that is provided to workflows with the Automatic discount created trigger.
DataDescription
automatic discountThe automatic discount that was created. Allows accessing data on the GraphQL Admin API DiscountAutomaticNode object

Actions

This trigger provides an automatic discount, which lets you use any action that requires a discount or discount information.

Because automatic discounts relate to orders and customers, the trigger can also be used with actions that require orders and customers, such as:

Automatic discounts also contain lists of data such as discount configurations and applications. You can loop through these lists and perform actions on each item by using a For each action.

Testing the trigger

To test an active workflow that starts with this trigger, you can:

API details

The Automatic discount created trigger allows actions to be taken with the DiscountAutomaticNode GraphQL API object. This trigger corresponds to the discounts/create webhook with filtering for automatic discounts.

For other discount-related workflows, you might also consider: