⚖️ 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
orGET
- 📌 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
- Place both files in a common directory (e.g.,
D:\WeighBridge
) - Open
weighbridge.cfg
with Notepad and configure as below:
project=your_project_name
accesstoken=your_access_token
machineid=1
- Save the file.
- Launch
weighbridge.exe
to begin data capture and transmission. - 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.
🔄 Run as a Windows Service (Recommended)
Automate execution using RunAsService.exe
to run the utility as a background service.
🚀 Installation Instructions
- Download
RunAsService.exe
- Create folder
D:\WeighBridge
- Place all required files (
weighbridge.exe
,weighbridge.cfg
,RunAsService.exe
) into the folder - Launch Command Prompt as Administrator
- Execute the following command:
RunAsService install "WeighBridge" "WeighBridge" d:\weighbridge\weighbridge.exe
- 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!