Skip to main content
Discounts reduce one-time or recurring prices. Build the commercial rule first, then choose whether checkout applies it silently or lets the buyer see a code.

Define the offer

Create it from Products → Discounts. Ruba promotions list in light mode Ruba promotions list in dark mode Ruba promotion creation form in light mode Ruba promotion creation form in dark mode

Choose the checkout path

Guaranteed campaign price

Preset the discount while creating a checkout page. Every buyer arriving through that page receives it without entering a code. This is also how a code-less discount is used outside the API.

Visible code prefill

Append discount_code to a checkout page URL. Ruba fills the form field, but the buyer still sees the value on checkout.

Server-selected price

Supply the discount while creating a Checkout Session. This keeps the decision in application logic; see Checkout Sessions.