Start by deciding which system owns each number

The first sign of a weak integration is rarely an error message. It is a product the website shows as in stock that the warehouse cannot pick, an invoice raised twice in the accounts, or a team quietly re-keying orders because nobody trusts the sync any more. Most of these trace back to a question that was never answered at the start: which system holds the true figure?

Before you compare routes, write a one-page ownership table. Give each piece of data its own row: stock quantity, product title and description, price, cost price, orders, refunds, customers. For each row, name the system that owns it, the direction it travels and how often it moves. Stock usually belongs to whichever system the warehouse counts against, which is often the ERP or warehouse system rather than Shopify. Orders start in Shopify and travel outwards. Where two systems both claim the same field, one will eventually overwrite the other.

Shopify's own API is built around this split. The inventorySetQuantities mutation sets absolute values, and Shopify says to use it only when calling on behalf of a system that acts as the source of truth for inventory quantities. Otherwise it points you to inventoryAdjustQuantities, which changes quantities by a delta. A Shopify ERP integration that pushes absolute numbers from a system that is not really the master is one of the quickest ways to get stock drift.

How Shopify holds stock, and why "the stock figure" needs defining

Shopify does not keep one stock number per product. Its guide to managing quantities and states explains that every variant has a 1:1 relationship with an inventory item, and every inventory item has an inventory level for each location where it is stocked. The InventoryItem object is where the SKU lives. A store with a warehouse and a shop therefore has two levels for every variant, and each ERP location has to map to exactly one Shopify location.

Each level then splits its quantity into states. Shopify's inventory states table defines the ones that matter most for a sync:

  • available: what the merchant can sell.
  • committed: units in a placed order that has not been fulfilled, reserved on a draft order, or in a transfer or shipment marked ready to ship.
  • incoming: stock on its way, and the only state representing units that are not physically at the location.
  • on_hand: everything physically there, equal to the sum of available, committed, reserved, damaged, safety_stock and quality_control.

This is where a lot of overselling starts. If the ERP sends a physical count and the sync writes it into available, every unit already committed to an unfulfilled Shopify order is offered for sale a second time. Agree in writing whether the feed carries on_hand or available, and which side deducts open orders.

Clean up SKUs and variants before anything syncs

The SKU is the key both systems have to agree on, so it must be unique and identical on each side. Export products from Shopify and the item list from the ERP, put them side by side and look for:

  • variants with a blank SKU
  • duplicates, including ones that differ only by a trailing space or letter case
  • variants with quantity tracking switched off, which the inventory item records
  • items that exist in one system but not the other
  • retired SKUs reused for new products

Variants multiply quickly. In fashion, one style can run across sizes, lengths and colours, and every combination is a separate variant with its own inventory item. Shopify's rules on adding variants allow up to 2,048 variants per product and up to 3 options. Choices collected through line item properties instead of variants have no inventory item, so no stock system can track them. If the store has 500,000 or more variants, there is a daily limit of 10,000 new variants added through an app or CSV import, which does not apply on Shopify Plus. That is worth knowing before you plan a first full catalogue load.

Off-the-shelf connectors: quickest to start, hardest to bend

A ready-made connector app for your ERP or warehouse system is usually the fastest way to get orders and stock moving. The vendor maintains it, keeps it on a supported API version and has already met the common cases. The trade-off is control: the field mapping, sync frequency and error handling are the vendor's, and a rule specific to your business may simply not be possible.

Put these questions to any vendor before you commit:

  1. Which system does it treat as the stock master, and can that be set field by field?
  2. When it writes stock, does it pass the quantity it expects Shopify to hold, or does it opt out of that check?
  3. Does it rely on webhooks alone, or also run a regular reconciliation?
  4. Where are failed records logged, and who is told?
  5. How does it handle several locations, bundles and partial fulfilments?

Question 2 matters more than it looks. As of API version 2026-04, every quantity sent to inventorySetQuantities must include a changeFromQuantity, and if the stored figure does not match, Shopify returns a CHANGE_FROM_QUANTITY_STALE error instead of overwriting. Shopify's guide gives the case of a process expecting 100 units when the current figure is 80: the request is denied. Passing null skips the check, and Shopify warns that this can lead to inaccurate quantities when requests run concurrently.

Zapier or Make: good at events, weak at reconciling stock

Middleware such as Zapier and Make, both of which we work with, is good at the pattern "when this happens in Shopify, do that elsewhere": a paid order creating a draft sales invoice, a refund raising a credit note, a low-stock alert going to the buying team. It is much weaker at the job stock syncs really need, which is comparing every SKU across both systems and correcting the differences.

The first reason is rate limits. Shopify's GraphQL Admin API rate limits are set per app and store and depend on plan: 100 points a second on Standard, 200 on Advanced Shopify, 1,000 on Shopify Plus and 2,000 on Shopify for enterprise, with no single query allowed to exceed 1,000 points. The REST Admin API has been legacy since 1 October 2024 and returns HTTP 429 Too Many Requests once its bucket is full. A flow that handles one order at a time rarely notices these limits. A flow that loops through the whole catalogue will.

