Introduction
Customizing crud APIs in Supista ERP
Supista ERP comes equipped with powerful standard APIs for Create, Read, Update, and Delete (crud) operations, enabling efficient handling of everyday business processes. However, every organization operates differently and may require tailored solutions beyond the standard features.
To support unique workflows, Supista ERP offers flexible API customization, allowing you to inject your own logic and business rules directly using JavaScript. This ensures the system aligns seamlessly with your specific operational requirements.
In addition to crud operations, Supista ERP supports a wide range of customization options, including:
- Create API – Customize record creation logic
- Read API – Enhance data retrieval with custom filters or conditions
- Update API – Implement validation and transformation during updates
- Delete API – Add control layers before data removal
- Form Customization – Modify form fields, layouts, and behaviors to suit user needs
- Action Buttons – Add custom actions and workflows triggered by button clicks
- Schedulers (Cron Jobs) – Automate repetitive tasks with scheduled scripts
- Notification Operation – Send real-time, in-app notifications to users
Code Format for Customizations
Customizations in the ERP system follow a specific code format:
async function customizeERP(customizeERPParams, apiOperations)Requirements
-
The function name will always be customizeERP
-
The function must be an async function
-
The function accepts two parameters:
- customizeERPParams → See customizeERP Function – Parameters Explanation
- apiOperations → Provides access to all available API functions