API integration: how systems exchange data and what to take into account
An API integration is a link between programs that lets them exchange data on their own according to rules described in advance: a website request lands in the CRM, a payment changes the order status, stock levels from accounting appear in the catalogue. The link is built with direct requests, webhooks, file exchange or an intermediate service, depending on what each system supports. What makes an integration reliable is not the requests themselves but a queue, retries, duplicate protection, a log and failure alerts.
Open the software development page
What an API is and why businesses need integrations
An API is an application programming interface: a set of rules by which one program can ask another to do something or hand over data. People work with a system through screens and buttons, while another program works with it through the API. CRMs, payment services, delivery services, accounting systems, messengers and marketplaces usually publish such interfaces so that other software can connect to them automatically.
While systems are not connected, people move data between them: they copy a request from email into the CRM, reconcile payments against a bank statement and update prices and statuses by hand. This takes time and sooner or later leads to mistakes. An integration removes manual transfer: data moves by itself, and employees deal only with exceptions.
- requests from the website, forms and messengers land in the CRM with an owner and a deadline;
- a payment automatically changes the order status and sends the customer a receipt or notification;
- stock and prices from the accounting system appear on the website and in the bot;
- orders go to the delivery service, and the tracking number comes back to the customer;
- the manager receives a report assembled from several systems without copying.
What an exchange looks like: request and response
Most modern APIs work on a request and response basis. One program sends a request to an internet address, states what it wants, such as a list of orders, a new customer or a status change, and attaches an access key. The other program checks the permissions, performs the action and returns a response with data or an error code.
The most common style is REST: each entity has its own address, and the action is set by the request method: read, create, update or delete. Data is most often passed as JSON, a format that both programs and developers read easily. Other approaches exist too: GraphQL, where the client describes exactly which fields it needs, and older XML-based protocols that still run many corporate and government systems.
For a business, the name of the style matters less than what the API can actually do: which data it returns, which actions it allows, how fast it responds and what happens on an error. All of this is checked in the documentation before the work is estimated.
Integration methods
A direct API call is not the only option. The method is chosen to match what the systems can do and how fast the exchange needs to be.
| Method | How it works | When it fits |
|---|---|---|
| API requests | One system calls another when it needs data or an action | The system has an open, documented API |
| Webhooks | The system itself reports an event: a new payment, a request, a status change | Events must be known immediately, without constant polling |
| Scheduled file exchange | One system exports a file, the other picks it up and parses it | There is no API or it is limited, and a short delay is acceptable |
| Intermediate service | A dedicated layer with a queue, rules and a log sits between the systems | Several systems are involved and reliability and a single exchange history matter |
In practice the methods are combined: a webhook reports a new payment, the service requests the details through the API, and a nightly export reconciles the totals for the day. If a system has no API at all, another reliable route is found: exports, parsing of emails, an intermediate database. Robots that click buttons in the interface instead of a person are only a temporary bridge, because they break with any change on the screen.
Documentation, keys and a test environment
A good integration starts with reading the documentation. It describes addresses and methods, data formats, error codes, limits and how to obtain access. Documentation is often published as an OpenAPI specification, which makes it easy to check requests and even generate part of the code.
Access to an API is usually granted with a key or token. It is a secret equal to a password: it is kept in protected server settings, not in the code, the repository or chat messages. The key should have only the permissions the integration needs: if reading orders is enough, it should not be able to delete them.
Many services, especially payment providers, offer a test environment with separate keys. There you can run every scenario, including errors and refunds, without touching real money or customers. If there is no test environment, the integration is checked on a copy of the data and launched first on a small flow.
Rate limits, errors and reliability
An integration is designed on the assumption that any system may become unavailable for a while, return an error or slow down. In addition, almost every API has limits on how many requests can be made per minute or per day. If they are ignored, the exchange stops on the busiest day.
- Queue. An event is first saved locally and then passed on; if the external system is unavailable, it waits instead of disappearing.
- Retries. A temporary failure is retried with growing pauses, not with a hundred requests in a row.
- Duplicate protection. Resending the same payment or request does not create a second record, because each event has its own permanent identifier.
- Validation of incoming data. An error in one field goes to the log and does not break the whole exchange.
- Operation log. You can see what was sent, when and with what result.
- Failure alerts. The person in charge learns about a problem at once, not from a customer.
- Reconciliation. Totals in the systems are compared regularly, and discrepancies are visible immediately.
One more rule is to decide in advance which system is the master for each type of data. If prices are kept in accounting, the website only displays them; if the payment status is confirmed by the payment service, the website interface cannot mark an order as paid on its own.
Integration security
Every integration is a door into a system, so it is protected the same way as the entrance for people. Data is sent only over an encrypted connection. Incoming webhooks are verified by a signature or secret so that an outsider cannot send a fake payment notification. Everything that arrives from outside is validated before it is written to the database.
Permissions are granted at a minimum, keys are rotated periodically and revoked when an employee or contractor leaves. Customers' personal data is passed only where the process really needs it. General protection principles are covered in the guide to web application security.
How to prepare for an integration project
For an accurate estimate it helps to collect answers to a few questions in advance:
- Which systems need to be connected and whether each has an open API with documentation.
- Which data should be transferred, in which direction and how often.
- Which system is the master for each type of data.
- Whether there is a test environment or a copy of the data for checks.
- Who issues access and keys and who is responsible for each system on your side.
- What should happen on a failure: whom to alert and which operations must never be lost.
A finished specification is not required: these questions can be discussed when the task is reviewed. How to describe a task in your own words is shown in the guide on writing a software brief. For an accounting system, see the separate guide on 1C integration, and for accepting money, the guide on online payment integration.
How JEEKSSHIRE 24 approaches integrations
We connect systems through APIs, queues and validation of incoming data, and add retries and a log. We connect the CRM to the website, forms, messengers, telephony and accounting systems, including 1C, through APIs or exports. If a system has no API, we look for another reliable route. We start with a review: we look at how data flows today and choose one flow that will deliver value first.
We run the process on real data together with your employees, the build and tests pass before deployment, and after launch we switch on failure alerts and backups. The exact timeline and cost are given after the review. How integrations fit into wider automation is described in the guide on business process automation and on the business process automation page, and all our services are collected on the custom software development page.
Frequently asked questions
What is an API in simple terms?
It is a set of rules by which one program can ask another to hand over data or perform an action. People use a system through screens, while another program uses it through the API.
How is a webhook different from an API request?
With a request, your system asks the other one for data. A webhook works the other way round: the external system reports an event, such as a new payment, as soon as it happens.
What if a system has no API?
Look for another reliable route: scheduled exports, parsing of emails, an intermediate database. Robots that click buttons in the interface are reasonable only as a temporary solution.
Why can an integration stop working?
The external system changes its API, a key expires, a rate limit is hit or unexpected data arrives. That is why a log, failure alerts and support after launch are needed.
Where should API keys be stored?
In protected server settings, not in the code, the repository or chat messages. The key's permissions are limited to what the integration actually needs.