The second reason is ownership. Flows added over time by different people end up spread across accounts, with no single view of what ran and what failed. That was the starting point for one of our anonymised case studies, where automations spread across separate tools and scripts were moved onto one monitored platform.

Custom builds: full control, and the upkeep that comes with it

A custom integration is code written for your systems and your rules. It can do the things connectors and middleware often cannot:

  • Write stock with the compare-and-swap check switched on, and record adjustments through inventoryAdjustQuantities, which tracks a reason code and an optional reference URI for an audit trail. As of version 2026-04, that mutation requires an idempotency key through the @idempotent directive, so a retried request cannot apply the same change twice.
  • Handle large catalogues with bulk operations, which return results as a JSONL file. Shopify's guide says that from API version 2026-01 each app can run up to five bulk operations of each type per shop at once, that the bulk execution itself is not subject to the normal rate limits, that a bulk query must finish within 10 days, and that results stay available for seven days.
  • Apply your own bundle, kit and location rules exactly.

What you take on is upkeep. Shopify releases a new Admin API version every quarter, supports each for at least 12 months, and the version is pinned in the request URL. A custom integration needs a yearly version check, a test order after each upgrade, and logging of the deprecation header so warnings are seen before anything breaks. It also needs hosting, monitoring and a named person who owns it.

Where integrations fail without telling anyone

Webhooks that quietly stop

Shopify's About webhooks page is blunt: "Your app shouldn't rely on receiving data from Shopify webhooks." According to its troubleshooting guide, a delivery fails if the receiving app does not respond within five seconds, Shopify retries up to eight times in a four-hour period, and if failures persist the subscription is removed. The delivery verification page adds that subscriptions created through the Admin API are deleted automatically after eight consecutive failures, with warning emails going to the app's emergency developer address. If that address is an old inbox nobody reads, the sync simply stops.

The same webhook can also arrive twice, and Shopify does not guarantee ordering. A sound integration skips duplicates using the X-Shopify-Webhook-Id header and runs a reconciliation job that fetches everything changed since the last run, using the updated_at filters many GraphQL queries support. Shopify's troubleshooting guide flags failed delivery rates over 0.5% as higher than average, so check that figure for any app that syncs stock.

Overnight jobs that never ran

A nightly stock or accounts export that fails at 2am leaves no visible trace until the morning's figures are wrong. Alert on a job that did not run at all, not only on one that ran and errored. A run log that someone checks is worth more than a clever sync nobody watches.

Bundles and kits

Decide where bundle stock is worked out. If Shopify sells a bundle the ERP does not know about, every bundle sale must reduce each component, and the bundle can only be as available as its scarcest component. Test this well before Black Friday, when overselling costs most.

Slow drift

Even a healthy sync drifts. Pick a sample of fast-moving SKUs and compare available stock in both systems every week. If the gap grows, you have found a write that is missing its check or a location that is mapped wrongly.

What drives the effort and cost of each route

We don't publish prices, because the effort depends on the store. These are the things that move it:

  • Number of systems and directions. Orders out to one warehouse is a different job from two-way stock, products and accounts.
  • Catalogue size and SKU hygiene. A clean, unique SKU list makes every route cheaper. Fixing duplicates and blanks is often the first piece of work.
  • Locations. Each extra warehouse or shop adds mapping and testing.
  • Bundles, kits and pre-orders. These are where connectors run out of options and custom logic begins.
  • The other system's API. What it exposes, and how reliably, sets the ceiling for any route.
  • Monitoring and reconciliation. Logs, alerts and a regular comparison job are part of the work, not an extra.
  • Upkeep. A connector carries an ongoing subscription, middleware carries usage and the cost of someone owning the flows, and a custom build carries hosting and the yearly API version check.

If your team rebuilds the same stock or sales spreadsheet from exports every week, that is part of the same picture; our guide to dashboards versus spreadsheets covers when a built tool is worth it.

Testing before you switch it on

Whichever route you choose, run a written set of test orders before go-live and check each one in both systems: a standard order, a partial fulfilment, a cancellation, a refund, a return, an order from each location and a bundle order. Confirm that committed, available and on_hand move as you expect in Shopify, and that the ERP and accounts agree. Then run old and new processes side by side for a short period and compare the figures daily before you retire the manual route. When we do this work, each job ends with a handover covering what was tested.

If you already have a connector or a set of Zapier or Make flows that misbehave, a one-off investigation is a perfectly good place to start, with no ongoing commitment. Send us your ownership table, even a rough one, along with the systems involved and where the numbers disagree, through our contact page. You can read more about how we approach Shopify automations and integrations, and we will agree scope and cost with you before any work begins.

Sources