ERP

ERP and ecommerce integration: what data moves and how to avoid errors

Which data syncs between your online store and your ERP, the path of an order, how to calculate the stock you display, your integration options and what to test before launch.

Key points

  • The ERP usually owns products, prices and stock, while the store owns the placed order.
  • An order resent after an error must not create a new order or a new invoice.
  • Displayed stock = physical stock minus reservations, blocked stock and the safety buffer.
  • Transfer errors have to reach a person who can fix them.

What data moves between the store and the ERP

The most common problem is not technical. Two systems can change the same price or the same address, and nobody knows which value is correct.

The table shows which data moves, in which direction and how often, in a typical integration.

The data in an ERP and online store integration
CriterionDirectionOwned byHow often
Products and variantsERP → storeERPOn every change
Prices and promotionsERP → storeERPOn every change
Available stockERP → storeERPOn every stock movement
Customers and addressesStore → ERPThe store, then the ERP for invoicingAt order time
Orders and paymentsStore → ERPThe store, until the transferImmediately
Invoices, shipping labels, statusERP → storeThe ERP and the invoicing softwareOn every status change
ReturnsBoth directionsERPOn every return

The path of an order, from basket to delivery

The diagram shows the steps of an order in a store connected to an ERP. Simple integrations skip the second step, the checks.

An online order in a store connected to an ERP
  1. Order placedThe customer completes checkout in the store.
  2. ChecksThe system checks that the account is approved and the payment confirmed.
  3. Reservation in the ERPThe system reserves the stock and gives the order its ERP number.
  4. Picking in the warehouseA warehouse colleague scans the products in the order.
  5. Invoice and shipping labelThe invoicing software issues the invoice, and the courier collects the parcel.
  6. Status in the accountThe customer sees the invoice and delivery status in their account.

How to calculate the stock shown in the store

The store should not show all physical stock. Part of it is already reserved for confirmed orders, and part may be blocked for returns or damaged goods.

The simple formula is: displayed stock = physical stock − reservations − blocked stock − safety buffer. The buffer covers orders placed between two syncs, and you set it by how fast each product sells.

If you also sell from supplier stock, or across several sales channels, read syncing supplier stock with your online store.

How to avoid duplicate orders and invoices

The store sometimes resends the same order after a network error. The ERP has to recognise an order number it already received and skip creating a new one.

Match products by product code, and customers by VAT number or another stable identifier, never by name. A customer can change their email, and two companies can have similar names.

Only one system issues the invoice. If both the store and the ERP can issue invoices, sooner or later a customer receives two invoices for the same order.

Three ways to connect the store to the ERP

The choice depends on how standard your rules are and on who fixes the connection when it stops.

Ready-made connector, middleware platform or custom integration
CriterionReady-made connectorMiddleware platformCustom API integration
SuitsCommon platforms and common rulesSeveral sales channelsYour own pricing, approval or stock rules
Your own rulesOnly what the connector allowsOnly what the platform allowsAny, built for you
Monthly costThe connector subscriptionThe platform subscription, usually based on volumeMaintenance of the integration
Who fixes an errorThe connector vendorThe platform's support teamThe company that built the integration

BaseLinker is one example of a middleware platform, and it has several alternatives.

What to test before launch

Test the cases that happen rarely, because they cause most of the customer calls. Then start with a small volume and check the first orders one by one.

Test scenarios for an ERP and store integration

0 of 8 checked

What the buyer sees in the store

Stock and prices from the ERP only help when the buyer can find the product and the total. For DeCasă, a furniture store, we reorganised the store around categories and filters, and the buyer sees the shipping cost and the total before confirming the order.

For Meliora, a vegan cosmetics brand, we built a store that keeps the premium positioning, with products in clear categories and a short purchase on a phone or a computer.

How it works at Center Electric

At Center Electric, online orders are connected to the ERP. At checkout, the integration checks the link to the customer record in the ERP, the account approval and the payment status, then passes on the eligible orders.

If an order is already linked, the system uses the existing record and skips creating a new one. The warehouse team uses a WMS that tracks every product from goods receipt to delivery.

Relevant Webmate resources

Continue with guides, services and examples directly connected to the topic of this article.

ERP and WMS for the warehouse Syncing supplier stock Migrating an online store API integrations Connected online stores

Frequently asked questions

How often should stock sync?

On every movement, for fast-selling products. For the rest, a short interval with a safety buffer can be enough.

Who issues the invoice, the store or the ERP?

One system only, usually the ERP or the invoicing software connected to it. The store only receives the issued invoice.

What happens if the integration stops?

Orders wait in a queue and the system processes them again without duplicates. A named person receives the alert and knows the manual procedure.

Can I connect WooCommerce or Shopify to an ERP?

Yes. Both platforms have an API, and you can connect them through a connector, a middleware platform or a custom integration.