
Integrating Your Online Store with Odoo ERP
When purchasing, stock and accounting live in Odoo and you sell from a separate online store, every order turns into manual work: keying in the order, adjusting stock, issuing the invoice, matching the payment. Integrating your online store with Odoo ERP removes that, provided it is designed properly. This guide is for companies in Egypt and Saudi Arabia: when Odoo's own shop is enough and when you need a custom store, what syncs and in which direction, ready connectors versus API middleware, the mistakes that keep coming up, and where e-invoicing touches the integration in both countries. Technical details come from Odoo's official documentation for version 19.
First Question: Odoo's Own Shop or a Custom Store?
Odoo ships its own eCommerce app, inside the same system: products, prices, customers and orders share one database, and the order cycle described in the order handling docs runs through sale, warehouse delivery and invoicing, with an option to invoice automatically. If that flow fits you, there is nothing to integrate, and it is the cheapest option to run.
A custom store connected to Odoo makes sense when you need a buying experience a theme cannot give you, a branded mobile app, complex B2B logic (company accounts with approvals and credit limits), or when you already have a store that sells well and do not want to rebuild it inside Odoo. In each case Odoo stays the source of truth for stock and accounting, and the store becomes a sales front end on top of it.
What Syncs, and in Which Direction
The most important decision is who owns each type of data; we covered the general principle in connecting your online store to inventory and POS. Here is how it plays out with Odoo:
Products and variants: Odoo to store
Internal references (SKUs), variants, units and taxes are managed in Odoo. Marketing content (long descriptions, images, SEO fields) usually belongs in the store, so do not force the marketing team to work inside the ERP.
Stock: Odoo to store
Odoo distinguishes the quantity physically on hand from the forecasted quantity after reservations; its inventory docs note that zeroing a product already reserved for orders turns the forecast negative. Decide which number the store shows, from which warehouse, and how often it refreshes.
Prices and pricelists: Odoo to store
Odoo pricelists apply prices to specific customers, groups or time periods. If you sell both wholesale and retail, this is the critical piece: the store must show each customer the price for their group, not the base product price.
Orders: store to Odoo
A paid or confirmed order is created in Odoo as a sales order, and the warehouse works it from there. Shipping status and tracking numbers must flow back so the customer sees them in the store.
Customers: both ways, carefully
Shoppers sign up in the store, but business customers may be created in Odoo with payment terms and credit limits. Agree on one matching key (email, mobile or tax ID) before moving any data, or contacts will be duplicated.
Invoices, payments and returns
Issue invoices from one system only, usually Odoo. Record the gateway payment against that invoice, and have a store return create a credit note in Odoo rather than a manual adjustment in accounting.
Three Ways to Integrate an Online Store with Odoo
No pattern fits every case. The choice depends on what your store runs on, order volume, how complex your pricing and stock logic are, and whether your team can maintain code. Larger projects often combine two: a ready connector for a marketplace and middleware for the store and app.
1. A ready-made connector
Odoo documents official connectors for marketplaces such as Amazon, Shopee, Lazada and TikTok Shop, and the Odoo Apps store has third-party connectors for platforms like WooCommerce. A good fit if your store runs on a known platform and your logic is standard. Before buying, check the supported Odoo version, who fixes it after an upgrade, and whether it covers pricelists and multiple warehouses.
2. Direct calls from the store to the API
The custom store calls Odoo's API directly on each order or update. Simple at first, but it ties checkout to Odoo's speed and uptime: if Odoo is slow or down, orders fail or get duplicated.
3. Middleware with a queue
A small service between the store and Odoo receives events, queues them, sends them with retries and alerts, and logs every operation. This is usually the right pattern for a custom store with medium or high volume or several sales channels, because it shields the store from Odoo outages and makes failures visible.
Odoo 19 Details That Change the Design
These come from Odoo 19's external API reference, and ignoring them means rework later.
JSON-2 instead of XML-RPC
The new API takes JSON requests at /json/2/ followed by the model and method, for example /json/2/sale.order/action_confirm, with an API key in the request header. The older XML-RPC and JSON-RPC APIs are deprecated, scheduled for removal in Odoo 22 (fall 2028) and Odoo Online 21.1 (winter 2027). Build any new integration on JSON-2.
Not available on every plan
The docs state that external API access to data is only available on Custom plans, not on One App Free or Standard. Check your plan before any development starts.
Each call is its own transaction
Every JSON-2 call runs in its own database transaction, and calls cannot be chained into one. The docs warn this is risky for reservations and payments and recommend calling a single method that does the whole operation, such as action_confirm on a sales order, or writing a dedicated method in a custom module.
A bot user and rotating keys
The docs recommend a dedicated bot user for integrations, with minimum permissions and no password. API keys cannot last more than three months, so key rotation is part of operations; forget it and the integration stops overnight.
Webhooks in and out of Odoo
Automation rules can send a webhook with selected field values when a record changes, and can receive webhooks from an external system to run an action. Useful for pushing stock updates to the store instantly, with the docs' warning that a bad setup can disrupt the database.
Mistakes That Keep Coming Up
Most integration problems do not show up in the demo; they show up weeks into live trading. These are the most common:
Inconsistent product codes
If product codes differ between the store and Odoo, matching falls back to names and breaks with the first edit. Clean up codes in Odoo before integrating, not after.
Tax and rounding
A store showing tax-inclusive prices while Odoo computes tax-exclusive produces small differences on every invoice. Agree on the calculation and rounding, and run a reconciliation test across hundreds of orders.
Duplicate orders
Retrying after a network drop can create the same order twice. Send a unique store reference with every order and check it in Odoo before creating anything.
Customisations that break on upgrade
Every custom Odoo module and third-party connector needs retesting when you upgrade. Put in the contract who handles that, and when.
Cancellations and edits after ordering
Many projects only sync order creation; then an order is cancelled in the store but stays confirmed in Odoo, stock stays reserved and the warehouse ships it anyway. Treat cancellations, edits and refunds as events with their own sync path, exactly like creation, and test them before launch.
E-Invoicing in Egypt and Saudi Arabia: Where It Meets the Integration
If Odoo issues the invoices, e-invoicing becomes part of the integration rather than a separate project, and the store must send everything the invoice needs, including customer and tax details.
Saudi Arabia: ZATCA
Odoo's Saudi localization guide documents e-invoicing modules, including l10n_sa_edi for Phase 2 integration and l10n_sa_edi_pos for point of sale. Each sales journal is onboarded with an OTP from the Fatoora portal, through sandbox, simulation and production stages. B2B invoices go through clearance and simplified B2C invoices are reported. Note that submission is not automatic on confirmation but a separate send step, so automate it. The obligation itself is set by ZATCA.
Egypt: the ETA e-invoice system
Odoo's Egypt localization guide documents the l10n_eg_edi_eta module: registering Odoo as an ERP on the tax authority's portal to get API credentials, signing invoices with a USB token per signer through an IoT box, mapping products to GS1 or EGS codes, a sales journal per branch with its activity code and branch ID, and testing on preproduction first. The ETA also publishes e-invoice and e-receipt APIs for ERP and POS systems; confirm with your tax adviser which applies to your store's sales.
BNPL if you stay on Odoo's shop
If you choose Odoo's own shop in Saudi Arabia or the UAE, Tabby documents an Odoo plugin and Tamara an Odoo 19 configuration, instead of a custom integration.
Before You Ask for a Quote
Bring these to the first meeting: your Odoo version and plan, Odoo Online or self-hosted, the apps in use (Sales, Inventory, Accounting, PoS), any existing customisations, product count and monthly orders, number of warehouses and pricelists, and which system issues invoices today. If your store is on Salla or Zid and you are considering a move, read when a custom store makes sense first.
Since 2013, N.I.T has built ecommerce stores and shopping apps for clients in Egypt and the Gulf. See our ecommerce app development service, then get a quote or contact us for a free 30-minute consultation where we review your data map and the right integration pattern.
Frequently Asked Questions
Do I need a specific Odoo plan to integrate?
According to Odoo's docs, external API access to data is only available on the Custom plan, not on One App Free or Standard. For self-hosted setups, check your licence with your Odoo partner or team.
Is the sync real-time?
It can be near real-time for orders and stock through webhooks and a queue, and scheduled for less sensitive data like descriptions. It depends on how fast products sell out and on order volume.
Can I connect a WooCommerce or Shopify store?
Yes, through third-party connectors or a custom integration. Judge any connector by the criteria above; if it does not cover your pricing and warehouse logic, middleware is the clearer path.
What happens when we upgrade Odoo?
Test the whole integration on a copy of the database before upgrading production. If your integration uses XML-RPC, plan the move to JSON-2 before the removal date.
Who issues the invoice, the store or Odoo?
One system only. Usually Odoo, since it owns accounting and the e-invoicing modules, and the store shows the customer the invoice Odoo issued.
Need a Moodle platform or eCommerce app?
We'll send you a detailed proposal within 24 hours