Short answer: connecting Shopify with an ERP takes four steps.

  1. Decide which system owns products and stock. Usually that is the ERP, especially if you also sell in a shop or on marketplaces.
  2. Map every Shopify product and variant to one ERP item.
  3. Set what syncs and when: products, stock, orders, fulfilment and refunds.
  4. Test with real orders before you go live.

Done right, every sale updates one stock count, Shopify shows the right quantity, and the sale lands in your books without anyone typing it twice.

1. Decide what should sync

A useful Shopify ERP integration covers six flows:

  • Products and collections: created once, published to Shopify.
  • Inventory per location: the quantity Shopify is allowed to sell.
  • Orders: from Shopify into the ERP, as soon as they are placed.
  • Fulfilment and tracking: from the ERP or courier back to Shopify.
  • Refunds and returns: recorded against the original order, with stock put back.
  • Customers: so order history and dues follow the person.

2. Choose one master for products and stock

The most common mistake is letting two systems both change stock. Pick one master:

  • If you sell only on Shopify, Shopify can stay in charge of stock.
  • If you also sell at a counter, from a warehouse, or on Daraz, TikTok Shop or Shopee, the ERP must be the master. It is the only system that sees every sale. Shopify then receives stock figures from the ERP.

3. Map before you sync

Before switching anything on, make sure every Shopify variant matches exactly one ERP item:

  • One SKU per variant, and no duplicate SKUs.
  • Bundles defined in the ERP, so selling a bundle reduces each component.
  • A report that lists unmapped items. For example, Revebe ERP's Shopify Mapping Report compares ERP stock with Shopify line by line and syncs the differences.

4. Design the order flow

For a typical Pakistani COD order, the flow looks like this:

  1. The order lands in the ERP.
  2. The buyer is confirmed.
  3. The courier is booked.
  4. The tracking number goes back to Shopify and the order is marked fulfilled.
  5. The sale is recorded on fulfilment.
  6. Delivery is tracked.
  7. The courier's COD payment is matched.

A return comes back as a refund on Shopify and a return in the ERP, with the stock restored. Write this flow down before you configure anything.

5. Plan stock across locations

Decide three things:

  • which shops and warehouses may sell online;
  • whether to hold back a small buffer so Shopify never shows the very last unit;
  • what happens when a counter sale takes the last piece while an online order is arriving.

With one stock pool, the counter sale reduces the same number Shopify reads, so the online store stops selling it.

6. Connect the accounting

Agree when a Shopify sale becomes revenue: on payment, or on fulfilment for COD. Then make sure four things post automatically:

  • cost of goods;
  • courier charges;
  • COD receivables (money still with couriers);
  • refunds.

This is what turns "Shopify sales" into a real profit and loss.

7. Test with real orders

Before going live, run at least ten test orders:

  • a COD order;
  • a prepaid order;
  • a partial refund;
  • a cancellation before shipping;
  • a bundle;
  • an order from a second location.

After each one, compare the ERP stock, the Shopify stock and the books.

8. Common mistakes

  • Duplicate or missing SKUs, so some products never sync.
  • Two systems both editing stock.
  • Ignoring refunds, so returned stock never comes back.
  • No plan for missed orders when a webhook fails. The ERP should recover them.
  • Rekeying courier payments into a spreadsheet instead of matching them in the system.

Where Revebe ERP fits

Disclosure: Revebe Digital wrote this guide. Revebe ERP's Shopify integration follows the approach above:

  • products and collections are managed in Revebe and published to Shopify;
  • orders come in automatically, and missed orders are recovered;
  • one stock pool is shared with the counter and other channels;
  • courier booking marks the Shopify order fulfilled;
  • sales are recorded on fulfilment and refunds as returns, flowing into a live profit and loss.

See also Shopify inventory management and Shopify order management.

Frequently asked questions

Should Shopify or the ERP control stock? Whichever system sees every sale. If you also sell in shops or on marketplaces, that is the ERP, and Shopify receives stock figures from it.

What is the most common Shopify ERP sync problem? Products that are not mapped one-to-one between the two systems, usually because of duplicate or missing SKUs.

Do I need an app to connect Shopify to an ERP? You need either the ERP's own Shopify connector or an integration app. Check which of the six flows above it actually syncs, and in which direction.

How long does a Shopify ERP integration take? It depends on how clean your product data is. Mapping SKUs and testing orders usually takes longer than the technical connection itself.