GuideEcommerce projects

How to Connect Ecommerce to ERP and Inventory

By Alpha Expansion7 minute readReviewed October 2026
The short answer

Connecting an online store to an ERP means orders flow from the store into the ERP, and products, prices and stock flow back, without anyone retyping them. The integration succeeds or fails on three decisions made before any code: which system is right for each kind of record, how quickly stock changes must reach the store, and who is told when a record fails to arrive.

Key points
  • 01For every record, one system has to be the authority when they disagree
  • 02Stock accuracy depends on speed, reservations and a safety margin
  • 03An integration without an error queue fails silently, which is the worst way
01

What moves between the store and the ERP

An ecommerce platform is built to sell. An ERP is built to buy, store, make and account. They overlap on products, customers and orders, and the integration exists to keep that overlap consistent. Six kinds of record usually travel.

RecordUsual directionUsual authorityThe awkward part
Products and variantsERP to storeERP for codes and attributesMarketing content often lives in the store, not the ERP
PricesERP to storeERPPromotions and customer-specific prices
Stock levelsERP to storeERP or warehouse systemSpeed, reservations and several locations
OrdersStore to ERPStore until accepted, then ERPDiscounts, taxes, bundles and gift cards
Fulfilment and trackingERP to storeERP or warehousePartial shipments and split orders
Refunds and returnsEitherDepends on who decidesKeeping stock and money in step
02

Decide which system is right

The most important design decision is authority. For each kind of record, exactly one system may change it, and the other receives the result. When both sides can edit the same field, the integration eventually overwrites someone's work, and nobody can say which version was correct.

A workable pattern for most merchants is simple. The ERP owns what a product is, what it costs and how many exist. The store owns how the product is presented and the order as the customer placed it. Once the ERP accepts an order, the ERP owns everything that happens to it afterwards, and the store only displays the status.

Write the rule down as a table and have operations, finance and ecommerce sign it. Disagreements about authority are far cheaper to resolve in a meeting than in production data.

03

Keep stock accurate enough to sell from

Overselling is the failure customers notice. It happens when the store shows stock that the warehouse no longer has, and three things control it.

  1. 01

    Speed of updates

    Decide how quickly a change in the warehouse must reach the store. Fast-moving or scarce items may need updates within moments. Slow lines can wait for a scheduled batch. The ERP's ability to report changes often sets the limit.

  2. 02

    What counts as available

    Stock on the shelf is not the same as stock for sale. Subtract quantities reserved for open orders, held for quality checks or promised to other channels, and agree the formula with the warehouse.

  3. 03

    A safety margin

    For items where a mistake is costly, show slightly less than the system reports. A small buffer absorbs counting errors and the delay between the two systems.

  4. 04

    Several locations

    If stock sits in more than one warehouse or shop, decide which locations feed online availability and which one fulfils each order.

Whether you need live updates or scheduled ones is a business question as much as a technical one. Our comparison of real-time and scheduled data sync sets out the cost and benefit of each.

04

A worked example

Illustrative example

A homeware retailer with two warehouses

This example is invented to show the decisions. A retailer sells online and to trade customers from two warehouses, and currently retypes web orders into its ERP every morning.

  • AuthorityThe ERP owns item codes, prices and stock. The store owns descriptions and photographs. Orders belong to the store until the ERP confirms them.
  • StockAvailable quantity is shelf stock minus open orders, summed across both warehouses, less a buffer of two units on fragile lines. Updates are sent within minutes of a change.
  • OrdersA web order creates a sales order in the ERP with its discounts and delivery charge on separate lines. Bundles are exploded into their component items so that stock is reduced correctly.
  • FailuresAn order with an unknown item code stops in a queue, and the ecommerce manager is emailed. In the first month, 14 orders stop this way, all caused by products created in the store before they existed in the ERP.

The fix for those failures is a rule, not code: products are created in the ERP first. Morning retyping ends, and overselling falls to the occasional case where a physical count was wrong.

05

Plan for the day it fails

Every integration fails sometimes. A system is down for maintenance, a product is missing a tax code, a network request times out. What separates a good integration from a poor one is what happens next.

Built to recover

  • Failed records wait in a visible queue with the reason
  • Temporary failures are retried automatically
  • A retry cannot create the same order twice
  • A named person is alerted when something is stuck
  • Both systems are compared on a schedule to catch drift

Built to hide problems

  • Errors are written to a log nobody reads
  • A failed order simply never appears in the ERP
  • Retrying creates duplicate orders
  • Nobody is responsible for the integration after launch
06

Connector or custom integration

For common pairings of store platform and ERP, ready-made connectors exist, and they are the right first thing to evaluate. They are quicker and cheaper than custom work when your products, prices and processes are standard.

SituationLikely fit
Simple catalogue, one warehouse, standard pricingA maintained connector
Variants, bundles or customer-specific pricesA connector with extensions, or custom
Several warehouses, stores or legal entitiesUsually custom
An ERP with no documented interfaceCustom, often using scheduled files
High order volumes with peaksCustom, with queues designed for the peaks

Test a connector against your awkward cases before committing: a bundle, a partial refund, a customer with special prices. Our comparison of a custom integration and an existing connector gives a fuller way to decide.

07

The integration checklist

Ecommerce to ERP integration checklist

0 of 10 checked
08

What to do next

Before speaking to anyone about building, fill in our integration discovery questionnaire. It collects the facts above on one page, and it works for any pair of systems.

If you would like us to look at it, we build these connections as part of system integration work. Send us the questionnaire and we will tell you what we would verify first.

09

Common questions

Do we need real-time stock updates?

Only where a delay would cause overselling or lost sales. Fast-moving and scarce items benefit from updates within moments. For slower lines, a scheduled update with a small safety margin is usually enough and costs less to build and run. The decision can differ by product, and the ERP's ability to report changes often determines what is possible.

Which system should hold product information?

Operational data, such as codes, costs, prices, weights and stock, belongs in the ERP. Presentation, such as descriptions, photographs and search wording, is usually better kept in the store or a product information tool, because marketing teams work there. The integration then creates a product in the store from ERP data and leaves the presentation fields alone.

What happens to orders if the ERP is offline?

In a well-built integration the store keeps taking orders, and they wait in a queue until the ERP returns, then flow in the correct sequence. Stock shown online may be slightly out of date during the outage, which is one reason for a safety margin. Ask whoever builds the integration to demonstrate this before launch.

Can a connector handle customer-specific prices?

Some can, within limits. Simple price lists by customer group are often supported. Contract prices by individual customer, quantity breaks and prices that depend on other conditions frequently exceed what a connector can express. Test with your most complicated customer before deciding, since B2B pricing is among the most common reasons a connector is replaced.

How long does an ecommerce ERP integration take to build?

It depends on the number of record types, the quality of the ERP's interface and how many awkward cases your catalogue contains, so an honest answer needs your details. The mapping and the decisions about authority often take as long as the development. A parallel run before going live should be part of any plan.

Next

Where to go from here

Next step

Send us your project brief

A page of notes is enough. We read it, tell you what we would ask, change or cut, and suggest a sensible first step. The scoping conversation is free.

Response within 24 hoursFree consultation and scopingNDA available on request

Premium digital product and engineering studio. We build high-performance web platforms, SaaS applications, mobile apps, and 3D experiences for high-growth companies.

Alpha Expansion is a premium digital product and engineering studio specializing in React development, Next.js development, full-stack development, mobile app development, UI/UX design, and 3D interactive experiences.

We serve industries including SaaS, FinTech, Healthcare, E-commerce, Logistics, and Real Estate.