| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) • Invoicing (account) |
| Lines of code | 625 |
| Technical Name |
meli_connector |
| License | LGPL-3 |
| Website | https://github.com/bernardo-martinez |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) • Invoicing (account) |
| Lines of code | 625 |
| Technical Name |
meli_connector |
| License | LGPL-3 |
| Website | https://github.com/bernardo-martinez |
MeLi Connector
MercadoLibre Connector for Odoo
Seamless Integration
Connect Odoo with MercadoLibre effortlessly
- Easy configuration page to set up your MercadoLibre integration with Odoo.
- Automatic synchronization of product prices and stock quantities from Odoo to MercadoLibre.
- Orders from MercadoLibre automatically create confirmed Sale Orders in Odoo.
Please refer to the documentation tab for more detailed instructions on each step.
1. Integration setup
Easy configuration page to set up your MercadoLibre integration with Odoo
Include your MercadoLibre API credentials in the Settings configuration page to set up your integration:
2. Keep Odoo as your source of truth
Centralized inventory and pricing management
Enable an Odoo product price and stock quantity synchronization with MercadoLibre by including its MercadoLibre ID in the product form. Afterwards every time you change the price or stock quantity in Odoo, the changes are instantly reflected on your MercadoLibre store.
3. Automated order processing
From MercadoLibre to Odoo seamlessly
If you setup a webhook URL in MercadoLibre, every time a customer completes a purchase on MercadoLibre, the connector automatically creates a confirmed Sale Order in Odoo, ready for fulfillment and shipping:
MercadoLibre Connector for Odoo
With Odoo as your source of truth, you can automatically synchronize product prices and stock quantities to MercadoLibre, and receive orders directly into your Odoo system.
Features
- Easy Configuration: Simple setup page to connect your Odoo instance with MercadoLibre
- Automatic Synchronization: Real-time sync of product prices and stock quantities from Odoo to MercadoLibre
- Order Management: Automatic creation of confirmed Sale Orders in Odoo when customers purchase on MercadoLibre
Configuration
Step 1: Create MercadoLibre Application
Go to MercadoLibre Developers Center for your country, for example for Mexico
Log in with your MercadoLibre account
Click on "Create Application" or select an existing one
Fill in the required information: - Application Name: Choose a descriptive name for your integration - Short name: Choose a short name for your integration - Description: Choose a description for your integration
After creating the application, you'll get: - App ID: MercadoLibre will generate a unique App ID for your application, you will need to copy this value and paste it in the MercadoLibre integration settings, located in your Odoo Settings configuration page - App Secret: MercadoLibre will generate a unique App Secret for your application, you will need to copy this value and paste it in the MercadoLibre integration settings, located in your Odoo Settings configuration page
In the next step, you will need to set up: - Redirect URI: You will need to introduce the public URL of your Odoo instance appending /auth/mercadolibre, for example: https://your-odoo-domain.com/auth/mercadolibre and you will need to paste it in the MercadoLibre integration settings, located in your Odoo Settings configuration page. - Select MercadoLibre as the business unit - In the permissions section, you will need to select at least the following permissions:
- Read orders: This permission is required to create Sale Orders in Odoo
- Read and write publications: This permission is required to keep your products data (price and stock) in sync with MercadoLibre
- Tópicos: You will need to select Orders_v2 within Orders
- Callback URL: You will need to introduce the public URL of your Odoo instance appending /webhooks/mercadolibre, for example: https://your-odoo-domain.com/webhooks/mercadolibre. This is to notify Odoo when a new order is created in MercadoLibre.
Click on "Save" to save the application settings.
Step 2: Configure your Odoo instance
- In your Odoo instance, go to Settings > MercadoLibre Integration
- Fill in the configuration form: - Name: Choose a descriptive name for your integration - User: Select the Odoo user who will be assigned to created Sale Orders - Default Buyer: Select the customer/partner that will be used as the buyer for MercadoLibre orders. Note this is needed because MercadoLibre stopped providing buyer information via API. - Active: Check the box to activate the integration - Client ID: Paste the Client ID from your MercadoLibre application - Client Secret: Paste the Client Secret from your MercadoLibre application - Redirect URI: Paste the Redirect URI from your MercadoLibre application (the one ending in /auth/mercadolibre) - Country: Select the country of your MercadoLibre application
- Click "Save" to save the configuration.
Step 3: Login to MercadoLibre
- In your integration settings, click on "Login to MercadoLibre" button
- You'll be redirected to MercadoLibre to authorize the application
- After authorization, you'll be redirected back to Odoo with the integration active
- You will see the Tokens filled in the corresponding fields (if no just refresh the page)
- Integration is now active and ready to use.
Step 4: Configure your products
- In your Odoo instance, go to Inventory > Products > Products
- Open the product you want to synchronize with MercadoLibre
- In the product form, find the Meli Id field and enter the MercadoLibre Product ID of the product
- Click Save to save the product
Usage
Automatic Price and Stock Synchronization
Once configured, the connector automatically synchronizes your products:
- Price Updates: When you change a product's price in Odoo, it automatically updates on MercadoLibre
- Stock Updates: When stock quantities change in Odoo, the changes are reflected on MercadoLibre
- Real-time Sync: Changes are synchronized immediately when you save the product, if there is an error, it will be shown in the product form in the Chatter section.
To update a product: 1. Go to Inventory > Products > Products 2. Open the product you want to update 3. Modify the price or stock quantity, ensure the product has a valid MercadoLibre Product ID 4. Click Save 5. The changes will be automatically synchronized to MercadoLibre
Order Processing
When customers purchase your products on MercadoLibre:
- The connector automatically detects the new order
- A confirmed Sale Order is created in Odoo for the buyer selected in the integration settings
- The order includes: - Product details and quantities - Integration buyer information - MercadoLibre user ID in the Customer Reference field (in the Other info tab) - MercadLibre Order ID in the Source Document field (in the Other info tab)
- The order is ready for fulfillment and shipping from Odoo
To process orders: 1. Go to Sales > Orders > Quotations 2. Find the orders created from MercadoLibre (they'll be in "Confirmed" state) 3. Process them as you would any other Odoo sale order 4. Update the order status as needed
Troubleshooting
Common Issues and Solutions:
"Authentication Failed" Error: - Verify your Client ID and Client Secret are correct - Ensure the Redirect URI matches exactly in both Odoo and MercadoLibre - Check that your MercadoLibre application is active
"Product Not Syncing" Error: - Verify the MercadoLibre Product ID is correct - Ensure the product exists in your MercadoLibre store - Check that the integration is properly configured - Check the Chatter section of the product for any error messages
"Order Not Created" Error: - Verify the webhook is properly configured in MercadoLibre - Check the Odoo logs for any error messages - Ensure the Default Buyer is properly configured
Support
For additional support or questions about this module, please contact: https://github.com/bernardo-martinez
Technical Details
- Odoo Version: Compatible with Odoo 18
- MercadoLibre API: Uses MercadoLibre's official API
- Authentication: OAuth 2.0 flow
- Sync Method: Real-time webhook-based synchronization
- Data Flow: Odoo → MercadoLibre (prices/stock) via API, MercadoLibre → Odoo (orders) via webhooks, for security reasons only webhooks coming from MercadoLibre's IP addresses are handled.
Please log in to comment on this module