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, then bench --site <your-site> install-app ecommerce_integrations.

Connect to Unicommerce ​

  1. Open Unicommerce Settings.
  2. Select Enable Unicommerce.
  3. Enter your Unicommerce site, user name, and password.
  4. Keep the default client ID, unless you configured another one in Unicommerce. Ask Unicommerce support if you are not sure.
  5. 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.

  1. In Unicommerce Settings, select Upload new items to Unicommerce.
  2. Set a Default Item Group. ERPNext uses it when an item has no item group.
  3. On each item to upload, select Sync with Unicommerce. You can select it on existing items too.
  4. 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 fieldUnicommerce fieldNote
Item CodeSKUUnicommerce SKU rules apply
Item NameItem Name
DescriptionDescription
Weight per UnitWeightOnly if the weight is in grams
Shelf Life In DaysShelf life
HSN CodeHSN Code
ImageImage
Unicommerce item length, width, heightLength, Width, Height
DisabledEnabledThe opposite value
EAN barcodeEAN
UPC barcodeUPC-A
Item GroupProduct 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.

  1. In the Inventory Sync section of Unicommerce Settings, select the inventory sync checkbox.
  2. Set the sync frequency. 15 to 60 minutes is a good value.
  3. In the warehouse mapping table, add each Unicommerce facility code, and link it to an ERPNext warehouse.
  4. 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.

How orders flow between Unicommerce and ERPNext

  1. 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.
  2. For each sales channel, create a Unicommerce Channel. Enter the channel ID, the default warehouse, the company, the accounts, and the naming series.
  3. If the marketplace ships the orders of this channel, select Shipping Handled by marketplace.
  4. 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.

  1. Create a Unicommerce Shipping Provider and a Unicommerce Shipping Method. Find the codes on the manifest page of Unicommerce.
  2. When the packages are ready, create a Unicommerce Shipment Manifest.
  3. Select the channel ID, the shipping method, and the shipping provider code.
  4. Select Get Packages to fetch open orders, or scan each package in Scan AWB Code.
  5. 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.