WooCommerce ERP Integration: How It Works and What to Plan For

WooCommerce ERP integration syncs orders, stock and prices through webhooks and the REST API. Decide who owns each record first, then plan for failure.

Ali
8 min read
14+ Years Experience NDA-Protected

Get a Free Quote

Tell us about your project. We respond within 24 hours.

No spam. Your info is protected under NDA.

Key Takeaways

  • A WooCommerce ERP integration uses webhooks to push store events out and the REST API to let the ERP read and write store data.
  • Decide which system owns each record type before development starts. Two systems owning the same field is where sync loops begin.
  • Choose sync speed per data type: orders usually near real time, stock and prices often on a schedule.
  • WooCommerce disables a webhook after repeated failed deliveries and does not resend missed ones, so you need monitoring and a catch-up job.
  • Make every sync safe to run twice, and reconcile both systems on a schedule so mismatches surface in a report.

Most stores reach the same point. Orders are typed into the ERP by hand, stock on the website is wrong by lunchtime, and month-end never quite balances. An ERP integration fixes that, but only if it is planned around how it will fail. This guide explains how a WooCommerce ERP integration works and what to decide before anyone writes code.

Short answer: A WooCommerce ERP integration moves orders, stock, prices, products and customers between your store and your ERP through APIs. WooCommerce sends events out with webhooks and accepts changes through its REST API. The hard part is not the connection. It is deciding which system owns each record, and making sure failed syncs retry, never duplicate, and always get noticed.

At a glance

  • Two doors in and out: webhooks push store events out, and the REST API lets the ERP read and write store data.
  • Decide ownership first. For each record type, one system is the source of truth.
  • Orders usually flow in near real time. Stock and prices often sync on a schedule.
  • Webhooks can be disabled automatically after repeated failed deliveries, so you need monitoring.
  • Every sync must be safe to run twice. That is what stops duplicate orders in the ERP.
  • Reconcile on a schedule. Compare both systems and report every mismatch.

Last reviewed: 18 November 2026 by Ali Shan, founder of WPRobo. We update this post when WooCommerce changes its REST API, webhooks or order storage.

What does a WooCommerce ERP integration actually do?

It keeps the records your business depends on the same in both systems. Without it, someone copies them across by hand.

Most integrations cover some or all of these:

  • Orders: new paid orders go from WooCommerce to the ERP for fulfilment and invoicing.
  • Stock levels: available quantities come from the ERP or warehouse back to the store.
  • Prices: list prices, trade prices or customer-specific prices flow from the ERP.
  • Products: SKUs, names, weights and attributes, usually created in the ERP first.
  • Customers: new accounts and addresses, often matched to existing ERP customer records.
  • Order status and tracking: shipped, part-shipped or cancelled updates come back to the store.
  • Refunds: refunds raised in either system need to reach the other one.

You do not need all of these on day one. Many stores start with orders out and stock in. Those two remove the most manual work.

How does WooCommerce talk to an ERP?

WooCommerce gives you two built-in tools. Most integrations use both.

Webhooks: the store tells the ERP something happened

A webhook sends a message to a URL when something happens in the store. WooCommerce can fire webhooks when orders, products, coupons or customers are created, updated or deleted. You set them up under WooCommerce โ†’ Settings โ†’ Advanced โ†’ Webhooks, as the WooCommerce webhooks guide explains.

Each delivery includes an X-WC-Webhook-Signature header. It is a base64-encoded HMAC-SHA256 hash of the payload, made with the webhook’s secret. The receiving side should check that signature before trusting the message. Here is a minimal check in PHP:

$payload   = file_get_contents( 'php://input' );
$signature = $_SERVER['HTTP_X_WC_WEBHOOK_SIGNATURE'] ?? '';
$expected  = base64_encode( hash_hmac( 'sha256', $payload, $secret, true ) );

if ( ! hash_equals( $expected, $signature ) ) {
    http_response_code( 401 );
    exit;
}

By default, WooCommerce delivers webhooks in the background through Action Scheduler, its job queue. That keeps checkout fast. It also means webhooks depend on the queue running properly. A stuck queue means late or missing messages.

The REST API: the ERP reads and writes store data

The WooCommerce REST API lives at /wp-json/wc/v3/. The ERP side, or a middle layer, uses it to fetch orders and update products and stock. Over HTTPS, you can authenticate with a consumer key and consumer secret using HTTP Basic Auth. The REST API authentication docs cover the key options. Our post on WordPress REST API authentication compares them in more detail.

Two API details shape every sync design:

  • Page size: list requests return at most 100 items per page. Large catalogues need paging.
  • Batch size: the batch endpoints accept up to 100 creates, updates and deletes per request by default. You can see the woocommerce_rest_batch_items_limit filter in the WooCommerce REST controller source.

Orders and products also accept modified_after. That lets a scheduled job fetch only what changed since the last run, not the whole store.

Should the sync be real time or scheduled?

It depends on the data. Choose per record type, not for the whole project.

  • Orders: usually near real time through webhooks. Fast orders mean faster dispatch.
  • Stock: often every few minutes on a schedule. How often depends on how fast you sell and how much stock you hold.
  • Prices and product data: often hourly or nightly. These change less often.
  • Order status and tracking: on change if the ERP can send events, otherwise on a short schedule.

Real time is not automatically better. It adds load on both systems and more moving parts. Many ERPs also limit how many API calls you can make. Match the speed to how fresh the data really needs to be.

Which system should own each record?

This is the most important decision in the project. Most integration pain comes from ambiguity: two systems that both think they own the same field.

