Skip to main content

Pricing rules

Who: administrators (maintained by an administrator or support; no screen yet).

A pricing rule (condition record) adds, takes away or sets an amount. Each rule has a type, a value, and optional filters saying where it applies.

Rule types​

TypeEffectWhenExample
BASE_PRICESets the unit priceStep 1Café Aroma mugs 4.10
CUSTOMER_DISCOUNTDiscountStep 2, added to other discounts5% for Café Aroma
VOLUME_DISCOUNTDiscountStep 23% from 50 mugs
PROMOTION_DISCOUNTDiscountStep 210% Black Friday, 27–30 Nov
SURCHARGECharge before taxStep 3Gift box 0.25 per mug
TAXTax on the taxable amountStep 4VAT 20%
FREIGHTCharge once per orderStep 58.00 per order
ROUNDINGRounds the order totalStep 6Nearest 0.05

Rule fields​

FieldMeaningExample
NameShown in the breakdownNovember mug promotion
Value typePercentage, Fixed amount (per unit; per order for freight), or pricePercentage
ValueThe number10
CurrencyFor fixed amountsGBP
Product, VariantOptional filtersCeramic Mug
Customer, Business unit, WarehouseOptional filters(blank)
Minimum quantity, Maximum quantityOptional quantity range50 / (none)
Valid from, Valid toOptional dates2026-11-01 / 2026-11-30
PriorityTie-breaker: lower first. Default 100100
ActiveInactive rules are ignoredYes

Blank filters mean "any". A rule with no product applies to every product.

Which rule wins​

For each rule type, only one rule applies to a line: the best match.

Specificity points for each filter that matches the order:

Filter matchedPoints
Customer30
Variant20
Product10
Business unit5
Warehouse5

Example: three CUSTOMER_DISCOUNT rules match a Café Aroma mug line:

RuleFiltersPointsPriorityUsed?
All customers 2%none0100
Café Aroma 5%Customer30100Yes
Café Aroma mugs 7%Customer + Product40100Yes, if it exists: it beats the 5% rule

Because each type gives only one rule, a customer discount and a promotion both apply (different types), but two promotions never stack.

Examples​

GoalRule
5% off everything for one customerCUSTOMER_DISCOUNT, Percentage 5, Customer = Café Aroma
3% off mugs from 50VOLUME_DISCOUNT, Percentage 3, Product = Ceramic Mug, Min quantity 50
10% off mugs in NovemberPROMOTION_DISCOUNT, Percentage 10, Product = Ceramic Mug, 1–30 Nov
2.00 off each T-shirtCUSTOMER_DISCOUNT, Fixed amount 2.00, Product = Cotton T-shirt
0.25 gift box per mugSURCHARGE, Fixed amount 0.25, Product = Ceramic Mug
VAT 20%TAX, Percentage 20
Free delivery from one warehouseFREIGHT, Fixed amount 0, Warehouse = Leeds (priority 10) and a general FREIGHT 8.00
Round totals to 5pROUNDING, Fixed amount 0.05

Next: Setup checklist.