FleetbaseFleetbase

Promotions

Create discounts that apply at checkout — percentage off, amount off, free delivery, or buy X get Y — with targeting, schedules, limits and stacking.

Promotions

A promotion is a discount that Storefront applies to a customer's cart at checkout. Promotions belong to the store you are managing in the console (a network can also own promotions through the API, which then apply to the whole marketplace).

Manage them in Storefront → Promotions → Promotions. The list shows each promotion's type, trigger, status, when it runs, how many times it has been redeemed and the discount it has given.

Promotions list — name, type, trigger, status, run dates, redemptions and discount given

Creating a promotion

Navigate to Storefront → Promotions and open the Promotions tab.

Click New promotion.

Enter a Name — customers see it next to the discount — and an optional Description.

Choose the Type and its value (see below), and the Trigger: Automatic applies to every eligible cart, Promo code only applies when the customer enters a code.

Optionally set a Schedule, Conditions, Targeting, Limits and Stacking options.

Set the Status to Active when you are ready for it to apply, and click Save.

New promotion form — basics, type and trigger, status, schedule, and collapsible conditions, targeting, limits and stacking

Promotion types

TypeHow the discount is calculated
Percentage offThe percentage is taken off the targeted items.
Amount offA fixed amount is taken off the targeted items, never more than they cost. Only applies to carts in the promotion's currency.
Free deliveryThe delivery fee is waived. Does not apply to pickup orders.
Buy X get YFor every group of buy + get targeted items, the cheapest get items are discounted by the chosen percentage (100% makes them free). For example, buy 2 get 1 free on three items makes the cheapest one free; on six items, the two cheapest.

Status and schedule

StatusApplies at checkout?
DraftNo — still being set up
ActiveYes, while inside its schedule
PausedNo — can be activated again
EndedNo

Use the row menu to Activate, Pause or End a promotion without opening the form.

Starts at and Ends at limit when an active promotion applies; leave them empty to run until paused. Through the API a promotion can also have weekly time windows in its own timezone — for example weekdays 11:00–14:00 for a lunch deal (windows may cross midnight).

Editing an active promotion — 20% off beverages with its start and end dates

Conditions

ConditionEffect
Minimum spendThe targeted items must add up to at least this amount.
Minimum itemsThe cart must contain at least this many targeted items.
First order onlyOnly customers who have never placed a storefront order (canceled orders don't count) can use it.

Customer-specific conditions are checked once the customer is known — they show in cart previews for signed-in customers and are always enforced at checkout.

Targeting

By default a promotion applies to the whole cart. Use Targeting to limit it to specific Products and/or Categories, and to exclude products. The API additionally supports targeting stores and excluding categories.

In a network (marketplace) cart, a store's promotion only ever applies to that store's items, while a network promotion can apply across all stores.

Limits

LimitEffect
Total usesThe promotion stops applying after this many uses.
Uses per customerHow many times one customer can use it.
Total budgetThe total discount the promotion may give. Near the end of the budget the last discount is reduced to what is left.
Maximum discount per orderCaps the discount on a single order.

Leave a limit empty for no limit. Each use is reserved when the customer starts checkout, so two customers checking out at the same moment can't overspend a limit or budget (see How discounts are charged).

Stacking

When several promotions apply to the same cart:

  • Promotions marked Can combine with other promotions (stackable) are applied together in Priority order (higher first). Each one is calculated on what the previous ones left, so two 10% promotions give 19%, not 20%.
  • A promotion that is not stackable applies alone.
  • Storefront compares the best non-stackable promotion with the combination of stackable ones and applies whichever saves the customer more.

If a customer enters a code whose promotion loses out to a better combination, the code stays on the cart and is reported as not_combinable; the customer still gets the bigger discount.

Showing promotions in the app

With Show in the app's deals on, an active promotion is returned by GET /storefront/v1/promotions while it is running, so your app can show a deals screen. In a network, the network's promotions and its member stores' are listed. Promo codes are never exposed.

How discounts are charged

  1. When the customer starts checkout, Storefront prices the cart's promotions — automatic ones plus any promo codes — and subtracts the discount from the amount charged. Cash, Stripe and QPay checkouts all use this same amount. Percentage tips are calculated on the subtotal before the discount.
  2. Each use is reserved for that checkout, re-checking limits and budgets, so concurrent checkouts can't overspend. If a promotion ran out in the meantime, the checkout is refused and the customer can review their cart.
  3. When the order is created, the reservation becomes a redemption. The order's meta.discount holds the total discount and meta.promotions the promotions applied; the transaction gets a discount line (stored as a positive amount with meta.direction: credit). In a multi-store network checkout, each store's order carries its share of the discount.
  4. Abandoned checkouts release their reservation after 60 minutes.

The Redemptions and Discount given columns count completed orders only.

Announcing a promotion

Choose Announce to customers in a promotion's row menu to tell customers about it. Pick an audience segment (or all customers), adjust the notification title and message, and optionally a send time. Storefront creates a campaign that:

  • goes out when the promotion starts (or right away if it already has),
  • opens the promotion in the app when tapped, and
  • is canceled automatically if the promotion is paused or ended before it is sent.

API

EndpointPurpose
GET /storefront/v1/promotionsLive, public promotions of the store or network (?store= to filter a network by member store)
GET /storefront/v1/promotions/{id}One live, public promotion
GET /storefront/v1/carts/{id}/promotionsPreview the discounts a cart qualifies for

See the Storefront API reference for request and response details.

Promotions | Fleetbase