Set up Unicommerce
Unicommerce lets you sell on many marketplaces and process all orders in one interface, called Uniware. The Unicommerce integration connects Uniware and ERPNext in both directions:
- Item catalog sync (both directions).
- Inventory sync (from ERPNext to Unicommerce).
- New Sales Order sync.
- Sales Invoice sync, or Sales Invoice creation in ERPNext. Use one of the two.
INFO
The Unicommerce integration is part of the ecommerce_integrations app.
Install the app
- Frappe Cloud: install Ecommerce Integrations from the Frappe Cloud Marketplace in your site dashboard.
- Hosted by Frappe: raise a support ticket to get the app installed.
- Self-hosted: run
bench get-app ecommerce_integrations --branch main, thenbench --site <your-site> install-app ecommerce_integrations.
Connect to Unicommerce
- Open Unicommerce Settings.
- Select Enable Unicommerce.
- Enter your Unicommerce site, user name, and password.
- Keep the default client ID, unless you configured another one in Unicommerce. Ask Unicommerce support if you are not sure.
- Save. ERPNext authenticates with Unicommerce and adds the custom fields that the integration needs.
When the access and refresh tokens appear in the Authentication Details section, the connection works.
Sync items
Every hour, ERPNext uploads new items to Unicommerce.
- In Unicommerce Settings, select Upload new items to Unicommerce.
- Set a Default Item Group. ERPNext uses it when an item has no item group.
- On each item to upload, select Sync with Unicommerce. You can select it on existing items too.
- Map each item group to its Unicommerce product category. Find the category code in Unicommerce, and enter it on the Item Group in ERPNext.
WARNING
The SKU code in Unicommerce cannot change. Do not rename the item code after the item is synced.
| ERPNext field | Unicommerce field | Note |
|---|---|---|
| Item Code | SKU | Unicommerce SKU rules apply |
| Item Name | Item Name | |
| Description | Description | |
| Weight per Unit | Weight | Only if the weight is in grams |
| Shelf Life In Days | Shelf life | |
| HSN Code | HSN Code | |
| Image | Image | |
| Unicommerce item length, width, height | Length, Width, Height | |
| Disabled | Enabled | The opposite value |
| EAN barcode | EAN | |
| UPC barcode | UPC-A | |
| Item Group | Product category |
Sync inventory
ERPNext pushes stock changes to Unicommerce at the interval that you set. ERPNext is the source of truth, and its values overwrite the stock in Unicommerce.
- In the Inventory Sync section of Unicommerce Settings, select the inventory sync checkbox.
- Set the sync frequency. 15 to 60 minutes is a good value.
- In the warehouse mapping table, add each Unicommerce facility code, and link it to an ERPNext warehouse.
- Select Enabled for each facility to sync, and save.
WARNING
ERPNext pushes all stock to the DEFAULT shelf. Keep only one shelf, named DEFAULT, in Unicommerce. Fractional quantities are not supported.
Set up order sync for each channel
You can process orders in ERPNext or in Unicommerce. In both cases, set up the order sync first.

- In the Sales Order Sync section of Unicommerce Settings, set the sync frequency (30 to 60 minutes), the default customer group, and the naming series.
- For each sales channel, create a Unicommerce Channel. Enter the channel ID, the default warehouse, the company, the accounts, and the naming series.
- If the marketplace ships the orders of this channel, select Shipping Handled by marketplace.
- Select Enabled on the channel, and save.
New orders in Unicommerce now become Sales Orders in ERPNext. New items in an order are created from the Unicommerce data. The Unicommerce Details section of the Sales Order shows the Unicommerce data and status. ERPNext updates the status at intervals.
Choose how to invoice
- Invoice in Unicommerce (recommended): select Only Sync Completed Orders. ERPNext syncs only orders that Unicommerce has fully processed, with their invoices.
- Invoice in ERPNext: on the synced Sales Order, select Unicommerce > Generate Invoice. ERPNext creates a Sales Invoice and reduces the stock.
Ship orders with a manifest
If you invoice in ERPNext, send a shipment manifest to tell Unicommerce that the orders shipped.
- Create a Unicommerce Shipping Provider and a Unicommerce Shipping Method. Find the codes on the manifest page of Unicommerce.
- When the packages are ready, create a Unicommerce Shipment Manifest.
- Select the channel ID, the shipping method, and the shipping provider code.
- Select Get Packages to fetch open orders, or scan each package in Scan AWB Code.
- Save and submit the manifest. ERPNext creates and closes the same manifest in Unicommerce, marks the shipments as dispatched, and attaches the manifest PDF.
How cancellations and returns sync
- Cancellations: when an order is cancelled in Unicommerce, ERPNext cancels the Sales Order. For a partial cancellation, ERPNext removes the cancelled items. The sync runs every hour and before each invoice.
- Return to origin (RTO): when a shipment returns to you, ERPNext creates a draft full Credit Note with Update Stock selected.
- Customer-initiated return (CIR): ERPNext creates a draft full or partial Credit Note.
ERPNext stores the return tracking code on the Credit Note. It uses the Return Warehouse from Unicommerce Settings, or the original warehouse if none is set. To see all returns, filter the Sales Invoice list by Is Return.
Troubleshooting
If the authentication fails, check the site, user name, and password. If they are correct, a firewall may block your server. Ask Unicommerce support to allow the IP address of your server.