How to handle customer-specific pricing in e-commerce
Peter Nilsson 
You have signed the quote for your new customer portal. When the first customer orders, the portal shows one price and the order confirmation another. Sales points to the contract, finance to the business system and the supplier to the latest price import.
Customer-specific pricing in e-commerce needs one shared explanation across the whole order chain. The price list can be correct while the systems pick different rules or use different versions. So you need to decide how the price is chosen, when it is updated and how the decision is stored.
Five pricing models and what each one requires
Start by telling the models apart. A published standard price, a negotiated discount and a behaviour-based offer need different underlying data.
A standard price is based on a published price list that every customer sees. A customer agreement is based on terms that have been negotiated and registered in the business system, and the customer needs to see the validity period, currency, unit and minimum order quantity. Customer groups start from segments in the customer register, and the group's terms should be visible to the customers in the group. Volume tiers are driven by the number of units per order, so the tiers and unit prices need to be clear before the customer orders. An individual price is calculated from customer data or behavioural data for a single visitor and requires information about the automated personalisation before the purchase.
Customer agreements are common in business-to-business trade. The same item can be sold with different discounts, currencies, shipping terms and payment terms. The negotiated terms need to carry through when customers order on their own. Which information you are legally required to show needs to be assessed for your particular sales.
An agreed price is based on terms both parties have accepted. An individual price can be calculated from the visitor's behaviour or other personal data. The difference affects both the information before purchase and which data you need to process.
Customer groups also need some thought. A group for resellers with shared terms is easy to explain. A group created from assumed willingness to pay needs to be reviewed on different grounds. What the group is called in the system does not decide how the pricing logic should be assessed.
Place every existing rule in a model before you choose functions. That makes it clearer which terms already exist in the business system and which ones you actually need to introduce.
Let the business system own the agreed prices
The business system should normally own customer-specific agreed prices. That is usually where the customer register, agreements, price lists and invoicing data live. If the website calculates the same discount itself, you end up with parallel calculations that have to be kept in line with every change.
The chain starts with the customer's identity and permissions in account management. The business system supplies the price and discount terms. Product descriptions and attributes come from PIM. The order is sent back to the business system, and the confirmation needs to show the price that was accepted.

You can fetch the price through a system call at login or when a product is viewed. That keeps you close to the current terms, but makes the customer experience depend on the business system's response time. The alternative is replicated price lists with a short cache lifetime and clear version control.
Say an agreement changes while the website is still using yesterday's copy. The customer orders at the old price, while order intake calculates with the new one. A working integration therefore needs to state when the copy becomes invalid and what happens to purchases already in progress.
Statistics Sweden's figures on automated information exchange break the area down by system and company group. That helps you be precise about what you mean by integration. A manually uploaded file and an automatically monitored transfer need different working routines.
Give every field an owning system and document how other systems may use the value. Map customer number, price list, currency, unit and validity separately. Product data from PIM also needs to use the same item identity as the price flow.
How the right price rule is chosen at each step
A useful starting point is customer agreement first, followed by customer group, volume tier, campaign price and standard price as the fallback. The order is a business decision that you need to approve. A campaign could, for example, take precedence if the agreement explicitly allows it.
The rule selection has to be deterministic. With the same customer, item, quantity, point in time and rule version, the calculation should give the same result. Then the product view, cart, quote and order confirmation can all use one shared calculation model.

