Skip to main content

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

  1. Download the module ZIP from your ECOSIRE Dashboard
  2. Extract to your Odoo addons directory:
    unzip ecosire-magento-*.zip -d /opt/odoo/addons/
  3. Restart the Odoo service:
    sudo systemctl restart odoo
  4. Navigate to Apps, click Update Apps List
  5. Search for the module and click Install
  6. Enter your ECOSIRE license key when prompted

Configuration

Step 1: Obtain Magento API Credentials

Option A: Integration Token (recommended)

  1. In Magento Admin, go to System > Integrations
  2. Click Add New Integration
  3. Set the required API resources (Catalog, Sales, Customers, Inventory)
  4. After activation, note the Access Token

Option B: Admin Token

  1. Use an existing Magento admin username and password
  2. The module will call /rest/V1/integration/admin/token to obtain a session token
  3. Note: Admin tokens expire; Integration tokens are persistent

Step 2: Connect in Odoo

  1. Navigate to Magento Store Management > Configuration
  2. 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)
  3. Click Test Connection to verify API access
  4. 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

  1. Go to Magento Store Management > Operations > Initial Import
  2. Select data types to import (Products, Customers, Orders)
  3. Set date range for historical orders
  4. Click Start Import and monitor progress in the sync log

API Details

FieldValue
Auth methodBearer Token (Integration) or Admin Token (username/password)
Base URLYour Magento URL (user-configured)
API path/rest/V1/{endpoint}
Admin token URL/rest/V1/integration/admin/token
Content-Typeapplication/json
Key config fieldsbase_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

IssueSolution
Connection failedVerify API credentials; check network connectivity
Sync not runningCheck Odoo scheduled actions (cron jobs) are enabled
Duplicate productsReview product mapping; ensure SKU matching is configured
Orders not importingVerify order status filters and date range settings
401 UnauthorizedVerify access token or admin credentials; integration tokens do not expire, admin tokens do
Multi-store confusionEnsure the correct store view scope is configured in mapping
Attribute sync errorsVerify attribute sets in Magento match mapped Odoo attributes
Configurable product mismatchMap Magento configurable product options to Odoo product variants
License not activeVerify your ECOSIRE license key at Settings > ECOSIRE License

Support