Skip to content

⚖️ MERCI API - Weighbridge / Scales Integration Guide

A comprehensive API guide to assist hardware vendors and developers in integrating weighbridge machines or related software directly with MerciGlobal Cloud ERP.


🌐 API Endpoint

https://erp.merciglobal.com/apis/weighbridgeapi.php?project=urvashi&accesstoken=ACCESS_TOKEN&machineid=1&weight=9999.999&date=2024-03-12&time=11:13

This endpoint facilitates the real-time transmission of weight data from weighbridge systems to the MerciGlobal Cloud ERP.


📥 Parameters (GET/POST)

Parameter Description
project Project name (e.g., urvashi)
accesstoken Secure access token (found in My Profile → Set at bottom)
machineid Unique machine identifier (e.g., 1, 2, 3...)
weight Weight value in decimal format (e.g., 9999.999)
date Date of the reading in YYYY-MM-DD format
time Time of the reading in HH:MM format
  • 📌 Supported Methods: POST or GET
  • 📌 Compatible Languages: CURL, .NET, Python, Embedded Systems, etc.

⚙️ Implementation Guidelines

  • API must be invoked directly by weighbridge hardware or controlling software.
  • Ensure internet access for seamless data delivery.
  • An active subscription with MerciGlobal is essential.

🪟 Windows COM Port Integration Utility

MerciGlobal provides a Windows utility to streamline integration for machines using COM ports.

📦 Downloadable Files

  • Weighbridge Windows Program
  • Configuration File (weighbridge.cfg)

🛠️ Setup Guide

  1. Place both files in a common directory (e.g., D:\WeighBridge)
  2. Open weighbridge.cfg with Notepad and configure as below:
project=your_project_name
accesstoken=your_access_token
machineid=1
  1. Save the file.
  2. Launch weighbridge.exe to begin data capture and transmission.
  3. To auto-run on Windows startup, move both files to the Startup folder.

💡 Internet connection is mandatory for successful data delivery to MerciGlobal Cloud ERP.


Automate execution using RunAsService.exe to run the utility as a background service.

🚀 Installation Instructions

  1. Download RunAsService.exe
  2. Create folder D:\WeighBridge
  3. Place all required files (weighbridge.exe, weighbridge.cfg, RunAsService.exe) into the folder
  4. Launch Command Prompt as Administrator
  5. Execute the following command:
RunAsService install "WeighBridge" "WeighBridge" d:\weighbridge\weighbridge.exe
  1. Restart your system

✅ The utility will now auto-start as a background service.

📞 Contact the MerciGlobal Cloud ERP Sales Team for licensing and subscription queries.


🧩 Front-End Integration (JavaScript)

Insert this code snippet into your _core.js file to display live weight in a form field:

function {modulename}_add_afterload(){
    let machineid = 1; // Set machine ID
    let field = 'weight'; // Update with actual form field name

    if (branchcode == 'PM3'){
        machineid = 2;
    }

    $(`#${field}`).data('tool','ok');
    $(`#${field}`).after(` <i class='fa fa-rss'></i>`);
}

📩 Support

For technical help or to request API credentials: 👉 Contact the MerciGlobal ERP Support or Sales Team.


You're now equipped to fully automate weighbridge data entry with MerciGlobal Cloud ERP!