How you set prices for your products and reduce them with discounts and promotions.
Pricing and discounts decide what customers pay. A business sets a base Price for each Product Variant and can vary it by currency, country, Customer Group, and Channel. Discounts reduce those Prices for sales, promotions, and negotiated deals. Because a discount can be deactivated when a promotion ends, the business doesn't have to maintain discounted Prices and base Prices side by side.
Merchandisers typically set up Prices and discounts, either in the Merchant Center or with the APIs:
Key concepts
Price
A Price with a validity period is time-bound: the platform shows it only within that period. Prices that are no longer valid aren't removed automatically. You can delete them if necessary.
Types of Prices
- In the Merchant Center: Choose the Product Price mode
- For developers: Types of Prices in the Pricing and discounts APIs overview
Embedded Prices
Embedded Prices are stored within a Product Variant. You can stage changes to Embedded Prices and publish them later.
- In the Merchant Center: Embedded Prices
- For developers: Embedded Prices in the Pricing and discounts APIs overview
Standalone Prices
Standalone Prices are separate resources instead of being part of a Product Variant, and they are associated to a Product Variant through its SKU. They suit businesses with a large number of Prices, and they are managed independently from Products, which contributes to better query performance.
Unlike Embedded Prices, you can create Standalone Prices for Products that don't exist in the Project. To link a Product Variant that you add later to its Standalone Price, the Product Variant and the Standalone Price must have the same SKU.
You can stage changes to Standalone Prices before publishing them. You can also deactivate a Standalone Price: the platform doesn't consider a deactivated Standalone Price during price selection.
- In the Merchant Center: Standalone Prices
- For developers: Standalone Prices in the Pricing and discounts APIs overview
External Prices
External prices are stored and maintained outside the product catalog: in a third-party external system, or as Custom Objects, which hold custom data in the Project. Your application retrieves an external price when it needs to show it or add it to a Cart.
Consider using external prices in the following cases:
- Your pricing data needs more Prices per Product Variant than the platform supports.
- Your pricing data is stored externally in a Product Information Management (PIM) system. To show the Price for a Product Variant, or for a Line Item in the Cart, your application retrieves the Price from the external system. Alternatively, you can import your prices into the platform as Standalone Prices or Embedded Prices.
- Your pricing data is dynamic: it changes frequently or is calculated on the fly from external values, such as currency conversion rates. Your application retrieves the data from the external system before it shows the prices on your storefront.
- Your pricing data is stored in a datastore that is colocated with your application code. To show Prices on your storefront or for Line Items in the Cart, your application reads them from that datastore instead of calling an external system.
- Your pricing data is stored as Custom Objects. Although Custom Objects are stored within the platform and accessible through its APIs, the Prices still count as external, because your application must read them when it shows pricing information or adds it to the Cart.
- In the Merchant Center: Import Standalone Prices
- For developers: External Prices in the Pricing and discounts APIs overview
Tiered pricing
Tiered pricing gives a different Price when a customer buys a certain quantity of an item. It is useful in bulk-purchasing scenarios, and it is an alternative way to discount prices without Product Discounts. For example, if a Product's base price is €5, a tiered Price of €3 can apply to each item when 100 items are added to a Cart and ordered. Both Embedded Prices and Standalone Prices support tiered pricing.
When the minimum quantity of a Price tier is reached, the platform applies the Price tier to the entire quantity of the Product Variant in the Line Item. The platform selects the tier that is valid for the quantity of the Line Item. If the quantity doesn't reach any Price tier, the base Price applies.
The platform applies a Price tier per Line Item. For example, if the same Product Variant is in a Cart as several Line Items (for example, with different Custom Field values), each Line Item must reach the minimum quantity to get the Price tier.
The platform ignores a Price tier when the Price is already discounted by a Product Discount. It also ignores tiered prices when it compares Prices to find the cheapest one during price selection.
- In the Merchant Center: Add a Price
- For developers: Tiered pricing in the Pricing and discounts APIs overview
Discounts
Discounts reduce the Prices that customers pay. They help create efficient pricing solutions, for example for temporary promotion campaigns, because a business can deactivate a discount when the promotion ends instead of maintaining discounted Prices and base Prices side by side.
Product Discounts reduce Prices before a Product is added to a Cart. Cart Discounts reduce prices in a Cart. Discount Codes, Discount Groups, and Direct Discounts build on Cart Discounts.
B2C businesses typically have simple base pricing structures and rely on frequent promotions to drive sales. B2B businesses often have more complex pricing, with high-precision (sub-cent) prices and tiered pricing. Discounts play a less significant role in B2B, because purchasing decisions are generally made by groups, which reflects a more structured decision-making process.
Product Discounts
A Product Discount reduces the Price of a Product Variant before it is added to a Cart. Use Product Discounts to show a discounted Price on product detail pages (PDPs) or product listing pages (PLPs). A best practice is to use Product Discounts to show sale prices for your Products, instead of using the pricing solutions that are better suited to storing base prices.
Product Discounts are useful for the following scenarios:
- Specific Products or SKUs, for example, a sale on a specific color of handbag
- Subsets of Customers, for example, a "platinum members-only" sale
- Subsets of Products, for example, a sale on all handbags or wallets
- Business-defined Attributes, for example, a sale on products by a certain designer
For example, a business creates a base Price for a new mobile phone for Customers in Germany who belong to the Platinum Customer Group. With a Product Discount, it offers a discounted Price for the same combination (Germany and the Platinum Customer Group). This lets the business show the base Price together with the discounted Price in its storefront, and supports smooth reporting analytics.
Only one Product Discount applies to any Price of a Product Variant at any given time. Different Product Variants of the same Product can have different Product Discounts. You can also use several Product Discounts for the same Product Variant to discount different Prices. For example, one Product Discount gives 10% off the Price in euros, and another gives 20% off the Price in US dollars of the same Product Variant.
Each Product Discount has a sort order, a number between 0 and 1. If several active Product Discounts match a Price, the Product Discount with the higher sort order applies.
When base prices are stored externally, or when the built-in discounting logic can't support your requirements, you can use external discounts. An external system calculates the discount, and your system sets the discounted price.
- In the Merchant Center: Create a Product Discount
- For developers: Product Discounts in the Pricing and discounts APIs overview
Cart Discounts
A Cart Discount reduces prices in a Cart. A Cart Discount can discount the following elements of a Cart:
- Any item in the Cart
- The shipping cost of the Cart
- The total of the Cart
- A "Buy X, get Y free" discount, which adds a free item to the Cart
- A "Buy X items, get Y of them at a discounted rate" discount. You can only apply a percentage-off discount to eligible items.
A more powerful option lets you apply an amount, a fixed price, or a percentage discount to eligible items.
When the condition of a "Buy X, get Y free" discount is met (its Discount Predicate, a conditional expression that decides whether the discount applies), the platform automatically adds a Gift Line Item to the Cart. If the Gift Line Item becomes invalid after creation (for example, when the referenced Product, Product Variant, or Channel has been deleted), or if a Price can't be selected for the Cart, the Cart Discount doesn't apply to the Cart.
Cart Discounts are useful for the following scenarios:
- Free shipping discounts, or free shipping over a certain Cart amount
- Seasonal sales for a group of products
- Membership or Customer Group discounts
The platform recalculates Cart Discounts whenever a Discount Code, Line Item, or Custom Line Item is added to or removed from a Cart, and when an Order is created from a Cart.
- In the Merchant Center: Create a Cart Discount
- For developers: Cart Discounts in the Pricing and discounts APIs overview
Discount Codes
During checkout, a customer adds the Discount Code to the Cart, and the related Cart Discount applies as soon as the Discount Code is added. With Discount Codes, you offer additional Cart Discounts through unique codes. You can limit how many times a Discount Code can be applied in total, and how many times each Customer can apply it. Discount Codes inherit their Store association from the Cart Discounts they reference.
Discount Codes aren't ranked like Cart Discounts, but the order in which they apply to a Cart depends on the ranking of the Cart Discounts they are associated with. For example, the following discounts apply to a Cart:
- SUMMER SALE: a Cart Discount that discounts the Cart by €10 with a sort order of 0.05
- MYFIRSTPURCHASE: a Discount Code associated with a Cart Discount, NEW CUSTOMERS, that discounts the Cart by €5 with a sort order of 0.1
- In the Merchant Center: Create a Discount Code
- For developers: Discount Codes in the Pricing and discounts APIs overview
Discount Groups
A Discount Group is a container for multiple Cart Discounts. To apply only one Cart Discount when several are eligible, group the Cart Discounts in a Discount Group. The platform then applies only the Cart Discount that gives the Customer the highest savings, the best deal.
Discount Groups are useful for managing temporary campaigns or running time-sensitive promotions. For example, you can group seasonal sale promotions into a single Discount Group, and then deactivate all of them at once when the sale ends. A Discount Group must be active for its Cart Discounts to apply. While a Discount Group is inactive, the platform doesn't consider its Cart Discounts.
In the Merchant Center, deactivating a Discount Group deactivates all of its Cart Discounts, and activating a Discount Group doesn't activate its Cart Discounts.
You can only group Cart Discounts that aren't specific to a Store and that discount items in the Cart: any item, "Buy X items, get Y of them at a discounted rate" discounts, and the more powerful option for eligible items. Cart Discounts with a Gift Line Item value can't be used in Discount Groups.
When a Cart Discount belongs to a Discount Group, the platform treats its own sort order as 0. The sort order of the Discount Group determines how the Cart Discount is applied.
- In the Merchant Center: Discount Groups
- For developers: Discount Groups in the Pricing and discounts APIs overview
Direct Discounts
While most commonly used in B2B scenarios, Direct Discounts can also be used in B2C scenarios.
Direct Discounts are always active and valid, use the default stacking mode, and don't have a sort order. They apply in the order in which they are listed on the Cart or Order.
By default, Direct Discounts take precedence over the other discounts on the Cart. If a Direct Discount is applied to a Cart or Order, any matching Cart Discounts in the Project are ignored, and Discount Codes can't be added. For all three discount types to coexist, set the Cart so that Direct Discounts don't ignore Cart Discounts. The Direct Discounts then apply after all Cart Discounts, so they always act on prices that the Cart Discounts have already reduced.
- For developers: Direct Discounts in the Pricing and discounts APIs overview
How the concepts relate
Prices belong to Product Variants, and discounts reduce either those Prices or the prices in a Cart. Discount Codes, Discount Groups, and Stores work with Cart Discounts, and Direct Discounts apply to single Carts, Orders, and Quotes.
The following diagram shows how Prices, discounts, and the resources they work with relate to each other.
Selection and precedence rules
Price selection
A business can specify Prices with different price scopes to serve all customers, and the platform selects the most suitable Price for each customer. The platform selects a Price for a Product Variant on a product page, and for a Line Item in a Cart, using the shopper's currency, country, Customer Group, and Channel. It selects the Price with a sequential fallback mechanism.
- For developers: Price selection in the Pricing and discounts APIs overview
Fallback logic
The following diagram shows the order in which the platform looks for a matching Price. The platform stops at the first step that has a matching Price.
The platform checks the following steps in order. A Price matches a step when it fits the shopper on the criteria marked Matches, and the Price has no value set for the criteria marked Not set.
| Step | Customer Group | Channel | Country |
|---|---|---|---|
| 1 | Matches | Matches | Matches |
| 2 | Matches | Matches | Not set |
| 3 | Matches | Not set | Matches |
| 4 | Matches | Not set | Not set |
| 5 | Not set | Matches | Matches |
| 6 | Not set | Matches | Not set |
| 7 | Not set | Not set | Matches |
| 8 | Not set | Not set | Not set |
Within each step, time-bound Prices take precedence over Prices without a validity period. The platform shows a Price only within its validity period.
Fallback logic for multiple Customer Groups
- For Customers (B2C): the Customer Group of the Cart and the Customer Groups assigned to the Customer
- For Business Units (B2B): the Customer Groups assigned to the Business Unit. If the Business Unit has any Customer Groups assigned, only Prices from those Customer Groups are considered during price selection.
If the Customer Group assignments of a Business Unit are set to an empty list, only the base Price applies. If the Customer Group assignments of a Business Unit aren't set at all, the platform uses the Customer Group of the Cart and the Customer Groups of the Customer, provided that the Cart has a Customer. Without a Customer, only the base Price applies.
Price selection happens only between eligible Prices that match one step of the fallback logic. If several Prices match a step, the platform selects the cheapest Price, before Cart Discounts. If a Product Discount applies to a Product Variant, the discounted value of the Embedded Price or Standalone Price determines the cheapest Price. The platform ignores tiered prices when it selects the lowest price for the Product Variant.
If several Prices have the same value, the platform uses the first Customer Group in the Customer Group assignments of the Customer or Business Unit. If the Price matched from the Customer Groups assigned to the Customer and the Price matched from the Customer Group of the Cart are equal, the platform uses the Price that matches the Customer Group of the Cart.
The following example shows how the platform selects a Price when a Customer or Business Unit is a member of multiple Customer Groups.
| Customer Group | Country | Channel | Price |
|---|---|---|---|
| Alpha | USA | Zeta | $123 |
| Beta | USA | Zeta | $100 |
| Delta | * | Zeta | $99 |
| * | * | * | $23 |
According to the fallback logic, the platform first checks for a Price for the Customer Group, Channel, and country. This leaves $123 and $100, and $100 is selected because it's the cheapest of the two Prices. Because the first condition is met, the platform ignores the next checks in the price selection logic, although other cheaper Prices exist.
Discount interaction in Carts
A relative Cart Discount, such as a percentage discount, is calculated on the price after any previous discounts. With previous discounts already applied, the target can already have a discounted Price, and the Cart Discount then reduces that already discounted Price.
The following diagram shows how the platform applies discounts to a Cart in each combination mode.
- In the Merchant Center: Discount interaction on Carts
- For developers: Discount interaction in Carts in the Pricing and discounts APIs overview
Stacking
In stacking, both a Product Discount and Cart Discounts can apply. The platform applies the Product Discount first, and then applies Cart Discounts to Line Item prices that the Product Discount has already reduced.
The platform evaluates and applies Cart Discounts in the following order:
- All discounts except discounts on the Cart total price
- Discounts on the Cart total price
The sort order and stacking mode are effective only among Cart Discounts within the above-mentioned targets.
Best deal
In best deal, Product Discounts and Cart Discounts can both be present on the same Cart, but only one discount type applies per Line Item. The platform calculates the Cart total twice: once using the Product Discount and once using the Cart Discounts. It then applies the discount type that results in the lower Cart total, which offers the highest savings for the Customer.
The platform evaluates and applies the discounts on the Cart in the following order:
- Discounts on (Custom) Line Items
- Gift Line Items
- Direct Discounts on (Custom) Line Items that don't take part in the best deal selection
- Discounts on shipping cost
- Discounts on Cart total price
The sort order and stacking mode are effective only among Cart Discounts with the above-mentioned targets.
| List price | Price after product discount | Price after cart discount | |
|---|---|---|---|
| Shirt | US$100 | US$70 | US$90 |
| Jean | US$120 | US$90 | US$60 |
| ---- | ---- | ---- | ---- |
| Total price (inclusive of all taxes) | US$160 | US$150 |
With a lower price (US$150), the Cart Discount is chosen as the best deal.
If the combination of discounts offers a better price, the prices of the Line Items can increase. For example, the price of the shirt is US$90 instead of US$70.
| List price | Price after product discount | Price after cart discount | |
|---|---|---|---|
| Shirt | US$100 | US$70 | US$60 |
| Jean | US$120 | US$90 | - |
| ---- | ---- | ---- | ---- |
| Total price (inclusive of all taxes) | US$160 | US$150 |
With a lower price (US$150), the Cart Discount is chosen as the best deal.
Since no Cart Discount applies for the jeans, the price (after Product Discount) is considered: US$90. In this case, the chosen discount type is the Cart Discount, and the Product Discount is only applied for Line Items with no Cart Discounts.
| List price | Price after product discount | Price after cart discount | |
|---|---|---|---|
| Shirt | US$100 | US$70 | US$90 |
| Custom Line Item | US$50 | - | US$45 |
| ---- | ---- | ---- | ---- |
| Total price (inclusive of all taxes) | US$120 | US$135 |
With a lower price (US$120), the Product Discount is chosen as the best deal.
Since no Product Discount applies for the Custom Line Item, the list price is considered: US$50.
| List price | Total with Product Discount | Price after cart discount | |
|---|---|---|---|
| Shirt | US$100 | - | US$90 |
| ---- | ---- | ---- | ---- |
| Shipping | US$0 | US$0 | |
| Total price (inclusive of all taxes) | US$90 | US$80 |
With a lower price (US$80), the Cart Discount is chosen as the best deal.
The shipping cost and discount on the total cart price is applied irrespective of the stacking mode.
The "Total with Product Discount" column shows the Cart total when only the Product Discount applies. The best deal comparison only considers the prices of the (Custom) Line Items, so the free shipping and the US$10 discount on the total price still apply in that column: US$100 minus US$10 is US$90.
Direct Discounts in best deal
Direct Discounts can take part in the best deal selection with Product Discounts and Cart Discounts. When the Product Discount offers the better deal, Direct Discounts are discarded, because they are a form of Cart Discount. To avoid losing a negotiated reduction, set the Direct Discount to not take part in the best deal selection. The platform then leaves the Direct Discount out of the comparison and applies it on top of whichever discount type wins, including on top of a Direct Discount that took part and won.
This affects only Direct Discounts that target (Custom) Line Items. A Direct Discount that adds a Gift Line Item, or that targets the shipping cost or the Cart total price, is always applied after the platform selects the best deal. This setting has no effect in stacking.
When the Cart is set so that Direct Discounts don't ignore Cart Discounts, and both Cart Discounts and Direct Discounts apply to the Cart, the Cart Discounts and Direct Discounts form a single candidate in the best deal comparison. They win or lose against the Product Discounts together.
| List price | Price after product discount | Price after both discounts | |
|---|---|---|---|
| Shirt | US$100 | US$70 | US$60 |
| ---- | ---- | ---- | ---- |
| Total price (inclusive of all taxes) | US$70 | US$60 |
The Product Discount wins the selection. The Direct Discount then applies to the reduced price, resulting in a total of US$60. If the Direct Discount had participated in the best deal selection, the total would be US$70, because the platform would have discarded the Direct Discount.
Order of Cart Discounts
Several Cart Discounts can be eligible for the same Cart. The platform applies them by sort order, and a higher sort order is applied first. The sort order is unique globally across all Cart Discounts and Discount Groups. An eligible Cart Discount that exists outside a Discount Group can still apply, based on its sort order.
When other Cart Discounts with different targets apply to a Cart, the following rules apply to Cart Discounts that target the Cart total price:
- The Cart total price discount applies last, regardless of its sort order. It ignores the stacking mode, if any, that stops further discounts on the other Cart Discounts.
- The sort order of a Cart total price discount only determines its ranking among the other Cart Discounts that target the total price.
- As a result, the stacking mode that stops further discounts takes effect for a Cart total price discount only when other Cart Discounts that target the total price have a lower sort order.
Common scenarios
Common discount use cases
| Use case | Description | Solution |
|---|---|---|
| Product or catalog discount | Percentage or fixed value off the original price of items matching set conditions (these use predicates and can include categories). | Product Discount |
| Product volume pricing | Reduced base Price for an item when multiple quantities of that item are purchased. | Tiered prices |
| Time window discount | A discount that applies during a set period of time. | Cart Discount and Product Discount |
| Tiered percentage discount by spend | Example: 10% off the Cart for customers who spend $30 or more, 15% off if they spend $50 or more, or 20% off if they spend $100 or more. | Cart Discount |
| Tiered fixed discount by spend | Example: $25 off the Cart total for customers who spend more than $150, $50 off if they spend more than $300, or $75 off if they spend more than $400. | Cart Discount |
| Discount by Discount Code | Percentage or fixed value off the Cart or a subset of Cart items when customers use a Discount Code. | Cart Discount with a Discount Code |
| Buy x, get 1 free | When customers buy x items, they get one quantity of a defined item for free. | Cart Discount |
| Cart value is greater than x, get y free | When a Cart value is greater than a set target, customers get one quantity of a defined item for free. | Cart Discount |
| Website-specific promotions | A merchant may want to discount only a specific website (Store), in the case a Project supports multiple websites. | Cart Discount |
| Bundle Product Type discount | Percentage or fixed value off the bundle to customers who purchase a custom Product Type of bundled Products. | Cart Discount, external discount, or both |
| Marketing opt-in discount | One-time fixed discount offered to customers who opt in (subscribe) for marketing emails. | Cart Discount, external discount, or both |
| Create an account discount | One-time discount for customers who sign up for an account. | Cart Discount, external discount, or both |
- In the Merchant Center: Create a Discount from a template