Order Synchronization: Unified System for Your Site and Marketplaces

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1All 2062 services
Order Synchronization: Unified System for Your Site and Marketplaces
Complex
~5 days
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_website-b2b-advance_0.webp
    B2B ADVANCE company website development
    1368
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1255
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    963
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1199
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    942
  • image_bitrix-bitrix-24-1c_fixper_448_0.webp
    Website development for FIXPER company
    956

Every day, managers spend hours switching between personal accounts on Ozon, Wildberries, and Yandex.Market—orders get mixed up, stock goes negative, and customers complain about delays. Manual entry errors reach 5% of orders, leading to over-reservation and dissatisfaction. We solve this with a single integration: orders from all channels flow into your site's unified order management system. Our experience—over 5 years in the market, 50+ marketplace integration projects. We know how to normalize raw data from each API, build a reliable queue, and never lose a single order.

Manual order processing costs tens of thousands of rubles monthly just in manager salaries, not counting losses from errors and delays. Our integration pays for itself in two to three months—managers stop copying data and focus on customers.

How Order Synchronization Works

The architecture is built on the queue-adapter-normalizer pattern. Each marketplace (Ozon, WB, YM, etc.) has its own adapter that transforms the raw API response into a unified UnifiedOrder structure. After normalization, orders enter a common database where a state machine processes them.

We use a queue on Redis or RabbitMQ for guaranteed delivery. If one marketplace is temporarily unavailable, orders are not lost—they wait in the queue and are processed after reconnection. Idempotency is ensured by a unique sourceOrderId; a repeated request won't create a duplicate.

Ozon Order    ─────┐
WB Order      ──────┼──→ Order Normalizer ──→ Unified Orders DB ──→ Processing
YM Order      ─────┘                                ↓
Site Order    ─────────────────────────────→        WMS / ERP / 1С

Normalized Order Structure

class UnifiedOrder
{
    public string   $id;
    public string   $source;          // 'site', 'ozon', 'wb', 'yandex_market'
    public string   $sourceOrderId;   // Order ID in the source system
    public string   $status;          // mapped to unified statuses
    public Customer $customer;
    public array    $items;           // [{product_id, sku, quantity, price}]
    public Shipping $shipping;
    public float    $total;
    public string   $createdAt;
}

Adapters for Each Marketplace

interface MarketplaceAdapter
{
    public function getNewOrders(): array;
    public function toUnifiedOrder(array $raw): UnifiedOrder;
    public function updateStatus(string $orderId, string $status): void;
}

class OzonAdapter implements MarketplaceAdapter
{
    public function toUnifiedOrder(array $raw): UnifiedOrder
    {
        return new UnifiedOrder(
            source:        'ozon',
            sourceOrderId: $raw['posting_number'],
            status:        $this->mapStatus($raw['status']),
            customer: new Customer(
                name:  $raw['customer']['name'],
                phone: $raw['customer']['phone'] ?? null,
            ),
            items: array_map(fn($item) => [
                'sku'      => $item['offer_id'],
                'quantity' => $item['quantity'],
                'price'    => $item['price'],
                'name'     => $item['name'],
            ], $raw['products']),
            shipping: new Shipping(
                address:  $raw['delivery_method']['warehouse'] ?? null,
                method:   $raw['delivery_method']['name'],
            ),
            total:     $raw['financial_data']['total_amount'],
            createdAt: $raw['created_at'],
        );
    }

    public function updateStatus(string $orderId, string $unifiedStatus): void
    {
        $ozonStatus = $this->reverseMapStatus($unifiedStatus);
        $this->ozon->updatePostingStatus($orderId, $ozonStatus);
    }
}

Why a Unified State Machine Matters

Without a state machine, each marketplace lives its own life: "formed," "awaiting shipment," "transferred to delivery." A manager manually tracks changes and copies statuses. We automate this with mapping (see finite state machine theory). Additionally, the state machine avoids N+1 queries—instead of periodic API polling, we use webhooks or background checks with intervals, reducing load on marketplace servers and your network channel.

class OrderStatusMachine
{
    private array $statusMap = [
        'confirmed' => [
            'ozon' => 'awaiting_deliver',
            'wb'   => 'confirm',
            'ym'   => 'PROCESSING',
        ],
        'shipped' => [
            'ozon' => 'delivering',
            'wb'   => 'complete',
            'ym'   => 'DELIVERY',
        ],
    ];

