Skip to content
platform

Deterministic module

B2B pricing engine: Contextual Pricing (Pricing Engine)

Your revenue grows and margin disappears, eroded by stacked discounts and by a price table that keeps up with neither contract nor region. Contextual Pricing is the B2B pricing engine that treats price as the starting point of the negotiation, not as a fixed value, and protects margin by architecture.

Contextual Pricing hero: pricing rules by profile, warehouse and tax written in the panel derive in milliseconds the price the buyer sees.

In short

A B2B pricing engine calculates the price of each order from its context instead of reading a fixed list. On CWS Platform that is Contextual Pricing (Pricing Engine): it derives the price from product, source warehouse, customer profile and tax rule in milliseconds, and blocks stacked discounts by architecture, with configurable locks and a mandatory Reason Code when a concession goes to approval.

Figures converted from Brazilian reais at R$5.00 = US$1.00.

Per-account pricing without a side spreadsheet is the first criterion in the guide to choosing a B2B ecommerce platform.

What it is

The engine that derives the price in milliseconds from multiple variables at once: the product, the source warehouse, the customer profile and the tax rule. Price types by identity apply wholesale or retail automatically at login, with support for future price lists, temporal validity and the best automatic coupon. In agribusiness, price is indexed to a commodity with a validity of minutes. It is where a company's B2B pricing strategy becomes pricing governance enforced on every order, with clear precedence: the contract applies above the rule, and the rule above the store's standard price.

Illustrated Contextual Pricing: the price is derived in milliseconds from the product, the origin warehouse, the customer profile and the tax rule.
Four variables, one price. The Pricing Engine combines product, warehouse, profile and tax rule at once. Wholesale or retail is already applied at login.

The pricing engine in 1 minute

A single source of truth for the value is impossible. For the rule, it isn't.

Good data engineering says the same fact shouldn't diverge across systems. That's right. But a B2B price isn't a fact the way a tax ID is a fact.

A part shipping from a California warehouse into California doesn't cost what it costs shipping to New York, because freight lands inside the delivered cost. Different prices for the same SKU, all of them correct, at the same moment. Volume, terms, payment method and contract each move the result again.

A B2B price is the output of a function, not a stored value. Companies that insist on storing one end up flattening the table, and pay for it on every sale that would have accepted more. What must be single is the place that records who can charge what, to whom, shipping from where, on what terms — and that place is the Commerce Rules Engine (CDL Workspace).

The same item from the same warehouse has correct, different prices by destination, because freight and tax enter the cost; what is unique is the rule.
The value varies, the rule is unique. B2B price is the result of a function. What must be unique is where it is written who charges how much, to whom, shipping from where and on what terms.

The capability no one replicates

Discount Stacking Prevention

Configurable locks keep discount, contract, price and coupon from going past the limits you set, and one of the possible settings is having the sales rep's manual discount automatically cancel the coupons. Margin is protected by architecture and not by auditing afterward, with a mandatory Reason Code when a concession goes to approval.

Price is negotiable, not fixed

The price moves within Approval Workflows. No one treats stacking prevention as an architectural concept; in the market, B2B usually uses fixed tables per organization, with no native authority limits.

Discount Stacking Prevention: the rep manual discount automatically cancels coupons, protecting margin, always with a mandatory Reason Code.
Discount on top of discount does not pass. Margin is protected by architecture, not by a month-end audit: the manual discount cancels coupons and always carries a justification.

It governs the dimension that pays the bill

It operates under the Commerce Rules Engine (CDL Workspace): every pricing rule applies the same to the human sales rep in guided selling and to the AI Agents.

Contextual priceDiscount Stacking PreventionApproval WorkflowsReason CodesAgro Commerce Suite

The dimensions price resolves at once8

This is not a cascade of rules applied in sequence. The dimensions are processed simultaneously, and the result is a single price, the same one for the portal and for the seller.

By customer
Price types tied to the profile. A reseller tax ID reaches the wholesale table, an individual sees the retail price, and the switch happens at login.
By region
The origin postcode determines the tax calculation, so the same item carries a different price depending on the state it is invoiced from.
By warehouse
The origin of the stock defines the price. The logistics cost and the tax rule of the distribution center enter the calculation, not a step after it.
By seller
In a marketplace, each seller prices over the shared catalog, under the central governance of the Marketplace Management Platform.
By contract
Price lists with controlled validity, with a start and an expiry date. The negotiated agreement applies on its own within the agreed window.
By category and manufacturer
Price tags segment by catalog attribute, which allows a dedicated condition for one manufacturer's line without creating a new table.
By cluster and account base
Commercial groups configured in the Commerce Rules Engine, such as reseller or rural producer, carry their own terms.
By volume
Progressive discounting with a progress bar, which shows the buyer how far the next tier is instead of letting them find out at the end.

