Skip to content

Insights / ERP, CRM and ecommerce

How to synchronise ecommerce orders and stock with your ERP

To synchronise ecommerce orders and stock, decide which system accepts the order and which calculates the quantity available to sell. Use a stable reference to follow each order line and its reservation across both systems. Test the full journey with a partial shipment, a cancellation and an order that reaches the ERP late.

By Published 5 min read

Follow the order from checkout to stock reservation

Draw the path from the shop accepting an order to the warehouse being ready to pick it. Mark when the ERP should create the order and which signal triggers the reservation. A card order might need payment confirmation, while a customer on account might need commercial approval. Write down both paths if you use both. The warehouse should be able to see why an order shows up in its system before the goods are ready to pick. Include that explanation in the status or the exception view the warehouse already checks.

Suppose the shop sells coffee machines and spare filters. An order contains a machine, a filter and a promotional discount. Picking requires the item references, quantities and destination. Reconciling the order total also requires the discount, currency, delivery charge and payment status. Identify the fields needed to accept the order and those whose absence should stop the warehouse releasing it. If an order is on hold, make its reason visible to anyone who may have to act.

  • Keep the source order and line references alongside the ERP identifiers. Include the sales channel or shop if orders can come from several storefronts.
  • Match each variant to its ERP item and selling unit. Check what happens when the shop sells a box and the warehouse counts individual pieces.
  • Store the payment status and transaction reference so the team can verify a change. Agree who may intervene when the ERP total differs from the shop total.

Before going live with reservations, send the same order in two runs. The second run should find the existing order and preserve its reservations. Include an unmapped variant to check that the integration surfaces it and that the team can fix the mapping before picking.

Publish the quantity the shop can sell

Agree which warehouses serve the shop and what quantity each one contributes. Start with the ERP or warehouse definition. Shopify’s developer documentation, for example, distinguishes stock on hand, stock available for sale and stock committed to orders, among other states. Record whether the value sent to the shop already excludes reservations, stock on hold and quantities set aside for other channels. You can then trace each deduction and spot a rule that has been applied twice.

In the coffee machine example, the central warehouse supplies online orders. A physical branch keeps separate stock for its own customers. After accepting an online purchase, check the central warehouse’s available quantity, the number displayed online and the units assigned to the new order separately. For a promotional bundle of machines and filters, identify the component that limits the number of bundles and confirm how many filters the shop can still sell individually. Recheck both figures after the reservation has been applied.

Give one system responsibility for the published number and set a limit for how old it can be. During an ERP outage, the team needs to see when the figure was last confirmed and which products can continue to sell. Decide in advance when to reduce the published quantity or suspend sales of a variant. Test that recovery restores the right products and that a delayed event cannot overwrite a more recent value.

Test a partial shipment and a cancellation

Set up a test in which the warehouse sends the coffee machine and keeps the filter line open. Check that the shop receives the tracking number and the units shipped, while the filter retains the appropriate reservation. If the customer cancels the filter, agree who confirms the warehouse can stop it, who edits the order and who issues or records the refund. Shopify’s cancellation guidance treats restocking and refunding as separate decisions. Verify both in the integration.

  • Cancel before picking. Confirm that the warehouse task stops, the reservation is released and the payment outcome is recorded.
  • Cancel during packing. Ask the warehouse to confirm the parcel’s status before making the item available online again.
  • Send the remainder in a second shipment. Confirm that the new tracking reference applies to the correct lines and that the first shipment remains visible.
  • Change a quantity through customer service. Check the difference between the old and new quantities, then confirm that the reservation matches the revised order.

Ask someone outside the configuration team to run the test. They should be able to locate the source order, see what changed and show what evidence supports closing the case. Keep the expected and observed result for each line. If two screens use “complete” for different steps, specify which signal tells the warehouse that its work can be closed. That signal should be recognisable during a busy shift as well as in a demonstration.

Reconcile orders and stock at the end of a period

Compare the orders the shop has accepted with the orders the ERP can fulfil, matching identifiers across a known time window. Review older orders whose status changed separately. For notification-based integrations, Shopify describes duplicate deliveries and recommends periodically retrieving data that may have been missed. For batch transfers, record the last completed position and practise recovering a batch that stopped halfway. The next import should account for both the records already written and the missing ones.

Add a stock check by variant and warehouse using the same reference time. When the figures disagree, look for the last reservation, shipment, cancellation or adjustment recorded in each system. Link the transaction that explains the difference. If an order is missing, locate the original by its reference and check its reservations before sending it again. Record any manual work the team has already done that the retry could repeat.

Accept the workflow once the team can spot a missing order, recover it and confirm the stock impact without creating a second sales document. Give operations a view of open exceptions, the age of the last update and the next scheduled check. Review repeated exceptions together so you can decide whether the rule needs correcting or the warehouse needs a documented intervention.

Frequently asked questions

When should stock be reserved for an ecommerce order?
When the business commits to fulfil the order under its payment and approval rules. Document what happens if the payment expires or the customer later changes the quantity.
What if an order is in the shop but missing from the ERP?
Search by channel and source reference, then check for a partial record or a mapping error. Fix the cause, recover the same order and verify its reservations.
Does stock need real-time synchronisation with the ERP?
Not always. Set a delay tolerance for each data item: the sellable quantity of a fast-moving variant may need more frequent updates. Test what the shop displays when the limit is exceeded.

Sources

  1. Shopify developer documentation · Inventory quantities and states
  2. Shopify Help Center · Cancelling orders, refunds and restocking
  3. Shopify developer documentation · Duplicate deliveries and webhook reconciliation

New business

Have a project in mind?

Send a short note about your goal and where you need help. A senior member of the team will reply within one business day to arrange an initial call.

contact@wmktechnologies.com