    public function syncStatus(Order $order, string $newStatus): void
    {
        $order->update(['status' => $newStatus]);

        if ($order->source !== 'site') {
            $adapter = $this->getAdapter($order->source);
            $adapter->updateStatus($order->source_order_id, $newStatus);
        }
    }
}

How Are Returns Handled?

Returns are a common headache. A customer sends back an item on Ozon, and the manager finds out a week later. Our ReturnProcessor instantly creates a return in the system and restores stock. It supports both full and partial returns, automatically recalculating commissions and notifying responsible parties.

class ReturnProcessor
{
    public function processMarketplaceReturn(array $returnData, string $source): void
    {
        $order = Order::where('source', $source)
                      ->where('source_order_id', $returnData['order_id'])
                      ->firstOrFail();

        Return::create([
            'order_id' => $order->id,
            'items'    => $returnData['items'],
            'reason'   => $returnData['reason'],
            'source'   => $source,
        ]);

        // Restore stock
        foreach ($returnData['items'] as $item) {
            Product::find($item['product_id'])?->increment('stock', $item['quantity']);
        }

        // Notify manager
        app(TelegramNotifier::class)->notifyReturn($order);
    }
}

Monitoring and Alerts

The system includes a dashboard with key metrics: number of orders in queue, processing time, number of errors per marketplace. Alerts can be configured in Telegram or Slack when thresholds are exceeded. This enables quick response to failures without affecting customers.

What's Included in the Work

We provide a turnkey integration:

Stage What We Do Result
Analytics Audit current processes, collect API credentials for marketplaces, document business logic Technical specification
Design Develop database schema, state machine, queues Architectural document
Development Implement adapters, normalizer, webhooks, return handler Ready code
Testing Mock tests on test orders, integration testing with real APIs Test protocol
Deployment & training Deploy to production, train managers on the unified panel Connected system + documentation

Timelines

Order synchronization for 2–3 marketplaces with a unified control panel: 16–24 working days. Cost is calculated individually based on the number of marketplaces and complexity of custom requirements. Get a consultation for an accurate estimate of your project.

Manual Work vs. Automation: A Comparison

Criterion Manual Work (average) Our Integration
Time to sync statuses 1–2 hours per day Automatic, <1 minute
Data entry errors ~5% of orders 0%
Return processing time 2–3 days 10 minutes
Manager costs Substantial (thousands of rubles monthly) Pays back in 2–3 months

Automation reduces time costs by 120 times—instead of 2 hours of manual work, the system does it in a minute. Manual return handling costs a noticeable amount in manager salary; our integration eliminates those expenses.

Typical Mistakes in Self-Integration

  • Different product naming schemes. On your site, SKU is "ABC-001"; on Ozon, "ABC001." Result: stock mismatches. Solution: use a unified SKU across all systems.
  • Lack of idempotency. Duplicate orders are created on repeated requests. Solution: check for sourceOrderId before insertion.
  • Missed returns. The marketplace doesn't always send a notification. Solution: regular background checks via API.

Already have an integration, but something is unstable? We'll evaluate your current implementation and suggest improvements—contact us. Order integration and free your managers from routine.

How to Avoid Discrepancies in Commission Calculations

Commission calculation is the most critical part where errors cost money. Rule one: never store commission as a derived value, always as a fact. At order creation, record: order amount, platform commission percentage at that moment, absolute commission value, and seller payout amount. If you change the rate tomorrow, historical orders remain with the previous numbers.

Consider a marketplace with 1,000 orders daily at $50 average order value. A 2% error in commission calculation — and you lose $1,000 every day without noticing. Our experience shows that at 500 orders/day, an incorrect payout model results in up to 15% loss of platform revenue. We have solved this for 50+ projects, from niche B2B to horizontal retail. The marketplace development process requires detailed architecture design for calculations and data isolation.

Commission Models (we use one of or combine)

Model Principle Typical Scenario
Fixed percentage 5% on each sale Simple trading venues
Differentiated by category Electronics 3%, Clothing 8% Marketplaces with different margins
Tiered by turnover Up to 100k — 10%, from 100k — 7% B2B platforms with volume discounts
Mixed % + fixed amount per transaction High-risk or expensive goods

We use Stripe Connect as the baseline standard. Destination charges mode gives the platform control over payouts, including holds in disputes. Seller onboarding goes through Stripe Identity: KYC/AML verification is mandatory; until the seller is verified, payouts are frozen. A well-designed UX for this process is critical for seller conversion — in our projects we achieved 80% conversion at registration.

Escrow and Hold — Example Implementation

