This quickstart walks you through installing the ERPNext Medusa Integration app on your Frappe bench, connecting it to a running Medusa backend, and triggering your first product sync by saving a Website Item in ERPNext.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/aerele/medusa_integration/llms.txt
Use this file to discover all available pages before exploring further.
Fetch the app with bench
Run the following command from your bench directory to download the app from GitHub:This clones the
medusa_integration repository into your bench’s apps/ directory and installs its Python dependencies.Install the app on your site
Replace This registers the app with your site and creates any required database tables.
<your-site> with your ERPNext site name (for example, mysite.localhost):Open Medusa Configuration in ERPNext
Log in to your ERPNext desk as a user with the System Manager role. Navigate to:Search bar → Medusa ConfigurationOr go to Medusa Integration → Medusa Configuration in the module menu.
Enable the integration and enter your Medusa URL
In the Medusa Configuration form:
- Check the Enable checkbox to activate the integration.
- Enter your Medusa backend URL in the Backend URL field (for example,
https://your-medusa-backend.com). - Enter the Admin Email and Admin Password for your Medusa admin user.
- Optionally enter your Frontend URL — the storefront base URL used in notification emails sent to customers.
- Click Save.
Sync your first product
To push a product to Medusa, open any Website Item in ERPNext (or create a new one) and click Save.The
website_item_validate hook fires on save and pushes the item to your Medusa product catalog. You can verify the sync by checking the product list in your Medusa admin dashboard.Only items saved as Website Items (not plain Items) are pushed to Medusa. If no Website Item exists yet, go to E Commerce → Website Item → New and create one.
What happens next
Once the integration is running, it handles syncing automatically:- Product changes — Any subsequent save of a Website Item updates the corresponding Medusa product.
- Price changes — Saving an Item Price record triggers a Medusa price list update.
- Incoming orders — When a customer places an order in your Medusa storefront, the integration creates a Quotation and (after confirmation) a Sales Order in ERPNext.
- Nightly bulk sync — At 01:00 every day, the scheduler exports all items, images, and missing prices to ensure Medusa stays fully up to date.
Configuration reference
See all available settings including coupon discount options and the Frontend URL.
Sync guides
Learn how each sync — products, orders, inventory, pricing — works in detail.