WooCommerce integration with ERP, Allegro and couriers

A WooCommerce integration from VulCode connects WooCommerce stores with ERP, the warehouse, Allegro, couriers and KSeF (Poland's national e-invoicing system) through the REST API and signed webhooks, and where it makes sense through a custom plugin. It costs from PLN 999 (about EUR 220) and usually takes 2-3 days. Orders reach the ERP through a queue, and stock and prices come back in batches so a large catalogue does not slow the store down.

WooCommerce

The REST API from outside or a plugin inside the store

WooCommerce offers both routes. The choice depends on where the logic should run.

An integration through the REST API

  • Data flows to a system outside the store: ERP, warehouse, B2B panel.
  • You want WordPress updates to leave the integration alone.
  • The integration should run even when the store is under load.

A service next to the store: the REST API for reads and writes, webhooks for events.

A custom WooCommerce plugin

  • The change should show in the store itself: cart, order fields, delivery methods.
  • You need rules that cannot be set from outside.

A plugin built on WooCommerce hooks, with code in a repository and tests before updates.

What we sync with WooCommerce

Directions for a typical store with an ERP and Allegro.

WooCommerceERP and warehouse

Orders

the order.created webhook and status changes

Stock

a warehouse document

in batches of up to 100 products per request

Prices

a price list change in the ERP

Products and variants

a new item in the catalogue

Statuses and tracking number

goods out and dispatch

Invoice with a KSeF number

KSeF accepting the invoice

a PDF in the shop customer account

WooCommerce REST API rules that shape the integration

From the documentation. Each has consequences for performance and reliability.

JSON application/json
[
                {
                "Rule": "Authentication","Value": "a consumer key and secret, over HTTPS","What we do": "Separate keys for the integration, with minimal permissions."
                },
              
                {
                "Rule": "Pagination","Value": "10 items by default, totals in headers","What we do": "We set per_page and read X-WP-TotalPages instead of guessing."
                },
              
                {
                "Rule": "Batch operations","Value": "up to 100 objects by default","What we do": "We split stock and price updates into batches of 100."
                },
              
                {
                "Rule": "Webhooks","Value": "disabled after more than 5 failures in a row","What we do": "Monitoring checks that webhooks are active."
                },
              
                {
                "Rule": "Order storage","Value": "HPOS (High-Performance Order Storage) by default in new stores from version 8.2","What we do": "Plugins use the WooCommerce order API, never direct table queries."
                }
              ]
The same record in the interface

Rule 5

  1. Authentication Value a consumer key and secret, over HTTPS What we do Separate keys for the integration, with minimal permissions.
  2. Pagination Value 10 items by default, totals in headers What we do We set per_page and read X-WP-TotalPages instead of guessing.
  3. Batch operations Value up to 100 objects by default What we do We split stock and price updates into batches of 100.
  4. Webhooks Value disabled after more than 5 failures in a row What we do Monitoring checks that webhooks are active.
  5. Order storage Value HPOS (High-Performance Order Storage) by default in new stores from version 8.2 What we do Plugins use the WooCommerce order API, never direct table queries.

04

A WooCommerce integration that does not slow down a store with a large catalogue

Integrations with big WooCommerce stores often slow them down more than customer traffic. We guard against that.

  1. 01

    Integration

    Syncing only changes

    A full catalogue import every hour loads the database. We send only what changed.

  2. 02

    Batches, not single requests

    A hundred stock changes in one batch request is one WordPress boot instead of a hundred.

  3. 03

    Integration traffic off-peak

    Large description and image updates are scheduled for quieter hours.

  4. 04

    Orders in HPOS (High-Performance Order Storage)

    The new order tables are faster at volume. We check whether the store uses them.

  5. 05

    Plugins doing the same job

    Two stock-sync plugins can overwrite each other. We keep one route per kind of data.

What we connect WooCommerce to

The most common connections. Each has its own page.

WooCommerceREST API and webhooks

Example: WooCommerce with Subiekt and Allegro

The rollout, step by step.

Scenario

00 / 04

Steps

  1. 01 One source of stock
  2. 02 Orders from webhooks
  3. 03 Stock in batches
  4. 04 Invoices to the customer

Step 01 of 04

One source of stock

Subiekt runs stock. The store and Allegro only receive it.

Step 02 of 04

Orders from webhooks

New orders arrive by signed webhook and reach Subiekt through a queue.

Step 03 of 04

Stock in batches

We collect stock changes and send them in batches of 100 so the store stays fast.

Step 04 of 04

Invoices to the customer

The Subiekt invoice, with its KSeF number, appears in the customer's shop account.

Result

The store and Allegro sell from one warehouse, and nobody retypes orders into Subiekt.

Common questions about WooCommerce

The main questions about a WooCommerce integration: plugin or custom code, performance, updates, cost and code.

Could a ready plugin do the job?
Often it can, and then we say so. A custom integration makes sense with an unusual ERP, several channels or rules a plugin does not know.
How long does it take?
Usually 2-3 days. The exact dated schedule comes with the free quote, and if anything is going to move, you know in advance.
How much does a WooCommerce integration with an ERP cost?
A WooCommerce integration costs from PLN 999 (about EUR 220) for one flow, e.g. orders from WooCommerce into Subiekt, under our API and integrations service, and usually takes 2-3 days. Stock, prices, Allegro and invoices in the customer account are further stages. The quote is free and comes back within an hour.
Will the integration slow the store down?
No. We sync only changes, in batches of 100 and through a queue, and schedule heavy updates off-peak.
What about WooCommerce updates?
A REST API integration is largely independent of them. We test custom plugins on a store copy before updating.
Will the WooCommerce integration code be mine?
Yes. Once the work is accepted and paid in full, the economic copyright in the integration code passes to you and you get the repository with run instructions. Open source libraries keep their own licences.
How do you check a WooCommerce integration before launch?
On a copy of your store and test data from the ERP. We run an order, a stock change, a cancellation, a return and a connection error, and only then switch the integration on in production.
What if the WooCommerce integration stops working?
The integration logs every operation and retries the ones that failed by itself. When the problem does not go away you get a notification, and bugs that come from our work are fixed free of charge within the 90 days of support after launch.
What if WooCommerce or the ERP changes its API?
We adjust the integration to the provider's changes: within the 90 days of support included after launch, later under a maintenance plan or as a separate short order. We follow the provider's change notices and tell you in advance what needs fixing.

Sources

Technical details come from the WooCommerce documentation and code.

Describe your project.

A free quote comes back within an hour during working hours.