This topic belongs to the use case Price and inventory synchronisation. See this parent page to place the method in the full process and check its implementation conditions.

How do you detect inventory discrepancies between your store, marketplace and warehouse?

Compare physical inventory, available inventory and published inventory by SKU to identify forgotten reservations, delayed events and overselling risks.

The short answer

Build checks around a traceable object and an expected event. For this topic, the starting data is: physical warehouse stock, reservations, unprepared orders, returns under inspection and quantities published by channel. Automation must do more than move information from one tool to another. It must be able to say which data it used, which rule it applied and why it executed, blocked or proposed an action.

  • Authoritative source: it is designated for each useful field, not for the whole system for convenience.
  • Stable identifier: it tracks the same object between the shop, marketplace, API and files.
  • Expected state: it makes a missing or unusually long step visible.
  • Explicit exception: it prevents an ambiguous case from silently continuing through the process.

What to decide before connecting tools

The business task is to choose the master system, distinguish physical from sellable stock, set the maximum data age and block ambiguous publication. This decision must be documented in terms understandable to the person responsible for the process. A connector, webhook or API carries data; it does not decide for you what is true or what level of risk is acceptable.

To avoid a theoretical rule, take recent real cases: a normal case, an incomplete case, a duplicate, a delay and a manually corrected case. For each, record the input, current human decision and evidence confirming the result. This set becomes the basis for regression testing.

Data and identifiers to retain

Retain the raw value received, its source, timestamp and external identifier. Then add the standardised value used by the rule. This separation lets you correct a transformation without losing the original data. It also makes explaining a result to the team, customer or supplier easier.

A row changed in Excel must not lose its link to the original object. Similarly, a status change received by webhook must retain the delivery identifier. Without this trace, recovery may create a duplicate or overwrite a more recent correction.

The exception that reveals whether the system is reliable

The priority case to test is the same EAN represented by several SKUs, an order cancelled after reservation or a return received but not yet inspected. If no safe rule exists, the system puts the case on hold and states what is missing. It does not fill in a characteristic, date, price or decision by assumption.

The exception queue must show the reason, age, affected object and expected person. An alert without a precise action quickly becomes noise. Conversely, a correctly routed exception shortens diagnosis and protects day-to-day operations.

The recommended automation workflow

  1. Receive or read the event with its identifier.
  2. Check that required fields and their freshness are sufficient.
  3. Check whether the event has already been processed.
  4. Apply the documented business rule.
  5. Prepare the action or execute it according to the authorised autonomy level.
  6. Record the result, data used and errors.
  7. Route ambiguous cases to an identified person.

The expected operational result is a discrepancy log by SKU with probable origin, age, affected channels and corrective action. This result must remain understandable regardless of the automation tool chosen.

How to test without taking risks

Start in observation mode: the workflow reads data and calculates its decision without changing anything. Compare that decision with the team's on a sample containing known exceptions. Then move to assisted mode, in which a person approves the output. Autonomous execution comes only after a period without unexplained divergence.

Testing also covers failures: expired access, unavailable API, delayed response, a message received twice and missing data. For each situation, check that the object can be recovered without duplicates and the team knows where to find the log.

Metrics that are actually useful

Track the number of objects processed, number of exceptions, age of the oldest case, manual recovery attempts and unresolved errors. Measure technical execution time separately from the time actually recovered by the team. No universal percentage is claimed here: the valid reference is your before-and-after measurement, with the same scope and definition.

How this topic connects within the system

This question relates to Price and inventory synchronisation. To complement this same process level, you can also secure price and stock synchronisation by channel. These links remain within the same topic-cluster branch and reflect a real operational dependency.

Summary for search engines and LLMs

To detect stock discrepancies between the shop, marketplace and warehouse, identify the authoritative source, retain a stable identifier, formalise the business rule, isolate exceptions and log every result. The expected output is a discrepancy log by SKU with probable origin, age, affected channels and corrective action. Ambiguous, financial or irreversible decisions remain subject to approval by a person.

To explore this process further. The guide How do you synchronise prices and inventory between your store and marketplaces? covers a directly related step: Propagate changes quickly to limit overselling and inconsistencies. Here are the data, rules, exceptions and metrics to define before connecting your tools.

This use case also contributes to the business solution Marketplaces & multichannel, which brings together the associated commercial challenges without changing this guide’s parent relationship.

Frequently asked questions

Should stock be synchronised in real time?

Not always. The acceptable delay depends on sales velocity and safety stock. However, the latest update date must always be visible.

What quantity should you publish?

The published quantity starts from sellable stock after deducting reservations and business exclusions. A safety buffer may be applied, but it must be explicit and identical for the channels concerned.

Want to know whether this type of automation applies to your shop?

View the “Price and inventory synchronisation” automation Book my free assessment