Magento Store Management
Connect your Magento 2 store to Odoo through the Magento 2 REST API (V1). This module supports two authentication methods: Bearer Token (integration access token) and Admin Token (username/password). Synchronize your product catalog, import orders, manage customers, and track inventory between Magento 2 and Odoo with a real-time OWL 2 dashboard.
Compatibility: Odoo 17 / 18 / 19 Price: $499 (one-time) License: Up to 3 domain activations
Key Features
- Magento 2 REST API integration (V1 endpoints)
- Bearer Token and Admin Token authentication
- Bidirectional product and category synchronization
- Configurable, simple, grouped, and bundle product support
- Automatic order import with status updates
- Real-time inventory synchronization across sources
- Customer account synchronization
- Multi-website and multi-store view support
- Attribute set and attribute mapping
- CMS content awareness
- Tax class mapping
- Coupon and cart price rule sync
- Customizable field mapping
Prerequisites
- Odoo 17, 18, or 19 (Community or Enterprise edition)
- An active ECOSIRE license for this module
- A Magento 2 installation (2.4+) with REST API enabled
- Either an Integration Access Token or Admin credentials
Installation
- Download the module ZIP from your ECOSIRE Dashboard
- Extract to your Odoo addons directory:
unzip ecosire-magento-*.zip -d /opt/odoo/addons/ - Restart the Odoo service:
sudo systemctl restart odoo - Navigate to Apps, click Update Apps List
- Search for the module and click Install
- Enter your ECOSIRE license key when prompted
Configuration
Step 1: Obtain Magento API Credentials
Option A: Integration Token (recommended)
- In Magento Admin, go to System > Integrations
- Click Add New Integration
- Set the required API resources (Catalog, Sales, Customers, Inventory)
- After activation, note the Access Token
Option B: Admin Token
- Use an existing Magento admin username and password
- The module will call
/rest/V1/integration/admin/tokento obtain a session token - Note: Admin tokens expire; Integration tokens are persistent
Step 2: Connect in Odoo
- Navigate to Magento Store Management > Configuration
- Create a new configuration and enter:
- Magento URL (
base_url) -- your Magento store URL (e.g.,https://magento.example.com) - Access Token (
access_token) -- Integration access token (Option A) - Or: Username (
username) and Password (password) for Admin Token (Option B)
- Magento URL (
- Click Test Connection to verify API access
- Configure your default warehouse and company mapping
Step 3: Configure Sync Settings
Product Sync
- Choose sync direction: Magento-to-Odoo, Odoo-to-Magento, or bidirectional
- Set sync interval: scheduled (every 5, 15, or 60 minutes)
- Configure product field mapping and attribute set mapping
- Support for simple, configurable, grouped, and bundle products
Inventory Sync
- Map Odoo warehouses to Magento inventory sources
- Set buffer stock quantities if needed
- Enable real-time stock updates on changes
- Multi-source inventory (MSI) support
Order Sync
- Enable automatic order import
- Map Magento payment methods to Odoo payment journals
- Configure fulfillment sync to push shipment and tracking data
- Multi-store view order routing
Initial Sync
- Go to Magento Store Management > Operations > Initial Import
- Select data types to import (Products, Customers, Orders)
- Set date range for historical orders
- Click Start Import and monitor progress in the sync log
API Details
| Field | Value |
|---|---|
| Auth method | Bearer Token (Integration) or Admin Token (username/password) |
| Base URL | Your Magento URL (user-configured) |
| API path | /rest/V1/{endpoint} |
| Admin token URL | /rest/V1/integration/admin/token |
| Content-Type | application/json |
| Key config fields | base_url, access_token (or username + password) |
Dashboard
The built-in OWL 2 dashboard provides real-time visibility into your integration:
- 6 KPI cards -- Revenue, Orders, Customers, Products, Avg Order Value, and Sync Health -- each with period-over-period delta indicators
- Sales Trend chart (Chart.js line chart) with interactive date filtering
- Order Status breakdown (doughnut chart) showing distribution across statuses
- Period filters -- Today, 7 days, 30 days, 90 days, Year, or Custom date range
- Activity feed showing recent sync log entries with type indicators
- Quick action buttons for Products, Orders, Customers, Queue, Logs, and Settings
- Status footer with Queue Jobs, Errors, Out of Stock, and Sync Rate
- Auto-refresh every 60 seconds with dark mode support
Troubleshooting
| Issue | Solution |
|---|---|
| Connection failed | Verify API credentials; check network connectivity |
| Sync not running | Check Odoo scheduled actions (cron jobs) are enabled |
| Duplicate products | Review product mapping; ensure SKU matching is configured |
| Orders not importing | Verify order status filters and date range settings |
| 401 Unauthorized | Verify access token or admin credentials; integration tokens do not expire, admin tokens do |
| Multi-store confusion | Ensure the correct store view scope is configured in mapping |
| Attribute sync errors | Verify attribute sets in Magento match mapped Odoo attributes |
| Configurable product mismatch | Map Magento configurable product options to Odoo product variants |
| License not active | Verify your ECOSIRE license key at Settings > ECOSIRE License |