Next Commerce
Campaigns App

Campaigns Offers & Discounts

Create custom discounting codes and logic for Campaigns API

Campaigns App Packages represent the items for sale on your external custom checkout flow.

A Package can be understood as simply a:

Product + Quantity + Price + (optionally a Subscription schedule and recurring price point)

Campaigns App Offers & Discounts opens up the possibility of selling at multiple price points on your checkout, without the need for creating individual Packages for each variation.

Campaigns App Offers & Discounts are separate from the store-level Offers and Coupons found in the broader Offers menu. Use this guide for Campaigns App Packages, Campaigns API checkout flows, and Campaign Cart SDK behavior.

Packages, Offers, and Coupon Codes

In Campaign Cart SDK 0.4.x checkout flows, the Campaigns App Offer is the source of truth for which Packages or items qualify for a discount. A coupon code does not need to be hand-wired to a specific bundle card in the checkout template. The coupon code activates one or more Campaigns App Offers, and each Offer's conditions and incentive define which cart items receive the discount.

For example, if an exit intent popup or promo code field applies a code for an extra discount, configure the Offer to target the eligible Package quantity, Product Range, or shipping incentive. The checkout should then apply the coupon code and let Campaigns API cart calculation return the discounted package prices, shipping price, and order summary totals.

Use checkout template state, such as whether a coupon code is currently applied, only for presentation: success messages, badges, or conditional copy. Do not use it to decide which bundle price should be shown. Bundle picker pricing should follow the calculated Offer result.

Set up Offers

From the Campaigns App main list view, click on your campaign name, or choose "View".

Next, select Packages - then from Offers & Discounts select Add Offer and configure the following values.

General Details

  • Name - The name of the discount
  • Type - Choose between
    • Offer - Always apply the discount when the order meets the conditions
    • Code - Only apply the discount when the code is used - when selected you must enter the Discount Code.

Condition Type

Set the conditions required for your discount logic to apply to the order

  • Any Criteria
  • Package quantity greater than or equal to - a value
  • All Packages - Select to automatically add all current and future Packages to this condition

Incentive

Define the discount to be applied when the offer conditions are met

  • Discount Type
    • Apply a percentage off the packages that meet the criteria
    • Apply a percentage off the shipping price
    • Apply a percentage off the entire order
  • Discount Amount (Percentage)
  • Discount Price Rounding - set a custom rouding rule to force discounted prices to round to a desired value

On this page