Fetch NetProfit
Merciglobal Cloud ERP: API for Net Profit
Merciglobal Cloud ERP offers a robust and developer-friendly API to retrieve Net Profit data over a specified date range. This guide is crafted to assist internal developers, sales personnel, and customers in utilizing the API efficiently.
API Endpoint
GET https://devx.merciglobal.com/apis/ajax.php?sys_projectfolder=PROJECT_NAME&func=netProfit&sdate=START_DATE&edate=END_DATE
Parameters
Parameter | Description |
---|---|
sys_projectfolder |
(String) Name of your project folder in the Merciglobal Cloud ERP system |
func |
(String) Must be set to netProfit |
sdate |
(String) Start date for net profit calculation in YYYY-MM-DD format |
edate |
(String) End date for net profit calculation in YYYY-MM-DD format |
Use Cases
- Finance Teams: Review net profitability trends to support financial planning
- Sales Teams: Evaluate overall performance and optimize client strategies
- Customers: Generate financial summaries and reports based on real-time data
Integration Tips
- Dates should be in the format
YYYY-MM-DD
- Validate date inputs to ensure meaningful and complete results
- Ensure API is called from a secure backend to avoid exposure of sensitive data
- Implement error handling for invalid dates and missing parameters
Sample Request
curl "https://devx.merciglobal.com/apis/ajax.php?sys_projectfolder=erp2025&func=netProfit&sdate=2025-01-01&edate=2025-06-30"
Notes
- Make sure your ERP instance has permissions enabled for net profit data access
- Net Profit = Gross Profit - Operating Expenses - Taxes - Other Deductions
- Data accuracy depends on timely and correct input of all financial activities
For more support, contact your Merciglobal account manager or reach out to our ERP development team.
Stay connectedβSubscribe to the Merciglobal Developer Digest for API updates and best practices.