Discount Type | Effects |
---|---|
Amount discount | “APPLY_TO_ORDER”“APPLY_TO_ITEMS”“APPLY_TO_ITEMS_PROPORTIONALLY”“APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY""APPLY_TO_ITEMS_BY_QUANTITY” |
Percentage discount | “APPLY_TO_ORDER”“APPLY_TO_ITEMS” |
Unit discount | “ADD_NEW_ITEMS”“ADD_MISSING_ITEMS”“ADD_MANY_ITEMS” |
Apply to Order
Discount type: percentage, amount Using this effect, the discount is applied to the total order amount.Apply to Items
Discount type: percentage, amount Using this effect, the discount is applied only to particular items defined by validation rules. While creating a discount, you need to add the effect to the discount object and define the list of discounted products using validation rules. You also need to define the maximum units that are allowed to have the discount applied in the validation rule. There are two limits. One defines the maximum units of a particular product that are allowed to be discounted per order line. The other defines the maximum number of units that are allowed to be discounted combined for all order lines matching the constrained item. As a result, the discount is applied to predefined products, and each of them is discounted equally at most up to the maximum limit allowed. The discount applied to each included item is equal to a discount value defined by discount.amount_off or discount.percent_off.We highly recommend creating campaigns and validation rules (steps 1-3) using the dashboard. In comparison to the same workflow done via the API, the Campaign Manager in your dashboard reduces the number of steps you need to follow to create a campaign with rules.
- If items are added to the Products, you can create validation rules using their names/ internal IDs and static collections.
- If items are not added to the Products, you can use dynamic product collections and define filters that qualified items need to match. Read more.
To choose products that qualify for a discount/ gift card, you can select items from your existing products list or build a product collection. Product collections define what criteria items in a customer’s cart need to match to qualify for a discount. Likewise, you can use collections to define criteria for excluded items. Read how to build and use collections.
Apply to Items Proportionally
Discount type: amount Using this effect, the discount is divided and applied only to particular items defined by validation rules. While creating a discount, you need to add effect to the discount object and define the list of discounted products using validation rules. As a result, the discount is applied to chosen products only, and each of them is discounted proportionally to its share in the total amount of discounted items. The total discount amount applied to all items equals the discount value defined by discount.amount_off.We highly recommend creating campaigns and validation rules (steps 1-3) using the dashboard. In comparison to the same workflow done via the API, the Campaign Manager in your dashboard reduces the number of API calls (made to create a campaign with rules).
Apply to Items Proportionally by Quantity
Discount type: amount Likewise, the discount is divided and applied only to particular items defined by validation rules. While creating a discount, you need to add effect to the discount object and define the list of discounted products using validation rules. As a result, the discount is applied to chosen products only, and each of them is discounted proportionally to its share in the total quantity of discounted items. The total discount amount applied to all items equals the discount value defined by discount.amount_off.Apply to Items to each unit of matched product
Discount type: amount Likewise, the discount is divided and applied only to particular items defined by validation rules. While creating a discount, you need to add the effect to the discount object and define the list of discounted products using validation rules. You also need to define the maximum units that are allowed to have the discount applied in the validation rule. As a result, the discount is applied to chosen products only, and each unit of the product is discounted at most up to the maximum limit allowed. The total discount amount applied to all items equals the number of discounted units multiplied by the discount amount. The discount value defined by discount.amount_off is the discount amount that will be applied to each unit.Add Missing Items
Discount type: unit This effect adds items to the cart only if a customer has fewer free items than offered by the code. For example, let’s assume that the code gives one free t-shirt: – If a customer doesn’t have the t-shirt already in the cart, then a free t-shirt will be added to the order. – If a customer already has this item in the cart, then the number of t-shirts already matches the units count. As a result, after applying the code, a discount will be applied to the item which is already in the cart and no extra items will be added. Read more.Add New Items
Discount type: unit Choosing this effect results in adding items to the cart in the number defined by unit value. For example, if the code gives one free t-shirt, then no matter if a customer has the t-shirt already in the cart or not, a free t-shirt will always be added to the order and discounted. Read more.Add Many Items
Discount type: unit The discount gives multiple types of free item(s) to customers. Free item units are always added to the customer’s cart based on either the Add missing items or Add new order items effects. Read more.Go here to learn more about unit discounts and their effects.
Default Effect
Here are the default effects that API adds in the case you won’t define it in your discounts.Discount Type | Default Effect |
---|---|
AMOUNT | - If you define included or excluded products: “APPLY_TO_ITEMS”- If you don’t define included or excluded products: “APPLY_TO_ORDER” |
PERCENT | - If you define included or excluded products: “APPLY_TO_ITEMS”- If you don’t define included or excluded products: “APPLY_TO_ORDER” |
UNIT | ”ADD_MISSING_ITEMS""ADD_NEW_ITEMS” |