Skip to content

Fetch GrossProfit

Merciglobal Cloud ERP: API for Gross Profit

Merciglobal Cloud ERP offers a robust and developer-friendly API to retrieve Gross 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=grossProfit&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 grossProfit
sdate (String) Start date for gross profit calculation in YYYY-MM-DD format
edate (String) End date for gross profit calculation in YYYY-MM-DD format

Use Cases

  • Finance Teams: Analyze profitability trends across custom date ranges
  • Sales Teams: Assess margin contributions and target high-performing segments
  • Customers: Build dashboards to track profitability over time using Merciglobal ERP 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=grossProfit&sdate=2025-01-01&edate=2025-06-30"

Notes

  • Make sure your ERP instance has permissions enabled for gross profit data access
  • Gross Profit = Total Revenue - Cost of Goods Sold (COGS)
  • Data accuracy depends on timely and correct input of sales and purchase information

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.