Pricing that is already scheduled4

Future price lists
The list is loaded in advance and activates on its own on the date. In operations with harvests, seasonality or time-bound agreements, nobody needs to be awake at the turn.
Price tags
Configuration markers that segment by a trait of the product, the operation or the commercial context that does not fit the standard dimensions.
Fixed and to-be-fixed pricing
In agribusiness, the quote can be locked at closing or left open to be fixed later. These are two distinct regimes, and the engine treats each as such.
Hidden pricing
There are operations where price only appears to an authenticated, qualified visitor. Hiding it is a configuration, not a customization.

Pricing governance: what the engine enforces8

Margin erosion starts where nobody wrote the rule down. These are the guarantees behind margin management on every order, with no side spreadsheet.

A price waterfall with explicit precedence
The contract overrides the pricing rule, and contracts do not stack: when two apply to the same customer, the higher-priority one wins. Among rules, non-cumulative ones apply by priority and cumulative ones apply on top of the result. Outside the contract terms, the store's standard price applies.
Contracts with a precise scope
A contract fixes the SKU price for all customers or for a slice by tax ID, customer group or customer type, can be limited by marketplace, destination state and branch, has start and end date and time, and is loaded by spreadsheet or API.
B2B tax criteria inside the rule
A pricing rule can apply by state tax registration, ICMS taxpayer status, industry code (CNAE), product tax code (NCM), origin and destination state pair, customer and product tags and minimum quantity. Markup and margin are written into the rule, as a discount or surcharge in percentage or value.
Discount lock at the source
Rules and contracts can stop the sales rep from adding any further discount on the resulting price. The contract price reaches the order exactly as negotiated, which protects price realization.
Dynamic volume pricing
The rule kicks in when the cart reaches the item's minimum quantity and drops off if the quantity falls below it, with no one recalculating by hand.
Headquarters and branches on one policy
A rule created at marketplace level is replicated to the selected stores, scoped by store, category, product tag, customer group and stock, with exclusions. Branches use headquarters' customer groups without the customer list being copied or exposed to them.
Price from the store nearest the customer
The buyer pays the price of the store nearest the delivery address even when the order ships from the distribution center. When the address changes, the price is recalculated and the buyer is alerted.
Season, campaign and payment date in the price
Future price lists by harvest season or campaign set validity and a payment window, and the contract tied to them can carry its own early-payment discount rate and late-payment interest rate. Limited-time offers use the same contract setup, with was/now display.
A sales director smiles slightly, composed, standing in a bright meeting room, with a plain table and glass partition out of focus behind him in daylight.

Persona · Sales director

Every customer sees their own price, and discounts stopped stacking.

Contextual Pricing (Pricing Engine) derives the price from product, warehouse, customer profile and tax rule, and configurable locks prevent stacked discounts.

A reseller's buyer smiles calmly in the bright back office of her shop, with a plain desk and a shelf of unlabeled folders out of focus behind her.

Persona · Reseller buyer

The price I see in the catalog is already the price that closes, with nothing to check later.

In Contextual Pricing (Pricing Engine), the tax rule is part of price formation, and the digital channel stops being a quote to be checked.

Tax belongs inside price formation

In an interstate operation, tax changes the price, not the invoice. When it is calculated afterwards, the number the buyer saw in the catalog is not the number they will pay, and the digital channel becomes a quote to be checked with a sales rep. Here the tax rule is one of the variables in the derivation, within price formation, so the price that shows up is already the price that closes. It is also why the Credit-First B2B Checkout verifies price, stock, credit and tax at the same time: the four were resolved together.

Comparison between tax calculated after the catalog, which changes the invoice value, and tax inside price formation, where the price seen is the one paid.
Tax changes the price, not the invoice. With the tax rule as a variable of the derivation, the catalog price is already the closing price, and the digital channel stops being a quote to check.
Commercial policy of the operation in the CWS Platform CDL Workspace: a matrix crossing seller role, customer type and price table or contract to set the discount ceiling, with a traceability column naming the policy and review cycle of each band.