First, the system checks whether the customer has a valid agreement for the item. Say a logged-in reseller has both their own agreement and membership of a customer group. With the suggested order, the agreement is chosen. The group discount is only added on top if you have explicitly allowed the combination.
Next, the customer group is tried when no applicable agreement exists. If the group has no terms, the order quantity is compared with the volume tiers. The calculation needs to use the right unit. Otherwise number of packs and number of pieces can give different discounts for the same order.
When a campaign is active, the system checks whether the customer is entitled to the offer. A lower campaign price may replace the agreed price only according to the rule you have decided. If no applicable rule exists, the standard price is used, provided the customer is allowed to order at it.
An agreement can also expire while the customer is filling the cart. Decide whether the price should be locked for a set validity period or recalculated before the order is placed. If it is recalculated, the customer needs to see the change and accept the current amount.
So three decisions need to be in place. When an agreement and a group rule hit the same item, you decide which rule wins and whether discounts may be combined. When the agreement expires during the purchase, you decide when the price is checked again. When a campaign gives a lower price, you decide whether the campaign may replace the customer's agreement.
The price response should carry customer identity, agreement identity, validity period, currency, unit and source. Also store the rule version and which rule was chosen. Then write your own priority order and test it against a real order with overlapping terms.
The customer sees a price, and you have to be able to prove it
A customer calls and says the item cost less last week. The same item may also show at different prices on a phone, in a private browser window and on a work computer. If the difference comes from an agreement or from automatic adjustment based on the visitor's data, you need to be able to explain it. An amount that changes without explanation looks like an error, and a negotiated price without supporting evidence becomes a dispute.
For a negotiated customer agreement, the portal needs to present the terms so the buyer can use them correctly. Show the validity period, currency, unit and any minimum order quantity. Also state what happens when the agreement expires, for example that a new price needs to be approved before the next order.
Different customers seeing different prices is not illegal in itself when the difference is based on negotiated agreements. An academic paper published by the Swedish Competition Authority (in Swedish) discusses personalised pricing and the risk of unequal treatment.
Still, keep the documentation separate: agreed prices are justified by the agreement, and any profiled prices by the decision rule that was used. Limit access to customers' price data through login and permissions, and have a legal adviser assess discrimination risks and personal data processing for your particular setup. A stored price shows what the order cost. To explain why, you also need the data behind the calculation.
Simulate new price rules against representative orders before they are published. Test a customer with an agreement, one without and one where several terms overlap. At the same time, review how campaign prices and any comparison prices are presented, because a reduced amount also has to be traceable to the rule that reduced it.
At the price decision, the system should store customer, agreement version, currency, price rule, quantity and timestamp. Link that data to the order line and the price version the customer accepted. When the customer then calls about the price, authorised staff should be able to open the order line and see exactly which rule won, without requesting a separate technical investigation.
The trail needs to cover both sides of the transfer. When the business system sends one price and the website shows another, the discrepancy should land with a named owner. An exception queue needs to show the affected order, expected price, received price and next action, and whether the order should be stopped, approved manually or handled under an explicit exception.
In a digital customer portal, the customer's view and the staff's control view need to fit together: the customer should see understandable terms and staff the data needed to investigate them. Finally, give every price rule an owner and an expiry date, or a documented decision that it stays valid.
You have to maintain the price rules after go-live
Agreements expire, customers change groups and campaigns end. An upgrade of the platform or the business system can also change how price data is sent between systems. So make the pricing function part of ongoing maintenance from the start, so you catch errors before a wrong price reaches a customer.
Appoint someone on your side to own the content of the price lists. State separately who is responsible for the transfer working. Sales can decide on the terms, while the technical owner follows up errors and delayed updates.
After a new platform version, you should run saved test orders with known expected results. The tests need to cover customer agreements, volume tiers and campaigns. Also check expired terms and interruptions in the price transfer.
The business approves the terms, and the price owner confirms that the calculation matches the agreements. Maintenance checks the flow, with the technical owner following transfers, error handling and version support. Customer service needs a way of working for how a disputed price is investigated and who decides on a correction.
Glanser Care is a contracted responsibility at a fixed monthly cost that covers version tracking, compatibility through upgrades, maintenance of the integrations with the business system and bug fixing. Your own organisation still needs to own the business terms and approve changes to them.
A setup like that suits you when you want to place the technical responsibility with a long-term supplier. An in-house team can work just as well if it has the skills, time and mandate. The overview of e-commerce integrations helps you pin down what the team needs to keep an eye on.
Set a fixed, recurring review of changed rules, agreements about to expire and test orders that showed discrepancies. That gives every maintenance meeting concrete material to work from.
When customer-specific pricing is not the right solution
Every extra price rule adds more combinations to test and more terms to explain. A shared price list can therefore be the better choice when customers have similar terms. The complexity needs to match a real difference in how you sell.
If you have a few customers with similar terms, a shared price list is often enough. A reseller portal with individual agreements needs agreement logic in the business system, and price rules per customer group when shared group terms are used. A group of companies with several entities and currencies needs agreement logic for the agreed prices and group rules where the groups drive the terms. Company structure and currency alone do not automatically create a need for customer groups.
A reseller portal may need individual agreements together with shared group terms. In a group of companies, the price also needs to be tied to the right selling entity. Currency conversion, rounding and validity then need to be decided before the customer orders.
If the business system does not deliver prices fast enough, you need to secure the transfer first. More rules make it harder to work out why a price went wrong. It can be wise to start with a limited range or fewer agreement variants.
A misjudged integration can also change the project's scope. Boundaries discovered late often lead to extra work and a new estimate. So describe the exceptions in the price flow before you lock the scope.
Personalisation based on behavioural data needs its own legal basis and a separate assessment of personal data. Start by deciding which business situation is closest to yours. Then choose the simplest pricing model that handles your real terms.
Two questions to ask the supplier
The first question is about the price's route to the order. Where is the price fetched when the order is placed, and what happens when the business system does not respond? Ask for a concrete sequence where the connection drops just before the order.
The answer should show whether the purchase is stopped, gets an explicitly valid fallback price or is left for manual handling. "The integration usually works" is a non-answer. Then you carry the risk for every incorrect order value until the routine is decided and tested. A demo with a deliberate outage says more about the fallback routine than a successful standard order.
The second question is about priority between rules. Ask the supplier to set up a customer where two rules overlap, for example an individual agreement and a shared group term. Have them show which price applies in the product view, in the cart and on the placed order. Then ask where in the admin the priority order is set and who has permission to change it.
A good answer is demonstrated on the spot. The rules, the order and the result are visible in the system without preparation. A weak answer is a description on a slide or an assurance that overlaps are handled automatically. If the priority cannot be shown, you need to test it yourselves, in every channel, before the delivery is approved.
Send the questions together with the requirements specification and ask for the answers to be linked to demonstrated functions, documented exceptions and named roles. A supplier who only describes the solution is asking you to buy the behaviour without having seen it.
Take the next step with your pricing structure
Pick a real customer and a recently placed order. Put the customer's agreement next to the price in the product view, the cart and the order confirmation, and trace which data was used at each step. A single deviating price is enough to show whether the error comes from the rule order, the sync from the business system or the record of which price was shown.
Mark where answers are missing: the agreement version, the time of the latest price update, who approved the exception and where the decision is stored. Those gaps are more concrete than a general wish for smarter pricing.
Gather a representative agreement, the current price list and an example where two rules can collide. Put your agreed priority order next to them and write down which price should win and who may approve exceptions. The material should make sense to finance, sales and the system owner.
First show the normal flow, with an order where the right price reaches all the way to the order confirmation. Then show the exception, with an expired agreement, a campaign or a delayed price update. Finally show the trail, meaning where you find which rule won and which agreement version it was based on.
In a 72-hour analysis, you set aside two hours, and within 72 hours you get an inventory of functions and integrations, a functional specification, a prototype and a complete cost picture with a timeline, free of charge.

About Peter Nilsson
Peter Nilsson writes about integrations and product information, focusing on how business systems, PIM and the web can share the same data without duplicated work.

How to choose a PIM system based on your needs and current setup
How to compare PIM systems against your requirements and real product data.
Peter Nilsson 
Pyramid integration that syncs orders, stock and prices
How to keep Pyramid and your website in sync on prices, stock and orders.
Peter Nilsson
How to govern product information across every channel
How to structure product information so every attribute has an owner and a source.
Peter Nilsson