Dynamic pricing on the website: it is a system where price automatically adjusts to demand, competitors and profitability constraints. It encompasses two basic paradigms: demand-based pricing and competitor-based dynamic pricing. The first relies on buyer behavior, seasonality, inventory and lead time. The second relies on monitoring competitors’ prices and their changes. The combination of these signals forms a pricing strategy that manages profit, not just revenue.
Для интернет-магазина выгоды ощутимы: рост маржи и GMV, улучшение конверсии благодаря релевантной цене, повышение AOV через пакетирование и перекрестные скидки. Руководство получает прозрачность в метриках и управляемость, маркетинг, новый рычаг эффективности кампаний, коммерческий отдел, инструмент переговоров с поставщиками. В B2C работает yield management для распродаж и flash sales, а в B2B – договорные прайс-листы с динамическими дисконтом и ценовыми гейтами под объем и SLA поставки.
Demand- and competitor-based pricing

The “price = function of demand” model is built on sales forecasts and elasticity. I rely on time series, user behavior (view/cart/checkout), inventory levels, lead time and seasonality. The advantage is a focus on real customer value and resilience to short market spikes. The limitation is the need for a quality forecast and good data coverage for new SKUs.
The “price = function of competitor feeds” model uses monitoring of competitors’ prices, their availability and delivery terms. Its strength: responsiveness and market relevance; useful for categories with high product comparability (electronics, pharmacy items with identical INNs). To avoid losing margin, BUSINESS SITE specialists configure repricing rules taking into account price floor/ceiling, competitor availability status and the cost of delivery to the customer (Nova Poshta and courier rates).
Combining demand and competitor signals in a single formula yields better results. For example: base price = price from the demand model; then adjustments: −x% when lagging behind the market median and +y% with low inventory and increased lead time. In impulse-demand categories we focus on conversion; for products with D2C characteristics: on LTV and retention.
For new items (cold-start) we apply analogues: nearest SKUs by attributes, clusters by brand/category, and also conservative guardrails with manual override. In our experience, this approach shortens the model training period and reduces the risk of being “too cheap” in the first weeks.
Pricing: repricing, real-time and promo

Static repricing – when the system updates prices on a schedule (for example, once a day). Periodic repricing – more often, every 15–60 minutes for categories where the market is dynamic. Real-time pricing on the site: a response for SKUs with rapidly changing demand and competitive activity; here latency requirements are important: 50–300 ms for calculation and publication.
Guardrails: the foundation of resilience. Minimum and maximum price (price floor/ceiling), elasticity caps (limits on change per unit of time), brand protection (MAP, minimum advertised price), as well as margin gates protect against price wars. BUSINESS SITE practice confirms: clearly defined rules reduce margin variability and stabilize unit economics at the SKU level.
Promo campaigns and flash sales benefit from managing discounts in real time. I set rules based on triggers: stock levels, sell-through rate, promotion timing and target KPIs for AOV/GMV. Markdown optimization helps the commerce team determine the price reduction trajectory to clear inventory without “shooting yourself in the foot”. Additionally, bundles, targeted discounts on accessories and “buy together” logic help increase AOV.
Dynamic pricing algorithms

The arsenal ranges from simple rules to complex ML approaches. ARIMA and Prophet work well for short-term forecasts and seasonality: they are interpretable and quick to deploy. When there are nonlinearities and feature interactions (traffic channels, competitors, stock levels) — use XGBoost/LightGBM or RandomForest. For complex patterns with long memory: LSTM/GRU, and for multi-period margin and stock optimization: reinforcement learning. Bayesian optimization is appropriate for fine-tuning a single price across many factors.
Model choice – a balance between explainability and performance. Management values explainability and an audit trail; the commercial side cares about accuracy and speed of response. At BUSINESS SITE we often start with a hybrid scheme: Prophet + rules, then add gradient boosting and, as data grows, move to RL on specific categories.
Feature engineering is half the battle. I include seasonal features (day of week, promo calendar), stock levels and lead time, competitor feeds, user behavior (views, add-to-cart), shipping costs, as well as external factors (holidays, weather indicators for specific categories). Models are protected from drift by regular retraining, rolling data windows, monitoring of quality metrics and alerting on deviations.
Examples of models and selection criteria
- ARIMA/Prophet for seasonal products (for example, lab tests with weekday peaks): high interpretability, fast deployment, MAPE < 15%, a realistic target for stable SKUs.
- LSTM/GRU for complex categories (electronics with demand waves from releases): better captures nonlinearity and lagged effects, while requiring careful drift control.
- RL for multi-period margin optimization (travel packages, limited slots): the policy adjusts price taking into account future inventory states and elasticity.
- Quality metrics: RMSE/MAPE for forecasting, uplift and incremental margin for assessing the impact of pricing decisions. In C-level reports we record increases in contribution margin and GMV taking promo budget into account.
Infrastructure for real-time pricing

