Shopify Integration with ERPNext: Connectors vs Custom Sync

Compare native connectors, third-party apps and custom sync for Shopify integration with ERPNext. Learn what each covers, where they break, and how to choose.

Shopify Integration with ERPNext: Connectors vs Custom Sync

If you run ERPNext as your ERP and Shopify as your storefront, you need a reliable Shopify integration with ERPNext to keep products, stock, orders and invoices in sync. The search intent is clear: you want to know whether to use a ready-made connector, a third-party app, or build a custom sync. This article compares all three, with practical steps and a decision framework.

What ERPNext and Shopify each own

Before choosing an integration approach, map which system is the source of truth for each data type. A typical split looks like this:

Data Usually mastered in Synced to the other side?
Products (SKU, title, description, images) ERPNext (Item) Yes, to Shopify
Prices ERPNext (Price List) or Shopify Yes, one direction
Stock levels ERPNext (Bin) Yes, to Shopify
Orders Shopify Yes, to ERPNext (Sales Order)
Invoices & payments ERPNext Yes, back to Shopify (optional)
Customers Either (needs a rule) Yes, both ways with deduplication

Decide these rules first. Most integration failures start with unclear ownership, not bad code.

Native connectors and third-party apps: what they cover and where they break

There is no official native connector from Shopify or ERPNext. However, several third-party apps and open-source connectors exist, such as the ERPNext Shopify Connector (often called "ERPNext Shopify Integration" on GitHub) and paid SaaS middleware. They typically cover:

  • Product export from ERPNext to Shopify (items, variants, images)
  • Stock level sync (often near real-time or scheduled)
  • Order import from Shopify to ERPNext (as Sales Order or Sales Invoice)
  • Customer creation and matching by email

Where they break:

  • Complex product structures: bundles, configurable products, or custom attributes may not map cleanly.
  • Multi-warehouse stock: many connectors sync only total stock, not per-warehouse availability.
  • Order edits and cancellations: partial refunds, exchanges, and draft orders often need custom logic.
  • Tax and pricing rules: ERPNext tax templates vs Shopify tax overrides can conflict.
  • Error handling: silent failures, no retry, no alerting. You find out when stock is wrong.
  • Custom fields: any custom field on either side requires mapping changes.

Connectors are a good start if your catalogue is simple, you have one warehouse, and you can tolerate scheduled sync (e.g., every 15 minutes). They become fragile as you grow.

3D illustration of a cloud connected to blocks

Custom sync architecture: webhooks, REST/GraphQL, idempotency and stock reconciliation

When connectors hit limits, a custom sync gives you control. Here is a proven architecture for Shopify integration with ERPNext.

1. Use webhooks for events, polling for reconciliation

Shopify webhooks (orders/create, orders/updated, products/update, inventory_levels/update) push changes to your middleware in near real-time. ERPNext webhooks (via Frappe) can notify on Item or Bin changes. For stock, a scheduled reconciliation job every 5–15 minutes catches missed events.

2. Build a middleware layer

A small service (Node.js, Python, or PHP) sits between the two systems. It receives webhooks, validates them, and calls the Shopify Admin API (REST or GraphQL) and ERPNext REST API. This layer handles retries, logging, and alerting. We build such middleware regularly; see our Shopify apps service for examples.

3. Enforce idempotency

Every event must be processed exactly once. Use a unique key (e.g., Shopify order ID + event type) and store processed IDs in a database. If a webhook is delivered twice, the second attempt is ignored. This prevents duplicate Sales Orders in ERPNext.

4. Reconcile stock carefully

Stock is the hardest part. Define a clear rule: ERPNext is the master for stock. After every order, decrement stock in ERPNext and push the new level to Shopify. For multi-warehouse, decide which warehouse fulfills Shopify orders and sync only that warehouse's available stock. Run a nightly full reconciliation comparing ERPNext Bin quantities to Shopify inventory levels and flag discrepancies.

5. Map data with a configurable schema

Product fields, tax codes, payment methods, and customer groups need explicit mapping. Store mappings in a config file or database so you can change them without redeploying code. For example, map ERPNext Item Group to Shopify product type, and ERPNext Territory to Shopify customer tag.

6. Handle errors and alerts

Log every failed API call with payload and response. Set up alerts (email or Slack) for repeated failures. Provide a dead-letter queue for manual review.

Cost, timeline and maintenance compared

Approach Typical setup cost Timeline Maintenance Best for
Open-source connector Low (free to $500) 1–3 days Medium (updates, bug fixes) Simple catalogues, single warehouse, technical team
Paid SaaS middleware $50–$500/month 1–2 weeks Low (vendor handles) Standard needs, no custom fields
Custom sync $5k–$20k+ 4–8 weeks Medium (you own code) Complex catalogues, multi-warehouse, custom workflows

These are rough ranges; actual cost depends on complexity. Custom sync costs more upfront but often pays off in reduced manual work and fewer stock errors.

When to build custom and how we scope it

Build custom when:

  • You have more than one warehouse or location and need per-warehouse stock on Shopify.
  • Your product data includes bundles, kits, or custom attributes that connectors can't map.
  • You need real-time sync (under 1 minute) for high order volume.
  • You have custom pricing, tax, or discount rules that must be enforced consistently.
  • You need audit trails and error handling for compliance.

We scope custom sync in four steps:

  1. Discovery: map data flows, identify sources of truth, list custom fields and edge cases.
  2. Architecture: design webhook endpoints, idempotency store, reconciliation jobs, and error handling.
  3. Implementation: build middleware, configure mappings, set up monitoring.
  4. Testing & handover: run parallel sync with a test store, then go live with a rollback plan.

If you're unsure which path fits, start with a connector and monitor failures. When you spend more than a few hours a week fixing sync issues, custom becomes cheaper. For a deeper comparison of our integration approach, see our products page.

Ready to discuss your ERPNext-Shopify sync? Contact us to scope your project.

Related reading

FAQ

Frequently asked questions

Is there an official Shopify integration with ERPNext?

No, neither Shopify nor ERPNext offers an official native connector. You can use third-party apps, open-source connectors, or build a custom sync.

Can I sync multiple warehouses from ERPNext to Shopify?

Most ready-made connectors sync only total stock. For per-warehouse availability, you typically need a custom sync that maps each ERPNext warehouse to a Shopify location.

How often should stock sync run?

For most stores, near real-time via webhooks plus a reconciliation every 5–15 minutes works well. High-volume stores may need more frequent reconciliation.

What about order edits and refunds?

Connectors often handle only new orders. Custom sync can listen to orders/updated and refunds/create webhooks to update or cancel Sales Orders and create credit notes in ERPNext.

How long does a custom Shopify-ERPNext integration take?

A typical custom sync takes 4–8 weeks from discovery to go-live, depending on catalogue complexity and custom rules.

Need a reliable Shopify-ERPNext sync?

We build custom integrations that keep stock, orders and invoices accurate. Tell us about your setup and we'll recommend the right approach.