Skip to Content
StarsellDocs
Discounts

Discounts

Codes buyers type and discounts that apply by themselves - the four kinds, how a cart gets them, what the list shows, and where discounts show on orders and in the API.

What a discount is

Discounts in the store's sidebar holds every discount of the store. You need the products or the settings permission to open it.

A discount is one of four kinds:

KindWhat it takes off
Amount off productsA percentage, or a fixed amount off each item, on all products or on some collections or products.
Amount off orderA percentage or a fixed amount off the whole order.
Buy X get YBuy some items (a number of them, or for an amount), get others free or for less. See Buy X get Y.
Free shippingThe shipping charge, on any rate or on rates up to an amount. See Free shipping.

Each one works in one of two ways:

  • Discount code: buyers type the code in the cart or at checkout, or arrive with it in a link. Capitals don't matter: WELCOME10 and welcome10 are the same code. Two discounts of a store can't use the same code.
  • Automatic discount: it applies by itself to every cart that qualifies, and buyers see it under its title.

To make one, see Create a discount.

How a cart gets its discounts

The cart and checkout ask the store which discounts apply every time the cart, the code, the email, the country or the shipping rate changes, and checkout charges exactly that.

  1. Which discounts can apply. Automatic discounts that are on now, and the typed code. A discount must be on, inside its dates, under its usage limit, for this market and for this buyer (see eligibility in Create a discount).
  2. Requirements. A minimum purchase amount or a minimum number of items reads the cart before any discount. For Amount off products it counts only the products the discount applies to; for the other kinds, the whole cart.
  3. Order of work. Product discounts (amount off products, buy X get Y) come off first, then order discounts on what is left, then free shipping.
  4. Combining. Two discounts go together only when both allow the other's kind. When they can't, the store picks the set that saves the buyer the most. See Combining discounts.

VAT is worked out on the discounted amount: on what the items cost after discounts, plus shipping when shipping is taxed. Free-over shipping thresholds read the items after discounts too.

Fixed amounts in other markets

Fixed amounts, minimum purchase amounts and the free shipping cap are saved in the store currency. In another market they convert at the market's rate, like shipping prices do (no price adjustment or rounding). See Markets.

What buyers see

  • The code field sits at the top of the summary, in the cart and at checkout. A code that applies shows as a tag with a remove button. A code that doesn't apply stays in the cart with the reason under it, because it may apply later (once the email is in, or the cart grows).
  • Discount lines come under the subtotal: "Discount (WELCOME10)" for codes, the title for automatic discounts, each with what it takes off.
  • Free shipping shows on the shipping line as Free, with "Free shipping (code or title)" under it.
  • You save under the total adds up everything off, shipping included.
  • The order confirmation page lists the discounts too.
Reason under the codeWhen
isn't a valid discount codeNo discount has this code, or it's turned off.
isn't active yet / has expiredBefore its start or after its end.
has reached its limitIt was used as many times as the total limit allows.
You've already usedOne use per customer, and this email used it.
Enter your email at checkout to useIt depends on who buys, and there's no email yet.
isn't available for this emailIt's for some customers or tags, and this email isn't one of them.
doesn't work inIt's for other markets.
Add more to use / needs or more itemsThe cart is under its minimum.
doesn't apply to the items in your cartNone of its products or collections are in the cart.
can't be combined withAn automatic discount that saves more is applied, and the two don't combine.

Buyers see these in the store's language, and you can reword them in the storefront texts (Cart group).

The list

ColumnWhat it shows
DiscountThe code (or the title for automatic discounts), with what it gives under it.
StatusActive, Scheduled (its start is ahead), Expired (its end has passed) or Off (turned off, whatever the dates).
MethodCode or Automatic.
TypeOne of the four kinds.
UsedOrders that used it, and "of N" with a total limit.
Active datesFrom its start, to its end when it has one.
  • All, Active, Scheduled and Expired tabs filter by status. Turned-off discounts are under All.
  • Search finds titles and codes. Filter narrows by type and by method.
  • Select rows to Turn on, Turn off or Delete them. Export downloads the rows shown (or the selected ones) as CSV.

Deleting a discount stops it at checkout. Orders that used it keep their own copy of it, so their totals and discount lines don't change.

On orders

An order keeps every discount it got, as it was when placed:

  • Order details shows one line per discount under Paid: "Discount (CODE)" or the automatic discount's title, with what it took off. Free shipping shows what it waived.
  • Each item keeps its share of the discounts, for the whole line, so a refund of one item can give back what the buyer really paid for it.
  • The order's subtotal is the items before discounts; its shipping is what the buyer paid for shipping (0 with free shipping).
  • The timeline has a "Discounts" line when it was placed.

Each use is counted when the order is placed. If a code reaches its limit or ends while someone is at checkout, the order is refused with "A discount on your order is no longer available", and the buyer sees the new total before placing it again.

In the API

The store API lists discounts (GET /discounts) and gets one by id or code (GET /discounts/{discountId}). Orders carry discount_minor and discounts, and each item its discount_minor, in the API and in webhooks.

On this page