With dynamic discounts, you can influence prices for the whole cart or specific items based on conditions such as order value, currency, or metadata. In this tutorial, you will create one coupon that gives free shipping (100% off) and a 5% discount on items.
Prerequisites
Before you start, make sure that:- You have access to a Voucherify account.
- Your store sends products and shipping as separate cart items to Voucherify.
- Voucherify can recognize your products, either from the Products catalog or from product IDs sent in the API request.
Prepare your items
Before creating the campaign, make sure Voucherify can recognize both products and shipping.Make sure shipping is a separate line item
Make sure shipping is sent as a separate cart item that Voucherify can recognize (for example, an item named Shipping or a dedicated shipping item ID).
Assign products to a collection
Make sure your products belong to a product collection so they can be discounted (for example, All Products).
Launch the campaign
Create a discount coupon campaign that will include both discounts.Configure general details
- Choose Generic code.
- Set a custom code name (for example,
COMBO5). - Set the redemption limit to Unlimited.
Configure free shipping and item discount
In this section, you will create two price rules inside one voucher using New price.Set free shipping
- Click Select products in the first rule.
- Select your Shipping item.
- In the New price field, enter
0.
Set a 5% item discount
- Click Select collections in the second rule.
- Select All Products (or another collection you want to discount).
- Set a fallback value that is safe for your business.
Build the dynamic discount formula
Open the formula builder and create this formula:
- Select Order item → Price
- Add the Multiply (*) operator
- Add Number and enter
0.95
Notify customers
Inform customers about the promotion using your preferred channels.Choose a communication method
You can notify customers using:
- Voucherify distribution tools
- Web banners
- Checkout or cart pop-ups
- Email or push notifications
Alternatives
This setup can also be used in other campaign types:-
Cart promotion
The discount is applied automatically when conditions are met. No codes are generated. -
Unique codes campaign
Codes are generated in bulk and assigned to customers using the Distribution or Publish API.

