Promotions
Overview
Section titled “Overview”Promotions manages your promo codes: codes such as WELCOME10 that give a discount on an
order. You enter the code in the Promo code field of the order wizard
(or send it as promo_code through the API), and the server applies the discount when it prices the
order.
You find it in the sidebar under E-commerce › Promotions (/t/<workspace>/promotions). Everyone
with products:read can see the codes; Owners and Admins (products:write) can create, edit and
delete them.
Discounts are always attached to a code: there are no automatic promotions that apply without a code, and one order can use at most one code. Codes apply to one-off orders; subscription renewal orders are billed at the subscription price without codes.
How it works
Section titled “How it works”Discount types
Section titled “Discount types”- Percentage: a percentage of the eligible subtotal, from 0.01% to 100%, rounded half up to the minor unit.
- Fixed amount: an amount off the eligible subtotal, in one currency. If the eligible subtotal is smaller, the discount is capped at it, so an order total never goes below its tax and shipping.
The eligible subtotal is the sum of the net line subtotals (quantity × unit price, before tax) of the lines the code applies to. The discount is spread over those lines in proportion to their subtotals, and each line’s tax is then computed on its discounted amount. Shipping is never discounted. See Orders for the full calculation.
Duration on subscriptions
Section titled “Duration on subscriptions”When a code is used on a checkout that sells a subscription plan, the On subscriptions setting decides what the renewals pay:
| Option | Meaning |
|---|---|
| First payment only (default) | “The discount applies to the first payment; renewals are charged at full price.” |
| For a number of periods | “The discount applies to the first payment and the following renewals, up to the chosen number of periods.” (Number of periods, 1–120) |
| Forever | “The discount applies to every renewal for the life of the subscription.” |
The remaining discount is stored on the subscription itself (its page shows the code and “… renewals left” or “on every renewal”), so later edits of the code do not change running subscriptions. With a free trial, the code discounts the renewals even though the first payment is zero. On ordinary orders the duration is irrelevant: the code discounts that order only.
Buyers can also receive the code in a link: a checkout URL with ?promo=CODE applies it on load
(the parameter name is configurable per checkout). See
Checkouts — Promo codes.
Conditions checked
Section titled “Conditions checked”When an order is priced, the code is checked in this order. The first failing check produces the error shown under the Promo code field:
- Exists: the code is looked up case-insensitively (codes are stored upper-case).
- Active: the code’s switch is on.
- Valid from / Valid until: the order date (not today) must be on or after the start and before the end. Back-dated orders created through the API are checked against their own date.
- Total uses: the number of finalized orders using the code is below the limit.
- Uses per contact: the number of finalized orders of this contact using the code is below the limit.
- Currency (fixed amount only): the order must be in the code’s currency.
- Eligible products: when products are selected, only lines of those products are eligible (custom lines never are); at least one line must be eligible.
- Minimum subtotal: the eligible subtotal must reach the minimum. It is compared in minor units of the order currency.
Redemptions
Section titled “Redemptions”A use (redemption) is counted only when the order is finalized, and every condition is checked again at that moment: a draft never reserves a use. Cancelling an order releases its use, so the code can be used again. The Used column shows the number of current redemptions.
Statuses in the list
Section titled “Statuses in the list”The Status column is computed from the code’s settings:
| Status | Meaning |
|---|---|
| Active | Usable now |
| Scheduled | Valid from is in the future |
| Expired | Valid until has passed |
| Used up | Total uses reached |
| Inactive | The active switch is off |
Editing and deleting
Section titled “Editing and deleting”The code itself and the discount type cannot change after creation (“Code and type cannot change.”). Everything else can, and changes apply to orders priced afterwards; finalized orders keep their discount. Deleting a code removes it from the list and makes it unusable; finalized orders keep their discount and the code text. After deletion the same code can be created again.
Step by step
Section titled “Step by step”Create a promo code
Section titled “Create a promo code”- Go to E-commerce › Promotions and click New promo code.
- Fill in the New promo code dialog:
- Code (required): 3–40 letters, digits,
_or-. “Case-insensitive; letters, digits, _ and -.” - Description (optional, internal).
- Discount type: Percentage or Fixed amount.
- Currency: “Currency of the fixed amount and of the minimum order.” It starts with your default currency.
- Percent off (percentage codes, default 10) or Amount off (fixed codes).
- Minimum subtotal (optional).
- On subscriptions: First payment only, For a number of periods (with Number of periods) or Forever. Only relevant for plans sold on checkouts.
- Total uses and Uses per contact (optional): “Empty = unlimited.”
- Valid from and Valid until (optional dates).
- Eligible products: tick products to restrict the code. “None selected = every line is eligible.”
- The switch sets the code Active or Inactive.
- Code (required): 3–40 letters, digits,
- Click Save. You see Saved and the code appears in the list.
Dates are whole days in your browser’s time zone: Valid from starts at 00:00 of that day, Valid until ends at 23:59:59 of that day.
Edit a promo code
Section titled “Edit a promo code”- Click the code’s row. The Edit … dialog opens; Code and Discount type are locked.
- Change the other fields and click Save.
Deactivate a promo code
Section titled “Deactivate a promo code”Open the code, turn the switch to Inactive and click Save. Orders using it can no longer be priced or finalized with it.
Delete promo codes
Section titled “Delete promo codes”Select one or more rows, click Delete and confirm “Delete N items?” (“This cannot be undone.”). There is no Undo.
Apply a code to an order
Section titled “Apply a code to an order”In the order wizard, on the Review step, type the code in Promo code. The Totals preview shows a Discount (CODE) row and the discount on each eligible line. Leave the field empty to remove the code.
Reference
Section titled “Reference”Promo codes list
Section titled “Promo codes list”| Column | Content | Notes |
|---|---|---|
| Code | The code, with the description underneath | Sortable; default sort A to Z |
| Discount | Percentage or amount | |
| Used | Redemptions, or “used / limit” | Sortable; hidden on small screens |
| Validity | “start – end” (… for an open side) or Always |
Hidden below large screens |
| Status | Computed status |
With no codes the list shows “No promo codes yet.”
Fields
Section titled “Fields”| Field | Required | Default | Limits and rules |
|---|---|---|---|
Code (code) |
Yes | 3–40 characters, A–Z a–z 0–9 _ -; unique among existing codes; stored upper-case; cannot change |
|
Description (description) |
No | Up to 500 characters | |
Discount type (kind) |
Yes | Percentage | percent or fixed; cannot change |
Percent off (percent_bps) |
For percentage codes | 10% | 0.01%–100% (1–10,000 basis points) |
Amount off (amount_minor) |
For fixed codes | Up to 100,000,000,000 minor units | |
Currency (currency) |
For fixed codes | Default currency | ISO 4217; stored only for fixed codes |
Minimum subtotal (min_subtotal_minor) |
No | None | Minor units of the order currency |
On subscriptions (duration) |
No | once |
once, repeating or forever |
Number of periods (duration_periods) |
For repeating |
1–120 | |
Total uses (max_redemptions) |
No | Unlimited | At least 1 |
Uses per contact (max_per_contact) |
No | Unlimited | At least 1 |
Valid from (starts_at) |
No | No start | |
Valid until (ends_at) |
No | No end | Must be after Valid from |
Eligible products (product_ids) |
No | Every line | Up to 100 products |
Active switch (active) |
Active |
Relative to /api/v2/t/<workspace>:
| Method and path | Permission | Purpose |
|---|---|---|
GET /promoCodes |
products:read |
List, newest first (active, limit, cursor) |
POST /promoCodes |
products:write |
Create a code |
GET /promoCodes/{id} |
products:read |
Get a code |
PATCH /promoCodes/{id} |
products:write |
Update (not code or kind) |
DELETE /promoCodes/{id} |
products:write |
Delete a code |
Limits and permissions
Section titled “Limits and permissions”| Action | Permission | Roles |
|---|---|---|
| View promo codes | products:read |
Owner, Admin, Marketer, Sales, Analyst, Viewer |
| Create, edit, delete promo codes | products:write |
Owner, Admin |
| Use a code on an order | orders:write |
Owner, Admin, Sales |
- One code per order.
- Up to 100 eligible products per code.
Troubleshooting
Section titled “Troubleshooting”All these messages appear under Promo code in the order wizard, or as a promo_code error from
the API. Amounts in messages are in minor units.
| Message | Cause | Fix |
|---|---|---|
| “unknown promo code …” | No such code (or it was deleted) | Check the spelling |
| “promo code … is not active” | The switch is off | Activate the code |
| “promo code … is not valid yet” | The order date is before Valid from | Wait, or change the start date |
| “promo code … has expired” | The order date is after Valid until | Extend the end date |
| “promo code … has reached its redemption limit” | Total uses reached | Raise the limit |
| “promo code … was already used the maximum number of times by this contact” | Uses per contact reached | Raise the limit |
| “promo code … only applies to EUR orders” | Fixed code in another currency | Use a code in the order currency |
| “promo code … does not apply to any item of this order” | No line is one of the eligible products | Add an eligible product or widen the selection |
| “promo code … needs a subtotal of at least …” | Eligible subtotal below the minimum | Add items or lower the minimum |
| “promo code … already exists” | The code is taken | Choose another code |
| “3–40 letters, digits, _ or -.” | Invalid code format | Fix the code |
| “The end date is before the start date.” | Valid until precedes Valid from | Fix the dates |
| “percent promo codes need percent_bps” / “fixed promo codes need amount_minor and currency” | Missing discount value (API) | Send the value for the code’s type |
| A code worked on the draft but finalizing fails | Limits are checked again at finalization | Check the code’s limits and dates |

