
If you ask an IT director in a major Indian organisation to show you how various systems are integrated together, the result is often a complex jigsaw. There is likely to be a combination of a 15-year-old ERP, a more recent CRM and sales team mobile app plus dealer and warehouse systems. Then there may also be payment gateways, GST filing and some Excel spreadsheets which are emailed around. And no-one likes to maintain a batch process which runs once a night.
Whilst individual systems function well, difficulties arise when businesses wish to combine functionality from a number of these. For example, to provide dealers with live stock visibility, to enable customers to view order status via WhatsApp, and to give AI agents access to invoice information. Poor integration then becomes the key issue.
Enterprise API integration enables integration between different systems using defined interfaces. This allows data and functionality to be passed between systems. Here I discuss how to implement this in organisations where some critical systems are dated, non-open and/or inadequately documented.
Many legacy systems were not originally designed to integrate with other systems. Some only provide data access via database access, file transfer or special system protocols. Moreover, documentation may not be thorough and those who developed the system may no longer be with the business.
Unfortunately, in the short-term, legacy systems are rarely replaced. Vital systems such as ERPs, banks and manufacturing systems contain valuable historical information and business functionality. Although functioning well, there is considerable cost and risk in replacing them. Consequently, it is normal practice to integrate legacy systems by creating new interfaces which allow new systems to interact with them, without affecting the legacy system itself.
This involves the direct integration between two systems. Though suitable for limited integration requirements, this is not easily scalable. If there are 10 systems which require integration, this can result in numerous points of integration, each requiring specific logic and being susceptible to issues. Alteration to one system can therefore affect multiple integrations.
Modern APIs are created in front of legacy systems. New systems then interact with these APIs rather than with legacy systems. Underneath the APIs, adapters manage interactions with a legacy system (for example by carrying out database, file or old SOAP service related activity). New systems benefit from well-defined, documented APIs, either in REST or GraphQL format.
This provides an integration ‘hub’, managing distribution, data conversion, and issue management for multiple systems. Again this may be either proprietary or open source. For many medium sized businesses N8N – a workflow based integration platform – is a good solution. It can integrate hundreds of systems and also allows for bespoke coding if required.
Rather than systems continually polling each other for data, each system generates events for particular activities (such as order or payment receipt). Relevant systems can then subscribe to these events. This eases pressure on legacy systems and facilitates almost real-time data sharing.
Typically, businesses utilise a mix of these methods. APIs provide well-defined access to key systems; an integration platform manages system interaction and event integration supports high volume and urgency data sharing.
As with many areas, poorly conceived APIs can cause as many issues as they resolve. Good practice should include:
Focussing on business terminology rather than database structure. Providing an API for "get customer outstanding balance" is significantly more valuable than one which shows underlying accounting data. Ensure uniformity in API nomenclature and data (particularly for dates, money values and codes). Add versioning so that APIs can evolve without adversely affecting existing users. Clearly explain APIs and collate them in an internal API catalogue.
Consideration should also be given to system capacity. Often legacy systems lack the ability to cope with high volumes of requests. To prevent a new mobile system, for example, from swamping a legacy system, common queries can be cached, maximum request volumes can be set and read intensive data can be synchronised onto a dedicated data store.
Whilst all APIs present security risks, legacy systems frequently lack robust security procedures. As they were typically developed for internal use within a secure network environment, additional security provision must be introduced via the API layer.
| Control | Function |
|---|---|
| API gateway | Acts as a single point of entry and includes functionality for authentication, limiting request volumes and logging |
| OAuth 2.0 or token security | Ensures that only permitted systems and individuals can interact with an API |
| Selective data return | Only data that users are permitted to receive is provided |
| Encrypted communications | TLS encryption is applied to all communications including internally |
| Logging | Information is captured on who has accessed what and when. This is crucial for compliance with DPDP and RBI regulations |
| Validation | Prevents invalid or nefarious requests being passed on to legacy systems |
For businesses dealing with personal and/or financial data, logging is particularly important. An API log will usually provide the information required by regulators or customers regarding who has accessed specific data.
Aside from the above, there is another compelling reason why there is currently significant interest in enterprise API integration. AI agents must not only provide information but also take action. An HR agent, for example, must be able to refer to an HRMS to establish staff leave entitlements. Finance agents must be able to extract and then amend payment status information from an ERP. Customer service agents need to access order and delivery information.
Without quality APIs, AI agents are unable to effectively perform these tasks. With quality APIs, agents can securely invoke well-defined functionality. In addition, all such invocations are recorded. Our MonaWork HR agent, which reduced staff query resolution times to under 4 minutes from around 2 days, relies heavily on high quality integration with HR systems. Quality APIs are key to enabling safe deployment of agentic AI.
| Stage | Period | Actions |
|---|---|---|
| Mapping | Weeks 1-2 | Detail systems, data and key integration requirements |
| Design | Weeks 2-3 | Establish initial APIs for a key area of functionality; determine security and common standards |
| Development | Weeks 4-6 | Create adapters, APIs and the API gateway. Automated testing is also carried out. |
| Deployment | Weeks 7-8 | Attach the initial consuming system. Observe and analyse system operation and issues. Share documentation. |
Focusing initially on a particular requirement such as dealer stock visibility or automatic invoice status updating ensures that the implementation remains focused. Furthermore, subsequent integrations benefit from re-use of the API gateway, common standards and much previously developed API functionality.
Producing APIs without considering end-user requirements results in unused APIs. Ignoring monitoring means that issues are often identified by dissatisfied end-users. Where there is no common standard for APIs, each team independently develops them and a similar disarray to that initially experienced with legacy systems can occur. Also, neglecting to consult those familiar with legacy systems (often long-standing members of IT and/or operations staff) can lead to vital but undocumented business rules being missed.
Whilst it is relatively simple to implement integration, it can be challenging to assess success. From the early stages, it is advisable to monitor statistics relating to: the duration taken to implement new integrations; weekly numbers of failed integrations; average API response times; and the volume of manual file sharing and data re-entry in core business processes. Typically, however, businesses are most interested in the final of these statistics as each instance of manual data handling equates to actual time saved.
Compare these statistics on a monthly basis with both IT and business owners. Reduction in the time taken to implement new integrations from months to weeks demonstrates that the API layer is functioning effectively.
Identify the top 3 business requirements which have been difficult for an organisation’s IT department to fulfil due to data incompatibility. Establish which systems are involved in fulfilling each of these requirements. Usually this will highlight initial key areas for API development.
Swaran Soft has been providing enterprise system integration for over 25 years. We now utilise open source integration tools such as N8N and Supabase to implement API layers. This avoids dependency on specific vendors.
Want to talk it through with us? We run a free 45-minute AI Pilot Assessment. Drop a line to info@swaransoft.com, or ring +91 9220-313-650 (India) | +971-50-9292-650 (UAE). You'll find more at www.swaransoft.com

AI Architect and Entrepreneur building India's Edge AI ecosystem. 25+ years in enterprise technology. Founder of Swaran Soft, Gignaati, and Copilots.in.