Voucherify enables you to apply multiple discounts to the same order. In this article, we will cover stacking multiple discounts (promo codes and auto-applied promotions).
Before we continue, read this short glossary with the key definitions you need to grasp to easily keep up with the rest of this guide.
Discount can be assigned to the promo code (standalone or unique coupons, referral codes) or to auto-applied promotion tiers. In both cases, you can choose between many discount types and values (amount, percentage, unit, free shipping, fixed order price).
The discount effect defines how the discount is applied to the customer's order. You can choose between applying the discount to the whole cart or to specific items (selected in validation rules). There are many product-specific discount effects available for different discount types.
Order-level discounts describe discounts that are applied to the whole cart, not to specific items.
Unlike order-level discounts, product-specific discounts are applied to specific items only. You can define discounted (included) items by using validation rules.
Redemption is a single usage of a promo code or a cart-level promotion. In terms of loyalty campaigns, redemption is triggered to exchange points for rewards.
Rollback is an action that results in undoing the particular redemption.
When you pass order details to Voucherify, it will automatically generate a unique order id assigned to this order. For example, order id: ord_0dldgQpoCmO5h8J6nqEykhuy. Both internal order id and source id can be a reference to the order when stacking the discounts in redemption requests.
Order source id
When passing order details to Voucherify, you can use source id to assign a unique order identifier from your system (external id) to the order. Both internal order id and source id can be a reference to the order when stacking the discounts in redemption requests.
How to stack discounts?
Voucherify lets you apply many discounts to the same order. It comes down to the following steps:
- Redeem the first discount and pass order details in the redemption request. In response, Voucherify returns a unique order id with an applied discount.
- To apply the second and further discounts, you need to redeem each discount using a separate redemption request and the same order id.
When it comes to stacked discounts, you can only roll back the last discount applied to the order. To roll back any former discount, firstly roll back all the discounts applied after the discount you want to revert.
You can roll back the latest redemption in the detailed order view in the dashboard or by using a dedicated API endpoint.