Price comes from the contract, not from a single table

The matrix crossing role, customer type and price table or contract, with the policy that authorises each ceiling shown alongside it, version and review cycle included.

  • Three axes, not oneThe ceiling emerges from crossing the seller's role, the customer type and the standing price table or contract.
  • Ceiling traceabilityEvery band names the policy and version that authorises it, so the rule has provenance instead of being a verbal agreement.
  • Review with a dateThe review cycle is written on the row itself, which separates a living policy from a forgotten table.

This is the pricing engine shown as a rule rather than as a result. The same SKU shifts ceiling when the customer type or the standing contract changes, and the traceability column names which policy decided that and when it returns to committee. Derived pricing has provenance.

In operation

Tracbel · Volvo dealer

+10 points of margin

of operating margin on orders placed via the portal (Tracbel, named best Volvo dealer in the world, Volvo Gold 2025).

With 100% of the portfolio available, about 131,000 SKUs, the buyer began to see the entire catalog and to buy what they did not know existed. Removing the friction changed buying behavior, and margin rose along with it.

Read the Tracbel case →

APIs for this module

What this module does in the panel can also be done by your system. These are its groups in the public API reference.

Contracts

Endpoints to manage fixed-price contracts for customers or customer groups.

See all14endpoints in this group →

Price Rule

Services for creating and managing price rules.

See all3endpoints in this group →

Developer area →

Frequently asked questions

Is the price on the CWS Platform fixed?

No. The Contextual Pricing (Pricing Engine) generates the starting price of the negotiation, derived from product, warehouse, customer profile and tax rule. It is negotiable within Approval Workflows and protected by Discount Stacking Prevention.

How does the CWS Platform protect margin from stacked discounts?

By architecture. Discount Stacking Prevention applies configurable locks that keep discount, contract, price and coupon from going past the limits you set; one of the possible settings is having the sales rep's manual discount cancel out the automatic coupons. Pricing rules and contracts can also block any additional rep discount on the resulting price, and a Reason Code is mandatory when a concession goes to approval and when it is commercially declined, so every exception has a record and a justification.

Can the same SKU have a different price by customer and by warehouse?

Yes. The price is derived by profile (individual or company), source warehouse and tax rule in milliseconds, with no divergence between the portal and the sales rep.

What is a B2B pricing engine?

A B2B pricing engine calculates the price of each order from the context of the sale instead of reading a fixed value from a list. In B2B that context is who is buying, which warehouse ships, which tax rule applies, the volume and the terms, so the same item can have several correct prices at the same moment.

How does dynamic pricing work in B2B?

In B2B, dynamic pricing changes with the customer and the context of the sale, not just with a list updated from time to time. On CWS Platform, Contextual Pricing derives the starting price by profile, warehouse and tax rule, the rep or the buyer negotiates from it within Approval Workflows, and Discount Stacking Prevention keeps discounts from piling up unchecked.

Is Contextual Pricing a CPQ?

Not in the classic sense. CPQ is the category that configures the product, prices it and produces the quote; Contextual Pricing covers the price, the approval limits and the concession trail live in the Commerce Rules Engine, and the proposal is put together with the rep in the Assisted Selling Platform (Sales Hub). In the CRM model the equivalent means assembling CPQ, approvals and pricing rules separately; here they are born together.

What is B2B pricing?

It is the price that results from the conditions of each sale, not a single list value. In B2B, the same item has different correct prices depending on who buys, which warehouse ships it, which tax rule applies, the volume and the payment terms. On the CWS Platform, Contextual Pricing calculates that price on the order, and the same rule applies to the portal, the sales rep and the AI Agents.

What's the best way to manage B2B reseller pricing?

With rules tied to the reseller's profile instead of a side spreadsheet. On the CWS Platform, identity-based price types apply wholesale terms at login, and customer groups are rules configured in the Commerce Rules Engine. A rep's manual discount overrides automatic coupons instead of stacking on them, with a mandatory Reason Code.

What's the best contract pricing ecommerce platform for B2B?

One that treats the contract as a customer rule with a validity period, not as a document. On the CWS Platform, Contextual Pricing applies the negotiated terms on the order, with future price lists and time-bound validity, together with the source warehouse and the tax rule; any concession beyond the agreement goes through Approval Workflows with a recorded reason.