ERPNext - Unicommerce Integration

Prerequisites

  • ERPNext instance with Unicommerce Integration App installed
  • Uniware credentials:
    • Username
    • Password
    • Site URL
  • Client ID:

Always set to my-trusted-client in ERPNext (default)

  • Admin access to Uniware portal
  • At least one facility configured and assigned to the API user in Uniware

1. Item Sync Setup

Steps:

  1. Go to Unicommerce Settings in ERPNext.
  2. Enable:
  • Enable Unicommerce
  • Upload new items to Unicommerce
  1. Fill in:
  • Unicommerce Site URL
  • Username and Password
  • Client ID = my-trusted-client
  1. Set a Default Item Group (used if any item is missing its group).
  2. For each item to be synced, check “Sync with Unicommerce”.
  3. Map each ERPNext Item Group to the appropriate Uniware Product Category Code.
  4. [IMPORTANT] In each Item Group, add the field:
  • Unicommerce Product Category Code
    This code must match exactly with the Product Category Code from Uniware, which you can find in your Uniware portal.

If this is missing or incorrect, items may not sync or may sync under wrong category.



Issue #1: Authentication Fails Even With Correct Credentials

Symptom:

No tokens fetched on saving Unicommerce Settings. No clear error in ERPNext.

Debug (via Postman):

json

CopyEdit

{
  "error": "invalid_grant",
  "error_description": "Invalid credentials / User does not have access to any facility"
}

Root Cause:

The Uniware API user was not assigned any facility.

Fix:

Log into Uniware Admin → Users → Edit the API User → Assign at least one Facility (e.g., WH001).

Without this, authentication cannot succeed.


2. Sales Order Sync Setup

Steps:

  1. In Unicommerce Settings:
  • Enable Sales Order Sync
  • Set sync frequency (30–60 minutes recommended)
  • Set default:
    • Naming series
    • Customer group
  1. Create Unicommerce Channel(s) for each marketplace.Navigate to:

Unicommerce Channel → New
Provide:

  • Channel Name (must match exactly as in Uniware)
  • Default Company, Warehouse, Accounts, etc.
  • Set Enabled = True

Issue #2: Orders Not Syncing Despite Setup

Symptom:

No orders created in ERPNext. Logs don’t show errors.

Root Cause:

Mismatch in Channel Name between Uniware and ERPNext.

  • Uniware uses names like: FLIPKART, AMAZON, MEESHO (uppercase).
  • You may have entered flipkart or amazon (lowercase) in ERPNext.

This mismatch silently blocks sync.

Fix:

Use exact casing as shown in Uniware when creating the Unicommerce Channel in ERPNext.


ERPnext Documentation:
Unicommerce Integration


Sudhanshu Badole

Great work, Sudhanshu! I am currently working on the EasyEcomm integration and addressing similar issues. I believe having a live client using this integration would greatly assist in resolving these problems. If anyone is using this integration and needs help, I am ready to assist with it.