Skip to main content

Designing an Odoo ↔ Shopify Integration: Data Flow First, Code Second

Updated 3 min readMarkdown

Most broken Odoo–Shopify integrations weren't badly coded. They were badly planned. Nobody decided which system owns which data, so both systems edit the same records and overwrite each other.

Here's the planning step that prevents most of that, plus the build options.

Step 1: list the objects

An Odoo–Shopify integration usually syncs five things:

  • Products and variants: titles, SKUs, barcodes, prices, images
  • Inventory: stock per SKU, ideally per location (the most time-sensitive object)
  • Orders: Shopify orders become Odoo sales orders, with line items, discounts, shipping and tax
  • Customers: contacts and addresses, deduplicated
  • Fulfilment and accounting: tracking back to Shopify; invoices, payments and credit notes in Odoo

Step 2: give every object one direction

Object Direction
Catalogue Odoo → Shopify
Inventory Odoo → Shopify
Orders Shopify → Odoo
Fulfilment status Odoo → Shopify

One system is the master for each object, and changes flow one way. Get operations and finance to sign this off before anyone writes code.

Step 3: pick the approach

Native connector. Odoo has a built-in Shopify connector, and there are third-party ones in the Odoo app store. Fastest and cheapest to start. Fine for a simple catalogue, one warehouse and standard tax. Limited control when your rules don't match its assumptions.

Middleware. Sits between the two, maps fields visually, and adds retries, error logs and queues so failures don't vanish silently. A recurring cost and another vendor.

Custom API integration. Shopify's Admin API and webhooks on one side, Odoo's external API over XML-RPC or JSON-RPC on the other. The most work to own, but often the only thing that holds up with bundles, kits, multi-location stock or marketplace sales. Treat it as a product: version control, a staging store, monitoring.

Where it breaks in production

  • SKU mismatches. A missing SKU or a case/whitespace difference means records silently fail to match. Reconcile SKUs first and make SKU the key.
  • Inventory race conditions. If stock syncs every few minutes, two orders can both buy the last unit. Use real-time webhooks for stock decrements, pick one authoritative stock source, and keep a buffer for fast movers.
  • GST invoicing (India). HSN codes, CGST/SGST/IGST splits by ship-to state, sequential invoice numbers. Shopify tax fields rarely map cleanly to Odoo's tax engine, so map and test it explicitly.
  • Partial refunds. A refund should create a credit note and restock where relevant. Partials are where most integrations quietly break.
  • Multiple warehouses. Inventory and fulfilment must be location-aware on both sides.

Rollout

  1. Map objects and directions, and get sign-off.
  2. Clean SKUs and customers in both systems.
  3. Build on a staging Shopify store and an Odoo test database.
  4. Pilot with a few SKUs and real orders, and watch the error logs daily.
  5. Add alerts so a broken sync reaches a human.
  6. Document the mapping and recovery steps.

Full guide: Odoo and Shopify integration

About the author

  • We're the backend tech partner for agencies and D2C brands building Shopify stores that ship fast, score on Core Web Vitals, and convert. CRO, Shopify, SEO, custom software, Odoo, and AI development under one roof, measured in your analytics, not our screenshots. One bench, one accountable team, one invoice. Live across multiple Indian jewelry stores running our gold-rate Price Engine. 450+ projects delivered, 94% client retention. Visit: unfoldcro.com

No comments yet. Be the first to comment.