Article

Web shop and ERP integration: how it works and what you get

Integrating a web shop with an ERP means online orders land in the ERP on their own, and stock levels and prices flow from the ERP back to the shop. Nobody retypes anything. Technically, the shop notifies the ERP the moment an order comes in (a webhook), and a small service regularly compares both systems and fixes whatever got lost on the way. The result is one source of truth: what the website shows is what is actually in the warehouse.

Published 5 min read

01What it looks like without integration

An order arrives in the web shop. Someone opens it, retypes the customer and items into the ERP or invoicing tool, creates a delivery note and an invoice. When an item sells in the physical store, someone lowers the online stock by hand, if they remember. Every one of those steps is a place where errors happen: a wrong item code, a forgotten order, a product sold online that is no longer on the shelf.

02Which data flows in which direction

The basic rule: every piece of data has one owner. The ERP owns products, prices and stock. The web shop owns the order until the customer places it. The integration only moves data from its owner to the other system.

DataDirectionWhen
Order (customer, items, shipping, payment)Web shop to ERPImmediately, when the customer checks out
Stock levelsERP to web shopOn every change, or at short intervals
Prices and promotionsERP to web shopWhen they change in the ERP
New products and descriptionsERP to web shop (descriptions and images often stay in the shop)When the product is created in the ERP
Order status (shipped, tracking number)ERP to web shopWhen the warehouse ships the goods

The first two rows deliver most of the value. Orders without retyping and accurate online stock remove most everyday errors. The rest can come in a second phase.

03How it works technically

Most web shop platforms offer an API, which lets another program read and write data, and webhooks, which are messages the shop sends on its own when something happens. WooCommerce, for example, sends a message when an order is created, updated or deleted, and signs each one with a secret key so the receiver can verify it really came from your store (WooCommerce). Shopify offers the same kind of events for new orders and inventory changes (Shopify).

Between the shop and the ERP there is usually a small middleware service. It receives the order, translates it into what the ERP expects (item codes, customer, VAT, payment method) and writes it in. In the other direction it picks up stock and price changes from the ERP and pushes them to the shop. If the ERP has no API, the middleware can work through the database or file exports, but that is more fragile and needs closer monitoring.

04Why webhooks alone are not enough

This is the part most often skipped, and the reason integrations "sometimes don't work".

  • Messages can be lost. Shopify's documentation states plainly that webhook delivery is not always guaranteed and that apps should not rely on webhooks alone (Shopify).
  • Order is not guaranteed. The same source notes that events for the same resource can arrive out of sequence, so the middleware has to check timestamps (Shopify).
  • The connection can switch itself off. WooCommerce disables a webhook after five consecutive failed deliveries, and it stays disabled until someone re-enables it (WooCommerce).

That is why a solid integration also runs reconciliation: a job that regularly, for example every night, compares orders and stock in both systems and fills in anything missing. Shopify recommends this explicitly (Shopify). Add a log of every exchange and an alert to a named person when something fails.

A question for any vendor: what happens to an order if the ERP is down for an hour? A good answer is "it waits in a queue, gets written when the ERP is back, and the nightly reconciliation catches anything that slipped through".

05What to prepare before you start

  1. Item codes: every product in the shop needs the same code (SKU) as in the ERP. This is the most common reason projects run late.
  2. Customers: decide whether every online buyer becomes a customer record in the ERP, or retail orders go to one summary account while business buyers get their own. Agree on this with your accountant.
  3. VAT and shipping: how shipping costs, discounts and coupons are booked in the ERP.
  4. Payment: how the ERP knows a card payment was captured, and how cash on delivery is handled.
  5. Receipts and invoices: who issues them and when, under the tax rules that apply to you. Check this with your accountant before you start.

Once these questions are settled on paper, the build itself is usually the shortest part of the job.

06What the business gets

  • No retyping of orders, so no retyping errors.
  • Customers see real stock and don't order what you don't have.
  • Prices change in one place, the ERP, and apply everywhere.
  • Customers get their tracking number automatically, without calling you.
  • Online and in-store sales show up in the same reports.

Once the data is connected, the next step gets easier: an AI agent that answers customers about order status or product availability needs exactly this data. Read more in What are AI agents. If you want us to look at your web shop and ERP, get in touch through Integrations, ERP and CRM. The conversation is free.

Frequently asked questions

Can we connect a web shop to an ERP that has no API?

Often yes: through the database, file exports and imports, or a connector module from the ERP vendor. Such a link needs closer monitoring, so reconciliation and failure alerts matter even more.

Should stock be sent instantly or is once a day enough?

It depends on how fast items sell. If you sell the same items in a physical store and keep few units in stock, push changes immediately. If stock is large and stable, short intervals are enough.

Can the same integration also feed our CRM?

Yes. The middleware that moves orders into the ERP can send the same customer data to the CRM, so sales can see online purchases too.

Sources

  1. 1.WooCommerce REST API: Webhooks
  2. 2.Shopify: About webhooks

All articles

Let's start

Want to apply this in your company?

Tell us about the process or the problem. Talking to us is free and comes with no obligation.

Or write to us directlyinfo@saku.ba+387 61 888 211