What is API integration?
An API (application programming interface) is a defined doorway through which one piece of software can tell another "give me this data" or "create this record". API integration means two systems (for example an e-commerce site and an ERP) exchange data through that doorway: orders go to the ERP, stock comes back to the site, and nobody copies data by hand.
For small businesses the problem is usually not that software cannot talk, but that nobody has decided how the conversation will be set up. Below are four common ways to connect systems and when to choose which.
Four common ways to connect
| Method | How it works | When it fits | Weakness |
|---|---|---|---|
| REST/web API | Systems exchange data by request and response over HTTP | When both sides have an API; real-time or frequent data | Both sides must offer an API; version changes need compatibility upkeep |
| File transfer | One system drops a CSV/XML file in a folder or on a server, the other reads it | Old systems, bulk and daily transfers | Not real-time; errors are noticed in the file |
| Database (staging table) | The integration writes to a table and the ERP processes it | When the ERP has no API but supports a staging table | You must verify the vendor-supported route and licence |
| Ready-made connector / integration platform | A ready add-on or automation tool links two products | Common product pairs, simple flows | Custom rules and error handling may be limited |
The author's recommendation: first find out what the two systems support, then choose the simplest reliable route; the easiest to maintain wins, not the most elegant.
The basic idea of a REST API
According to Microsoft's web API design guide, REST APIs are designed around resources identified by a URI; for example, a specific customer order is indicated by an address. Requests are stateless: each request is independent, and the system should not break depending on which comes before or after. In practice, reading, creating or updating an order is done with different HTTP methods (GET, POST, PUT and so on).
You will not write this yourself, but you can ask the supplier: is there API documentation, how is authorisation done, what is the rate limit, is there a test environment?
Eight questions for an integration project
- Which system is the source (where is each piece of data born)? Editing the same data by hand in two systems creates conflicts.
- Will data flow in real time or at intervals?
- What happens on error? Does a failed order wait in a queue, does someone get told, is it retried?
- If the same record arrives twice, is a duplicate created? (Not creating a duplicate order on a repeated request is one of the basic requirements of an integration.)
- How is authorisation done? Passwords and keys are not written in code or email; they are stored securely.
- Monitoring: Did the integration stop, and who sees it? Are logs kept?
- Version changes: If the vendor updates the API, who adapts and how fast?
- Responsibility: If the integration breaks, who gets the first call?
Security and personal data
If data flowing through the API includes personal data such as customer name, phone or address, data-protection obligations apply. Give access keys only with the permissions needed, do not use real customer data in the test environment and log who pulls which data. For legal questions, consult your legal adviser.
Frequently Asked Questions
Can we integrate an old program that has no API?
Often yes: file transfer or a database interface supported by the vendor can be used. Verify the vendor's licence and support terms first; writing directly to the database may affect support and warranty.
Ready-made tool or software for integration?
For simple, common product pairs a ready connector may be enough. If you need custom business rules, high volume or error handling, software development is more sustainable. Decide after scope and maintenance load are clear.
How do we know the integration has broken?
Set up monitoring and logging that reports failed transfers. Noticing a failure only through customer complaints is too late.
To connect your systems, see our custom software development page or the contact form. Our post on 8 common mistakes in ERP-e-commerce integration may also help on the ERP and e-commerce side.
Source: Web API Design Best Practices (Microsoft Learn, Azure Architecture Center)
Cover photo: Daniil Komov / Unsplash