01Articles

WooCommerce ERP Integration: Plugins, Webhooks and Stock

What to sync, where a connector plugin falls short, and how to keep orders from going missing

By Obdurate Systems

Updated 8 min readWooCommerce ERP integration · Ecommerce ERP integration · ERP integration
Orders, customers and refunds flow from WooCommerce to the ERP; products, stock and shipment details flow back to the store.

WooCommerce ERP integration connects a store that runs inside WordPress with the system that holds your stock, prices and accounts. The goal is the same as on any platform: orders reach the ERP without re-keying, stock on the store stays accurate, and customers see shipping updates. What makes WooCommerce different is that the store is usually a stack of plugins on your own hosting, and that changes how reliable the connection is.

This guide follows one order from checkout into the ERP and back. It covers what to sync, the three usual ways to connect, the WooCommerce behaviour that catches integrations out, and ten tests to run before launch. The order is illustrative. The WooCommerce behaviour comes from WooCommerce’s own documentation, linked at the end.

Decide which system owns each record

Most stores let the ERP own products, costs, stock and accounting, while WooCommerce owns the online order and the checkout details. Prices need a decision, especially if a B2B or wholesale plugin sets customer-specific prices in the store. Pick one owner per field and write it down before choosing a tool.

Scroll sideways to see all columns.

Records exchanged between WooCommerce and an ERP
Record and directionWhat movesWhat to agree
Products: ERP to WooCommerceSKUs, variations, weights and prices, sometimes descriptions.Which fields the ERP overwrites and which the web team edits in WordPress.
Stock: ERP to WooCommerceAvailable quantity per product and variation.How often it updates, and whether the store may take backorders.
Orders: WooCommerce to ERPLines, coupons, shipping, taxes, payment method and status.Which order status creates the ERP order, usually Processing once payment is confirmed.
Customers: WooCommerce to ERPRegistered customers and the details of guest checkouts.How a guest who orders twice is matched instead of created again.
Shipments: ERP to WooCommerceShipped items, carrier and tracking number.Where tracking numbers live in your store, often in a shipment tracking extension.
Refunds: WooCommerce to ERPRefunded amounts and items, full or partial.Whether a refund creates a credit note directly or waits for approval.

Follow one order into the ERP and back

A guest buys a jacket in size M and two pairs of socks, uses a coupon and pays by card. The order moves to Processing. The integration matches the size M variation to its ERP item, maps the coupon, shipping and tax, creates a customer record for the guest or finds the existing one, and creates a sales order. If a plugin added a gift message or an engraving to a line, the ERP order needs somewhere to put it, or the warehouse will never see it.

The socks are out of stock in the warehouse but the store showed them as available, because the last stock update ran an hour earlier. The ERP now holds a backorder the customer did not expect. The jacket ships first; the tracking number goes back to the store and the customer gets the shipping email. A week later the customer returns one pair of socks and gets a partial refund in WooCommerce, which the ERP needs as a credit note.

Plugin, integration platform or custom API

Connector plugin. Many ERPs have a WooCommerce plugin, either from the ERP vendor or from a third party. Check which records it moves, how often, how it reports errors and where it runs. A plugin that runs inside WordPress depends on your hosting and on WordPress’s scheduled tasks; if the site is slow or the scheduler stalls, the sync stalls with it.

Integration platform. An integration platform (iPaaS) moves the logic outside WordPress and helps when the store, the ERP, a warehouse system and a marketplace all exchange data. Your team still owns the mappings and the failed-run queue.

Custom API integration. A small service outside WordPress can use the WooCommerce REST API and webhooks on one side and the ERP’s interface on the other. It is worth it when you can name the gap: a plugin field the connector ignores, B2B pricing rules, bundles that become components in the ERP, or an ERP with no maintained plugin. Our guide to native connectors versus custom APIs works through that decision step by step.

Three WooCommerce details that break integrations

Webhooks switch themselves off. WooCommerce signs each webhook delivery with a hash in the X-WC-Webhook-Signature header, which the receiver should verify. If the receiving endpoint fails more than five times in a row, WooCommerce disables the webhook automatically, and orders stop arriving without anyone being told. Watch the webhook status, and run a reconciliation job that lists recent orders through the REST API and checks each one exists in the ERP.

Orders may not be where old code looks. Since WooCommerce 8.2, new stores keep orders in dedicated tables (High-Performance Order Storage) instead of the WordPress posts tables. An older integration that reads orders straight from the database can miss them. Use the REST API or WooCommerce’s own functions, never direct database reads.

Plugins change the data. Product add-ons, bundles, subscriptions and wholesale plugins add their own order and product data. List the plugins that touch orders and products, and test an order that uses each one, before you agree the mapping.

Keep stock honest on the store

Decide whether the store may sell more than it has. If backorders are off, a late stock update means lost sales; if they are on, a late update means orders the warehouse cannot fill. Push stock changes when they happen where the ERP allows it, and use the REST API’s batch endpoints for large updates: by default each batch request handles up to 100 items, so thousands of SKUs need paging and retries rather than one call per product.

Ten tests before the WooCommerce ERP integration goes live

Run these on a staging copy of the store and an ERP test environment, with the people who handle orders, stock and month-end. Agree the expected result first.

Scroll sideways to see all columns.

Expected behaviour for ten WooCommerce ERP integration tests
Test caseTry thisWhat a safe result looks like
Normal orderPlace an order with valid SKUs, a coupon and shipping.One ERP sales order with matching lines, discount, shipping and tax totals.
VariationOrder a product variation, such as a size or colour.The ERP order uses the variation's own item, not the parent product.
Guest checkoutOrder twice as a guest with the same email.The ERP matches the same customer instead of creating a duplicate.
Plugin dataOrder a product with an add-on or bundle.The extra data reaches the ERP order, or the order waits for review.
Duplicate deliveryDeliver the same order webhook twice.The ERP ends up with one order.
Webhook disabledFail the endpoint six times in a row, then restore it.Someone is alerted, and the reconciliation job recovers every missed order.
BackorderSell an item the ERP has just run out of.The agreed backorder rule applies and the customer is told.
CancellationCancel an order before it ships.The ERP order is cancelled and the stock is released.
Partial refundRefund one item from a shipped order.A credit note or the agreed review in the ERP for that item only.
Bulk stock updateUpdate stock for a few thousand SKUs.Every SKU updates through batched requests, with failures retried and reported.

Note what actually happened in each test, any manual step, and the order numbers that let someone find the record in both systems. Mark anything you have not tested as unverified.

Bring these questions to the first discussion

  1. 01Where will the integration run?Inside WordPress as a plugin, or outside it as a platform or service. That choice decides how much your hosting affects reliability.
  2. 02Which plugins touch orders and products?List them before mapping fields. Each one can add data the ERP has to accept or ignore on purpose.
  3. 03Which order status should create the ERP order?Usually Processing, after payment. Decide what happens to orders that stay On hold or fail payment.
  4. 04Who notices when orders stop arriving?Name the person who watches webhook status and the reconciliation report, and the person who fixes the cause.

If you also sell through Shopify, our Shopify ERP integration guide covers the same handoff on that platform. Once orders reach a warehouse, our WMS ERP integration guide follows them through picking and shipment. For help with a WooCommerce integration, our ERP integration services and API integration services pages explain what we check before proposing a build.

Further reading

WooCommerce documents webhooks and automatic disabling, High-Performance Order Storage and the REST API, including webhook signatures and batch requests.