EN
Connecting an Online Store to an ERP: Products, Prices, Stock and Orders
16.10.2026

Integration projects rarely fail on technology. They fail because nobody decided which system owns each piece of data. Here is how to make that decision before anything is built.

Businesses that run both an online store and an accounting or ERP system eventually reach the same conclusion: maintaining the same information in two places by hand is not sustainable. Someone updates a price in one system and forgets the other. Stock says five online and two in the warehouse. An order arrives by email and gets typed in again by a person.

The obvious answer is to connect them. What is less obvious is that the difficult part of that project is not technical. Connecting two systems is routine engineering work. Deciding what the connection should actually do — that is where projects succeed or quietly fail.

This article walks through the decisions that determine whether an integration works, in the order you should make them.

The question that decides everything: who owns the data?

Every piece of information that exists in both systems needs one owner. Not two, not "whichever was updated last" — one system where the value is correct by definition, and one or more systems that receive it.

Without this rule, the two systems will eventually disagree, and when they do, nobody will know which one to believe. Worse, well-meaning staff will start correcting values in whichever system they happen to be using, which guarantees the disagreement continues.

The rule does not have to be the same for every field. It is entirely normal for the ERP to own prices and stock while the store owns product descriptions and photographs. What matters is that each field has exactly one owner and everyone knows what it is.

DataUsually owned byWhy
Product codeERPIt is the key everything else is matched on
PriceERPTied to purchasing, margins and accounting
StockERP or warehousePhysical reality lives there
Description, photos, SEO textStoreWritten for customers, not for accounting
OrdersStore, then passed to ERPCreated by the customer
Order statusERP, shown in the storeChanges as the warehouse works

Matching: the detail that quietly breaks everything

Two systems can only exchange data about a product if both agree on what identifies that product. This sounds trivial and is the most common cause of integration failure.

The store may identify products by its own internal number. The ERP uses an article code. Somebody exported a spreadsheet at some point and the codes have trailing spaces, or leading zeros that a spreadsheet removed, or the same item exists twice under slightly different codes.

Before any development begins, take a sample of a hundred products and check that each exists in both systems under a code that matches exactly. The cleanup this reveals is tedious and unavoidable, and doing it first is far cheaper than discovering it when prices start landing on the wrong products — a failure that is visible to customers before it is visible to you.

An integration is only as reliable as the codes it matches on. Clean the codes first; everything downstream depends on it.

How often should data move?

The instinct is always "live" — but real-time synchronisation costs more to build and more to run, and many businesses genuinely do not need it.

Prices and product data usually change slowly. Synchronising them a few times a day is almost always sufficient, and nobody notices the delay. Stock is different: how fresh it needs to be depends entirely on how fast it moves and how damaging an overselling incident is. A furniture shop can tolerate an hour; a shop selling a limited stock of fast-moving items cannot.

Orders should move immediately in one direction — from the store into the ERP — because everything downstream waits on them. Status updates can move back on a schedule without harm.

There is a cost to choosing "live" everywhere that is rarely discussed: every synchronisation is a request against both systems, and an ERP that is comfortable with a few hundred requests a day may behave very differently under continuous load. If your ERP is shared with accounting work, ask what happens to it during month-end closing before you commit to constant traffic.

The most economical design is usually mixed: real-time data synchronisation where it genuinely matters, scheduled transfer everywhere else.

What happens when the other system is unavailable

This is the question that separates integrations that survive from those that need constant attention. Systems go offline. Networks fail. The ERP is restarted for maintenance on a Saturday evening.

Decide in advance what the store does when it cannot reach the ERP. Does it accept orders anyway and send them later? Almost always yes — refusing orders because an internal system is down is the worst possible outcome. Does it show the last known stock figure, or hide availability? Usually show the last known value, with a short expiry.

Equally, decide what happens when a transfer fails halfway. The rule that prevents most damage is that operations must be repeatable without causing duplicates: sending the same order twice should result in one order, not two. Systems built without this rule generate double entries at exactly the worst moments, and cleaning them up by hand can take longer than the outage itself.

Orders: the flow worth mapping in detail

Most of the value of an integration sits in this one flow, so it deserves more than a line in a specification.

Map it as a sequence of events: the customer pays, the order is created, stock is reserved, the order reaches the ERP, the warehouse picks it, the status changes, the customer is notified. For each step write down which system acts, what happens if it fails, and who finds out.

Pay particular attention to reservation. If stock is only reduced when the warehouse processes the order, everything sold in the intervening hours is sold from a number that is no longer true. If it is reduced at checkout, you need a rule for abandoned and cancelled orders so the stock returns. Neither approach is wrong, but choosing neither is.

Returns, cancellations and partial deliveries

These cases are boring to specify and are where integrations most often fall apart in the second month.

A cancelled order has to return stock. A partial delivery has to leave the remainder recorded somewhere sensible. A return has to reverse both the stock movement and, usually, a payment. Each of these touches two systems, and if the behaviour was not defined, staff will improvise — differently each time.

Write these three scenarios out before development. They take an afternoon to define and save months of manual correction. The test of whether you have defined them well is simple: could a new employee read your description and handle a return correctly on their first day, without asking anyone?

Who notices when something goes wrong?

Integrations fail silently. That is their defining characteristic. A price stops updating, and nothing visibly breaks — until a customer buys at last month's price.

Every integration needs someone who receives a message when a transfer fails, and a simple way to see whether data moved today. This does not have to be sophisticated: a daily summary of what synchronised, and an alert when nothing did, covers the overwhelming majority of real failures.

It is worth deciding who that person is before launch rather than after the first incident. In practice the alert should reach someone who can act — usually whoever manages the store day to day — rather than only the developers, who may not know that a price looking odd is a price that is wrong.

Starting small is not a compromise

The temptation is to connect everything at once. The more reliable route is to start with one direction of one data type — usually stock from the ERP to the store — run it for two weeks, and watch what happens.

That first flow will teach you more about your data quality than any amount of planning, and it does so while the cost of being wrong is still small. Once it is stable, add prices, then orders, then statuses. Each stage is easier because the matching problem was already solved in stage one, and each stage gives the team a working example to reason about rather than a diagram. Businesses that connect everything simultaneously usually spend the first month unable to tell which of six new flows is responsible for a discrepancy, and that diagnosis time costs more than the staged approach ever would have.

This staged approach fits naturally with e-commerce and warehouse integration, which is where most stores see the earliest and clearest benefit.

In summary

An integration is a set of agreements about data, expressed in software. The agreements — who owns what, how often it moves, what happens when it fails, what a return does — determine whether the result is reliable. The code is the easy part, and it cannot compensate for decisions that were never made.

If you are still deciding what your store needs operationally, the earlier questions are covered in our guide to the seven decisions before opening an online store. You can also see how we approach CRM and ERP integration and the rest of our automation and integrations work, or request a free consultation to map your own data flows.