Back to Blog
Integrations & systems

How to diagnose inventory mismatches between ecommerce and POS

A practical guide to investigating overselling, inconsistent stock and delayed updates between an online store and point-of-sale system. Review the source of truth, identifiers, latency, integration errors and recovery controls before deciding on a fix.

Published 5 min read

A customer buys the last available unit online, but it has just been sold at the physical store. The ecommerce platform confirms the order, only for staff to discover that it cannot be fulfilled. The reverse is also common: the website marks an item as unavailable while units remain on the shop floor.

Inventory mismatches between ecommerce and POS create more than cancellations. They lead to manual checks, corrective data entry and uncertainty about which system reflects reality. “Faster syncing” is not automatically the answer. The first task is to find where the records diverge and why they fail to converge again.

Define the symptom before changing the integration

“Our stock is wrong” is too broad to guide an investigation. Capture specific examples, including the product, variant, location, expected quantity, displayed quantity, transaction time and systems involved.

Common symptoms include:

  • Overselling shortly after an in-store transaction.
  • Products shown as unavailable online despite physical stock.
  • Differences affecting only certain sizes, colours or other variants.
  • Quantities that are corrected but later drift again.
  • Returns, cancellations or transfers appearing in only one system.
  • Updates that work normally but fail during busy periods.

It is also important to distinguish on-hand stock, available-to-sell stock, reserved stock and stock in transit. Two platforms may display different numbers without a technical failure if they calculate availability differently. Agree on which quantity should match before diagnosing the connection.

Establish the source of truth

The first architectural question is which system owns the inventory record. It might be the POS, ecommerce platform, ERP or a central inventory service. If several systems can overwrite the same quantity without clear rules, valid updates may undo one another.

Map what happens when the business completes an online sale, in-store sale, return, cancellation, goods receipt or manual adjustment. For every event, identify:

  1. Where it originates.
  2. Which quantity changes.
  3. Which system should receive the change.
  4. How successful processing is confirmed.
  5. What happens if processing fails.

This exercise often reveals unclear ownership. For example, the online store may reserve a unit when an order is placed, while the POS reduces stock only after payment. Without a shared rule, both channels can temporarily treat the same unit as available.

Check product and variant identifiers

Many apparent synchronisation failures are identification problems. A product might have one code in the POS, a different internal ID in the online store and separate SKUs for each variant.

Verify that every sellable variant has one unique, stable mapping. Look for duplicate SKUs, empty fields, invisible spaces, case differences, reused codes and products created manually in only one platform. Bundles need additional care: selling one kit may need to reduce several component quantities.

Avoid patching these issues with fuzzy matching based only on product names. An explicit mapping table, validated before an item becomes active, is generally safer and easier to audit.

Measure latency, ordering and missing events

An integration may be operating correctly but updating too late. Measure the interval between the original transaction and the stock change appearing in the other system. Use timestamps and logs rather than relying on occasional visual checks.

Next, examine how updates move. Some integrations send events immediately; others poll for changes at intervals or process them in batches. No single method is always right. The required frequency depends on sales volume, stock turnover and the risk associated with selling the final units.

Processing order matters too. If an older update arrives after a newer one, it can restore an outdated quantity. Messages should carry enough information to identify late, repeated or out-of-order events. Idempotent operations—updates that can be retried without subtracting the same unit twice—also reduce duplication during recovery.

Inspect errors and recovery behaviour

Do not stop at checking whether the integration is switched on. Find out how it responds to API limits, expired credentials, invalid data, network interruptions or temporary platform outages.

A resilient workflow should record the error, retain the pending operation, retry when appropriate and alert a person when automatic recovery is unsuccessful. If a failed update disappears silently, the stock records will remain inconsistent until someone notices and intervenes.

Use the logs to answer specific questions:

  • Did the source system create the event?
  • Did the integration receive it?
  • Was it mapped to the correct identifier?
  • Did the destination accept or reject the update?
  • Was there a retry, duplicate or later correction?

AI may be useful for classifying error messages or summarising a large set of logs. Stock movements themselves, however, should rely on deterministic rules and verifiable controls. Sensitive adjustments and unusual exceptions still require human review and an audit trail.

Match the remedy to the cause

Not every mismatch calls for replacing a platform. If the cause is an incomplete SKU table, repair the data model and introduce validation. If latency is too high, change the polling frequency or use event-driven updates for critical movements. If transactions are being lost, add queues, retries and alerts. If several systems claim ownership, resolve that governance problem before adding more automation.

A scheduled reconciliation process is also valuable. Compare quantities across systems, flag differences and provide a controlled method for investigating and correcting them. Reconciliation is not a substitute for reliable integration, but it catches residual drift and improves operational visibility.

Start with one location, product category or group of troublesome SKUs. For a limited period, trace every relevant movement and measure discrepancies, propagation time, errors and manual corrections. This creates evidence for a targeted fix before changes are rolled out across the full catalogue.

If you need to locate where your ecommerce-to-POS inventory flow breaks down, Cibercoding can help review the integration and identify a proportionate improvement.

Topics

  • Inventory
  • Ecommerce
  • Point of sale
  • Integrations
  • Retail
  • Automation