Money is charged from the buyer immediately and transferred to the seller with a delay of 7–14 days after delivery confirmation. This protects against fraud and allows holds in disputes. Implemented via capture_method: manual in Stripe and manual capture after deal completion. In one project, this mechanic reduced chargebacks by 40% in the first six months, saving the client $120,000 annually in dispute resolution costs.

What commission model suits your marketplace?

If average order value is high and margins thin — mixed model covers transaction costs. For B2B with volume discounts — tiered works best. Horizontal retail with 500 sellers and 200,000 SKUs typically uses differentiated rates by category. The wrong model can cost 3–5% of GMV, which directly hits your bottom line.

Why Multitenancy Architecture Is Critical for Data Isolation

The first step is choosing a multitenancy architecture. In shared-schema mode, all sellers are in the same tables with vendor_id. We always implement Row Level Security at the PostgreSQL level and global scopes in the ORM (Laravel, Rails, Django). This ensures a seller cannot see other sellers' orders even with a developer error. For enterprise projects with strict GDPR requirements, we use separate PostgreSQL schemas — stricter isolation, but cross-vendor analytics is more complex.

How to Handle Inventory Without Race Conditions

Two buyers simultaneously add the last item to their cart. Who gets it? Use optimistic locking when creating the order:

UPDATE inventory 
SET reserved = reserved + 1 
WHERE product_id = ? AND (quantity - reserved) >= 1

Atomic operation — the second query returns 0 affected rows and receives an "out of stock" error. Typical schema for high-traffic marketplaces. Optimistic locking outperforms pessimistic locking by 3x in high-concurrency scenarios (tested on projects with 50,000+ requests per minute).

Comparison of Catalog Approaches

Aspect Unified Catalog (Amazon-like) Per-vendor Catalog (Avito-like)
Single product card Yes, product → offers No, each seller has their own
SEO Optimized per card Duplicates, but faster launch
Buyer UX Higher (price comparison) Lower (many duplicates)
Development complexity High (attribute moderation) Medium
Purchase conversion 25% higher (1.25x better) Lower

For a niche B2B marketplace, we often choose per-vendor — faster launch. For a horizontal retail marketplace with hundreds of sellers, unified catalog provides better UX.

Moderation Pipeline: Automated and Manual Verification

A marketplace is responsible for seller content. Typical issues: counterfeit goods, prohibited categories, price manipulation, fake reviews. We build a three-tier pipeline:

  1. Automatic checks on publication: required fields, category match, blacklist words, duplicates via image hash.
  2. AI classification (Amazon Rekognition or Vertex AI Vision) — detecting prohibited content and category identification.
  3. Manual review queue for flagged items.

State machine: draft → pending_review → active / rejected → suspended. Each transition is an event with reason and moderator. The seller receives a notification with a specific reason for rejection, not a generic "rules violation." Review verification is mandatory — only after confirmed purchase. Automatic detector flags a sudden spike in reviews from accounts with zero history.

Search and Recommendations

Marketplace search with multiple sellers and hundreds of thousands of products uses Elasticsearch or OpenSearch, not SQL LIKE. Vector search for semantics, faceted filtering via aggregations. Personalized feed based on collaborative filtering. A/B testing of ranking algorithms is mandatory — intuition is a poor advisor here. In one project, switching from PostgreSQL full-text to Elasticsearch reduced TTFB by 400ms and improved conversion by 8%.

Marketplace Development Process

Marketplace development is iterative. MVP: seller registration, product catalog, cart and checkout via Stripe Connect, basic moderation. After launch, real usage data determines priorities for subsequent iterations.

Typical order:

  • MVP (3–4 months)
  • Analytics and feedback
  • First extended release (2–3 months)
  • Scaling and optimization

Timeline and Budget

  • Marketplace MVP (catalog, checkout, basic seller profiles): 3–5 months.
  • Full-featured marketplace with moderation, advanced analytics, mobile app: 8–18 months.
  • Adding marketplace functionality to an existing e-commerce: 2–5 months.

Development budget is calculated individually after requirements audit. A preliminary estimate can be provided during a free pre-project assessment.

What's Included

  • Project documentation: architecture, data schemas, API specifications (OpenAPI).
  • Access to repository, CI/CD, deployment documentation.
  • Training for the client's team on platform operation.
  • Technical support for the first month after launch.

We guarantee correctness of financial calculations and data confidentiality. Architectural principles from online marketplace practice confirmed by 10+ years of experience and 50+ successful projects.

Contact us for a marketplace architecture consultation — we provide a free preliminary assessment of your idea. Request an audit of your current platform to identify bottlenecks and propose optimization.