Connecting business systems through APIs: no more retyping data
How to connect an online shop, accounting, a CRM and other systems through APIs: what an API is, the ways to connect, what to ask and what can go wrong.
Connecting systems through an API means that programs pass data to each other by themselves, without exports and retyping: an order from the online shop appears in accounting on its own, a new customer from a web form lands in the CRM, the status of a job shows up in the client portal. Whether and how a connection will work depends mainly on whether both systems have an interface (an API), what that interface allows, which system is the main one for which piece of data, and who will keep an eye on the connection after launch.
An API (application programming interface) is an agreed way for one program to ask another for data or ask it to carry out an action, without a person at the screen. The MDN Web Docs describe it as a set of features and rules inside a program that allow other software to work with it, as opposed to a user interface built for people.
A well-made connection is invisible: people simply stop retyping. A badly made one is worse than manual work, because errors spread faster and nobody knows about them. This article explains how connections are made, what gets decided along the way and what to ask before you start.
When a connection pays off
- The same piece of data is retyped by hand between two or more systems, typically an order, a customer or an invoice.
- The retyping happens daily or weekly and takes noticeable time.
- Retyping causes errors: typos, forgotten records, different statuses in different programs.
- You need an overview that combines figures from several sources, and today someone puts it together by hand.
If data moves a few times a month, a manual export and import is usually the more sensible option. A connection has to be maintained, and that only pays off for repeated work.
Four ways to connect systems
| Method | How it works | When it fits | What to watch |
|---|---|---|---|
| Ready-made add-on | One of the systems offers a connection to the other as a ready feature | A common pair of systems and a common process | It can only do what the vendor has prepared |
| Integration tool | A service of the “when A happens, do B” kind that links several applications | Simple flows with small volumes | Fees grow with volume; the logic is scattered across scenarios |
| Custom connection | A program that talks to both systems’ APIs according to your rules | Your own rules, exceptions, larger volumes, more systems | Needs maintenance and monitoring like any software |
| File export and import | One system saves data to a file, the other loads it | A system without an API, or an occasional transfer | A manual step, the risk of stale or incomplete data |
Always start with the first row: if there is a ready-made add-on that does what you need, it is the cheapest route. Building a custom connection pays off only when the ready routes fall short. The same reasoning applied to whole systems is covered in the article custom software or an off-the-shelf solution.
What gets decided in a connection
Which system is the main one for which data
For each piece of data it must be clear where it is created and where it may be changed. A customer might be created in the online shop, for example, while the billing details are edited only by the accountant in the accounting system. Without this agreement, two systems start overwriting each other and nobody knows which version is valid.
In which direction and how often
A one-way transfer (online shop to accounting) is simpler than a two-way one. For each flow, agree whether a transfer once an hour is enough or whether it has to happen immediately. An immediate transfer is more convenient, but it puts higher demands on catching errors.
How records are matched
How does the system know that a customer in the online shop is the same one as in accounting? By company ID number, by email, by an internal number? In companies with some history, this is where duplicates and typos show up, and they need sorting out before the connection starts work.
What happens when something fails
The other system will be unavailable, its API will change, a value will arrive that nobody planned for. A good connection logs every transfer, retries after an outage, never creates the same record twice and tells a person about the cases it can’t resolve. The list of cases “to resolve” matters more than the transfer itself.
What to ask the suppliers of the systems you’re connecting
- Does the system have an API, and is it available on your plan?
- Where is the interface documentation, and does it cover the data you need to transfer?
- Are there limits on the number of requests or the volume of data?
- How far in advance does the vendor announce changes to the API?
- Can the system announce a change itself (a new order, for example), or does another program have to keep asking it?
- How is access to the API granted, and how is it revoked when the cooperation ends?
The answers to these questions decide the price and the reliability more than anything else. A system without an API, or with incomplete documentation, can be connected too, but with more work and more risk.
An example: online shop, accounting and stock (a fictional company)
A fictional company sells spare parts through an online shop. Orders are retyped into accounting by hand, and stock levels are added to the shop once a day from a spreadsheet.
- Orders go one way, from the online shop to accounting, as soon as they are paid. The main system for an order is the online shop.
- Customers are matched by company ID number, and consumers by email. Duplicates are cleaned up before launch.
- Stock levels go from the warehouse program to the online shop, because that is where the goods are actually counted. The warehouse program has no API, so a regular file export and import is used until the system is replaced.
- Errors are saved to a list of cases to resolve, and the accountant gets a notification whenever an order fails to transfer.
The example is illustrative. For a real company, what the specific systems’ APIs offer and what rules the company has would decide.
Security of connections
A connection has access to data in two systems at once, so it needs the same care as a user account with high privileges. Give it only the permissions it needs, keep access keys outside the code and know everywhere they are used. When a supplier or a system changes, revoke the old access. If customers’ personal data is transferred, the connection also belongs in your record of processing activities; this is not legal advice, and your specific obligations are for a lawyer or your data protection officer to assess.
When a connection isn’t worth it
- Transfers are rare, and a manual export takes a few minutes.
- One of the systems is about to change, and the connection would have to be built twice.
- The process around the data isn’t settled; a connection would only spread errors faster.
- The system has no API and its export is unreliable; then it is better to deal with the system itself first.
How I do it
I build connections as a service of their own, system integrations, when it is enough to move data between tools you already use, and as part of internal systems. I start with a list of flows (from where, to where, how often and which system is the main one for which data); a ready-made route takes priority, and I build only what is missing. The service page on custom software development describes the whole process; if you’d like to talk through your data, write to me.
Frequently asked questions
Can any system be connected?
Almost always in some way, but not always sensibly. A system with a documented API is the easiest to connect. Without an API, what remains is file export and import or other workarounds, which are more fragile and more expensive to maintain.
What if the other system changes?
Then the connection needs adjusting. That is why monitoring, transfer logs and an agreement on maintenance belong with every connection. It is worth checking how far ahead the vendor announces API changes.
What if something gets lost in transfer?
A good connection logs every transfer, retries the failed ones and sends anything it can’t resolve to a person’s list of cases to resolve. Without that, you find out about a lost order from the customer.
How much does a connection cost?
It depends on the number of systems and flows, the quality of their APIs, the number of exceptions and whether one direction is enough. Running and maintenance come on top of the one-off work. What the price of software is made up of in general is covered in the article how much does custom software cost, and what to do next with the connected data in the article business dashboard: which metrics to track.