The pricing engine architecture is built as a set of microservices: a forecasting module, calculation logic, a rules and guardrails service, a margin underwriter, and a publishing gateway to the storefront. For fast event exchange, queues and streaming (Kafka, RabbitMQ), a separate caching service (Redis) for prices, SLAs for latency and fault tolerance.
Data sources: CRM, ERP, BI, web analytics, external competitor feeds and marketplaces (Rozetka, Prom.ua). For transactions: OLTP (PostgreSQL/MySQL), for analytics – an OLAP warehouse (ClickHouse, Amazon Redshift). A feature store is useful for feature consistency between offline training and online inference.
The ETL/ELT pipeline includes data cleaning, deduplication, anomaly detection, SKU attribute reconciliation, normalization of competitor prices taking into account shipping and payment methods (PrivatBank, Monobank installments). Logging of decisions and an audit trail are mandatory: the reason for a price change, model version, applied rules and circumstances (time, segment). For monitoring and alerting, Prometheus and Grafana are suitable with dashboards for latency, error rate, share of overrides and quality metrics.
Integration of ERP, CRM and marketplaces

Synchronization of dynamic prices with ERP/CRM and the warehouse takes into account stock levels, reserves and lead time. I recommend setting SLAs for updates: for example, up to 5 minutes when stock changes and up to 60 seconds for categories in promotions. Omnichannel pricing synchronizes prices between web, mobile, marketplaces and offline, holding differences where necessary due to marketplace commissions.
Updating prices based on competitors
Collecting competitive prices is possible via scraping, public APIs and external feeds. It is important to consider parsing limitations and rate limits, as well as the legal aspects of using data from websites. For request resilience we anonymize and rotate proxies, comply with robots.txt and platform terms, and also use caching.
Automatic price updates taking competitors’ APIs into account operate with time lags: it is recommended to apply exponential smoothing and consistency checks (product availability at the competitor, actual shipping cost, currency and taxes). Anti-fraud: we detect manipulations: “bait” prices, sharp jumps, unnaturally frequently changing offers. I build in anomaly detection and quotas on price changes per unit of time.
Price testing: A/B and elasticity
A/B tests and micro-pricing experiments are the standard for validating hypotheses. I stratify samples by traffic source, new/returning user, region, and SKU margin. Metrics: conversion, AOV, GMV, contribution margin, share of discounts, and incremental profit. To correctly interpret results we control covariates (seasonality, promotional activity) and apply CUPED or stratified analysis.
Price elasticity analysis by segments forms the basis for personalized pricing on the website. Segmentation by price sensitivity, LTV, and purchase frequency helps tune ranges and the frequency of changes. To minimize cannibalization, I set guardrails between SKUs and bundles, and I use the anchor price effect deliberately: for example, by displaying a reference ‘regular’ price and its validity period.
KPIs and ROI of dynamic pricing
Basic KPIs: margin (gross and contribution margin), GMV, AOV, conversion rate, retention, LTV. Additionally I track the share of SKUs with “optimized” prices, update speed, share of manual overrides and the stability of the pricing logic.
Формула ROI: ROI = (Incremental Margin − Project Cost) / Project Cost. Пример: при дополнительной марже 1,8 млн грн за 6 месяцев и затратах 0,9 млн грн ROI = 100%. Payback period = Project Cost / Monthly Incremental Margin. Если ежемесячно дополнительная маржа 300 тыс. грн, окупаемость – 3 месяца. Инкрементальные продажи считаем через holdout-группы или geo-experiment, а влияние на LTV – через когортный анализ.
Legal risks of price wars
Price wars and legal risks: a reality that can be conveniently controlled. As a preventive measure we use guardrails: price floors, ceilings, elasticity caps, as well as strategic monitoring of competitors’ reactions and coordinated promo calendars with suppliers. BUSINESS SITE specialists build in mechanisms that preserve margin during aggressive market dumping.
Operations management: team and launch
A successful launch is a team sport. Roles: pricing PM, data science, backend/ML engineers, devops, BI analyst, lawyers and marketing/commerce representatives. C-level sets the boundaries for goals and risks. Governance processes include approval flows for new rules, procedures for manual overrides, SLAs on price changes, and retrospectives after major promos.
Technical debt during rapid automation is managed through a roadmap: prioritization of high-risk areas (logging, rollback, monitoring), regular refactoring of ETL and testing of rules. At BUSINESS SITE we practice “quality by default”: metrics, alerts, canary deployments and on-call rotations: all of this is part of the initial scope.
Scaling: pricing, localization
Scaling pricing to international markets raises questions of price localization: taxation, shipping, currencies, exchange rates, and local competition rules. In the pricing calculation logic, I account for fulfillment costs, logistics tariffs, and marketplace commissions. Omnichannel synchronization ensures consistency of price and promotions across channels, even when offline fees differ.
Implementation case studies: examples and pitfalls
- Pharmaceutical distribution (eCommerce): demand-driven model + competitive feed for key SKUs and guardrails by INN. Result in 90 days – +4.2 pp to contribution margin, GMV +12%, MVP payback 2.5 months. Lesson: adjustments for competitor availability and fast-delivery costs (Nova Poshta) sharply reduce “false” price drops.
- Online consumer electronics store: periodic repricing every 30 minutes + markdown optimization for the assortment tail. AOV +7%, turnover of slow-moving stock accelerated by 18 days, rollback incidents – 0 thanks to canary deploy. Lesson: prioritize SKUs with high brand recognition and frequent price comparisons.
- Travel packages (agency): RL approach for departure and hotel slots, synchronized with the promo calendar. Yield management delivered +9% to margin in the peak season with stable NPS. Lesson: training the policy in a simulator reduces risks before live deployment.
- B2B construction materials: contract prices with dynamic volume-based discounts, shipping SLA and raw-material indices. Lead-to-order conversion +11%, contract margin predictability improved. Lesson: manual override and price-list versioning, a mandatory workflow for negotiations.
Roadmap from MVP implementation to scaling
- Data and hypothesis preparation: audit of CRM/ERP/BI, source map, alignment of SKU attributes, definition of target KPIs and guardrails. Hypotheses are formulated with success metrics.
- MVP: demand model (Prophet/XGBoost) + rule-based system for competitors, logging and audit trail, limited pilot on 5–10% of assortment.
- Pilot: A/B test with holdout, metrics: GMV, margin, AOV, conversion, share of manual overrides, SLA stability. Optionally, micro-pricing experiments within elasticity caps.
- Scaling: enabling real-time for categories with fast cycles, integration with marketplaces, implementation of a feature store and scheduled retraining, adding RL for selected use cases.
Timeline: 6–10 weeks to MVP, 8–12 weeks to scaling. Budget depends on integration complexity and assortment size. Go/no-go criteria: positive uplift in contribution margin, SLA < 300 ms for calculation/publication, rollback share < 1% of changes. Change management includes team training, override policies and SLAs for adjustments. After 3/6/12 months, review ROI and strategy.
Frequently asked questions and answers
– Which KPIs should be tracked when launching dynamic pricing? Primary: contribution margin, GMV, AOV, conversion. Secondary – share of SKUs under management, SLA for updates, share of overrides, retention/LTV. Threshold values are set by category and growth strategy.
– What price update frequency is optimal for an online store? For highly comparable products: 15–60 minutes; for promotions and flash sales: real-time with latency up to 300 ms; for stable SKUs – 1–2 times per day. I recommend aligning with the demand fluctuation cycle and competitors’ updates.
Conclusion and CTA
Dynamic pricing is a direct profit-control tool that connects demand models, competitive signals and clear pricing rules. The business wins on margin, GMV and AOV, the product team — in experiment velocity, and leadership — in ROI transparency. Technically, the project relies on a pricing engine with a microservice architecture, OLAP/OLTP stores, a feature store, monitoring and an audit trail, as well as governance processes and a trained team.