Write an ownership map before development starts. For each record type, note:

  1. The source of truth: which system wins if the two disagree.
  2. The direction: one-way or two-way. Prefer one-way wherever the business allows.
  3. The conflict rule: what happens when both sides change the same record.
  4. The matching key: usually SKU for products and email or an ERP account number for customers.

A common pattern is simple. The ERP owns products, prices and stock. WooCommerce owns new orders and new web customers. Status updates flow back to the store.

Two-way sync on the same field is where loops start. A price changes in the store, syncs to the ERP, which syncs it back, which triggers another update. Avoid it unless there is a clear business need and a written conflict rule.

What goes wrong with WooCommerce ERP integrations?

Integrations rarely fail loudly. They fail quietly, and someone notices weeks later at stocktake.

Webhooks get switched off

If the receiving URL keeps returning errors, WooCommerce marks the webhook Disabled. Its docs put the default at five failed deliveries, controlled by the woocommerce_max_webhook_delivery_failures filter. In WooCommerce core, a failed delivery is counted and logged, not queued for a later attempt. So an ERP outage can mean missed orders unless your integration has its own catch-up job.

Duplicate orders in the ERP

A timeout does not always mean the request failed. The ERP may have created the order and then been slow to reply. If the sync simply tries again, you get the same order twice. The fix is idempotency: every write carries a unique key, such as the WooCommerce order ID, and the ERP side checks it before creating anything.

Stock that drifts

WooCommerce changes stock itself when orders are placed or cancelled. If the ERP also pushes stock numbers, the two can overwrite each other. Decide whether the ERP sends absolute quantities or changes, and when. Also remember WooCommerce’s hold stock setting. It reserves stock for unpaid orders, for 60 minutes by default, then cancels the pending order.

Code that reads orders the old way

Older integrations often read orders straight from the wp_posts and wp_postmeta tables. With High-Performance Order Storage (HPOS), orders live in their own tables. The HPOS recipe book warns that reading those tables directly may return an outdated order. Integration code should use wc_get_order() and the WooCommerce CRUD classes. Our WooCommerce HPOS migration guide covers what to test.

Mapping that nobody wrote down

Tax codes, shipping methods, payment methods and order statuses rarely match one to one. If the mapping lives in one developer’s head, every change in either system becomes a risk. Document it, and plan for what happens when either side adds a new value.

What should you plan before you start?

Good preparation saves more money than any technical choice. Before you ask anyone for a quote, gather this:

  • Your ERP’s API documentation, including rate limits, authentication and any sandbox account.
  • A list of record types you want to sync, with direction and freshness for each.
  • Your ownership map, even as a rough draft.
  • Your matching keys. Are SKUs clean and unique in both systems?
  • Edge cases you deal with today: part shipments, back orders, bundles, trade accounts, multiple warehouses.
  • Who gets alerted when a sync fails, and how fast someone needs to act.
  • A staging copy of the store and, ideally, a test ERP company or sandbox.

Also check whether an off-the-shelf connector already covers your ERP and your edge cases. If it does, it may be enough. If you find yourself working around it, a custom integration is usually cheaper over time. Our guide to WordPress API integrations explains the trade-offs.

How much does a WooCommerce ERP integration cost?

The main cost drivers are the number of record types, the quality of the ERP’s API, and whether each flow is one-way or two-way. Orders out and stock in through a clean modern API is a small job. A two-way sync with an older system that only offers a nightly file is a much bigger one.

Our integration projects start from $4,000, fixed price, quoted after scoping. Scoping is where the ownership map and edge cases get agreed, so the quote reflects the real work.

How we handle this on client sites

We build integrations on the assumption that things will fail, because with integrations they always do. This is how we approach a WooCommerce integration:

  • Map the data flow first. We agree which system owns each record, which way data flows, and the conflict rules before writing code.
  • One-way flows wherever the business allows. Fewer directions mean fewer loops and overwrites.
  • Idempotent operations. Running the same sync twice cannot duplicate an order or post an invoice twice.
  • Retries with backoff. Short outages on either side recover on their own, and queued work survives.
  • Scheduled reconciliation. Both systems are compared on a schedule, and every mismatch shows up in a report.
  • Alerting from day one. A failed sync sends a notification, so you hear about it before a customer does.
  • Documentation and runbooks. Field mappings and failure steps are written down, not kept in someone’s head.

Real time or batched is chosen per data type. Orders usually flow through webhooks, while stock and prices often batch on a schedule.

What should I check on my current integration this week?

If you already have an ERP sync, these checks take under an hour:

  • Open WooCommerce โ†’ Settings โ†’ Advanced โ†’ Webhooks and look for any webhook marked Disabled.
  • Open WooCommerce โ†’ Status โ†’ Scheduled Actions and filter for failed or past-due actions.
  • Pick ten recent orders and confirm each one exists once, and only once, in the ERP.
  • Compare stock for your ten best-selling SKUs in both systems.
  • Check WooCommerce โ†’ Status โ†’ Logs for webhook delivery errors.
  • Ask who gets told when the sync fails. If nobody knows, that is the first fix.

If any of those turn up problems, or you are planning a new integration, tell us about your setup. We will tell you plainly what it needs.

Share:
FAQ

Frequently Asked Questions

Need Expert WordPress Help?

From custom development to ongoing care plans, we build WordPress sites that work as hard as you do.

Plan Your Integration
Written by

Ali Shan

Web developer since 2010, WordPress and WooCommerce since 2012. Builds custom themes, plugins and WooCommerce stores. Founder of WPRobo Limited (2025).

Your email address will not be published. Required fields are marked with an asterisk.