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.
On this page
Data provided by the Automatic discount created trigger
The following data is provided to workflows that start with the Automatic discount created trigger.
| Data | Description |
|---|---|
automatic discount | The 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:
- Create an automatic discount in the Shopify admin.
- Use a third-party app to create an automatic discount using the Admin API.
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.
Related triggers
For other discount-related workflows, you might also consider:
- Discount code created - starts when a discount code is created.
- Order created - starts when an order is placed (useful for discount application workflows).