Skip to main content
Exostruction
Juljan Blischke10 min read

Commissioning an API Interface: Process, Costs and Pitfalls

What an API interface is, how a project runs, what it costs and where the pitfalls are. With a checklist for SMEs and associations.

Guide
Commissioning an API Interface: Process, Costs and Pitfalls

Short answer: An API interface connects two systems so that data flows automatically, for example between an online shop and an inventory system. Whether an interface is sensible and feasible depends mainly on the systems involved: Do they offer a documented API, which data should flow in which direction, and who takes care of operation and error handling? You will find the flow of an interface project and a checklist further down.

An interface is only as good as the systems it connects and the rules for handling errors.

What an API interface is

An API is a defined connection through which programs exchange data without a person stepping in. Instead of transferring orders from the shop into the inventory system by hand, the interface does it automatically. That saves time and avoids typing errors, but it also makes your processes dependent on the interface. That is why a close look before the start is worthwhile.

Typical use cases

ExampleDataDirection
Online shop and inventory systemOrders, stock levelsIn both directions
CRM and accountingCustomer data, invoicesUsually from CRM to accounting
Time tracking and payrollWorking hoursFrom time tracking to payroll
Association management and payment providerMembership fees, payment statusIn both directions
Website form and CRMInquiriesFrom the website to the CRM

File export or API: a decision aid

Not every connection needs an API. The choice depends on how current the data must be and how often it changes:

SituationUsually sensible
Data is needed once a week or month, for example for accountingFile export and import (CSV, Excel)
Both systems offer ready-made connectors, the process is simpleReady-made connector or automation
Data must be correct within minutes, for example stock levels in the shopAPI interface
Many special cases, custom rules, high demands on error handlingCustom-built interface
One system has no interface at allFile export, or the question whether the system still fits

File export is not automatically bad: it is easy to understand and to check. It only becomes a problem when someone has to move files by hand every day. Whether a custom build is needed at all is also covered by the page on buying or building software. If data is mostly maintained in spreadsheets, the article Replacing Excel Lists helps as well.

Five questions before you ask

  1. Which systems are involved? State product and version.
  2. Is there a documented API? If not, it often only works via file export and import, or not at all.
  3. Which data should flow, in which direction and how often? Immediately or once a night makes a big difference.
  4. Who may access? Clarify access and a test environment. Nobody should experiment with real data.
  5. What happens in case of errors? Who is informed, and how are failed transfers repeated?

General notes on preparation can be found in the article Commissioning Software: What to Prepare Before You Start.

Which system leads? A practical example

The most common cause of trouble is not technology but an unanswered question: which system is the leading one for which data? A typical example from a small business: a craftsman's company keeps customer addresses in the CRM and writes invoices in the accounting system. When an address changes, it is corrected in one place but not the other, and the next invoice goes to the old address.

The solution is a clear rule per field:

  • Master data such as address and contact person is led by the CRM, accounting only takes it over.
  • Invoices and payment status are led by accounting, the CRM only displays them.
  • In case of conflicts the leading system always wins, and the conflict is logged.

These rules belong in the data mapping document before the first line of code. A longer explanation is on the page about connecting ERP and CRM.

Real time or interval

Real time always sounds better, but it costs more effort and more maintenance. Ask yourself two questions: What happens if the data arrives only in an hour or only the next morning? And who would notice?

  • Real time (via webhook or frequent polling) pays off when a customer sees the result immediately, such as stock levels or payment status.
  • Interval (every few minutes, hourly or overnight) is enough for reports, master data sync and accounting. It is more robust, because a short outage is made up for in the next run.

A webhook is a notification the third-party system triggers itself when something changes. More on processes that can be automated this way is on the page about process automation.

How an interface project works

StepResult
AnalysisSystems, data and processes are understood
Data mappingIt is defined which field in one system corresponds to which in the other
DesignDescription of how the data flows, including special cases
Implementation in the test environmentThe interface runs without risk to real data
Test with realistic dataErrors and special cases are found
Go-live with monitoringThe interface runs, errors are reported
DocumentationStructure and operation are described in a traceable way

How to organize cooperation during the project is explained in the article Working Together on a Software Project.

What matters technically

You do not need to understand the technology in detail, but you should know which points count:

  • Authentication: How does the interface identify itself to the systems? OAuth 2.0 is widely used, for example. Access credentials never belong in plain text in code or emails.
  • Error handling: Does the interface repeat failed transfers, and does it report permanent errors?
  • Logging: Are there logs that show what was transferred and when?
  • Versioning: Third-party systems change their API. How does the interface react?
  • Data protection: If personal data is transferred, a data processing agreement under Article 28 of the GDPR usually needs to be checked.
  • Documentation: A machine-readable description is good, for example according to the OpenAPI Specification.

Error handling in practice

That "error handling" appears in a quote says little. Ask about these three mechanisms:

  1. Retry with a pause: If a transfer fails, the interface tries again after a growing wait instead of flooding the third-party system with requests.
  2. Safe repetition: A repeated transfer must not create duplicate records. This is called idempotent behavior. The basic idea is described in RFC 9110 on HTTP: certain requests can be repeated safely, others cannot, and the interface has to take that into account.
  3. Respect limits: Many APIs reject too many requests with status code 429, which is defined in RFC 6585. The interface must then wait instead of giving up.

In addition there should be a queue for cases that failed for good: they end up visibly with a responsible person instead of silently disappearing. Whether and how a provider handles this is quickly revealed in conversation.

Securing access

An interface often has far-reaching rights, such as reading and writing customer data. Three basic rules: grant only the rights the process really needs. Keep credentials for test and live operation separate. And replace keys when someone leaves the project. If the interface is part of a web application, the self-test for web applications gives a quick overview of login, permissions, updates and backups.

Testing and acceptance

An interface is not finished because it ran once. Define in advance what "finished" means and check at least:

  • A normal record arrives completely and in the right format.
  • Special cases work: special characters, empty fields, very long texts.
  • A deliberately triggered error (third-party system unreachable) is detected, reported and made up for later.
  • The same transfer triggered twice does not create a duplicate.
  • The logs show what was transferred and when.

How acceptance criteria are formulated is explained in the article Acceptance and Test Phase.

What interfaces cost

Fixed prices cannot be stated across the board. They depend mainly on these factors: number of systems involved, quality and documentation of the third-party API, volume and complexity of the data, error handling and tests, and documentation and ongoing maintenance. Ask what is included in the quote and what is not. What to look for when comparing is explained in the article Comparing Quotes for Custom Software: What Matters.

Checklist for the quote conversation

Take these points with you when you collect quotes:

  • Which systems and versions were assumed, and has the third-party API been checked?
  • Which fields are transferred, and which system leads?
  • How are error handling, logs and monitoring included in the price?
  • Who maintains the interface after launch, and what does that cost?
  • Who owns the source code, documentation and access?
  • How is it tested, and what counts as accepted?

Whoever gives concrete answers to these questions has usually understood the task. The page on commissioning an interface explains what makes a good API and what the price depends on.

Typical pitfalls

  • The third-party system changes or shuts down its API.
  • Documentation is missing or outdated.
  • Limits on the number of requests slow down the transfer.
  • Data is created twice because nobody defined the order.
  • Formats do not match, for example for dates, numbers or special characters.
  • There is no monitoring, and errors are only noticed when customers get in touch.
  • Only one person knows the interface.

Payments and forms as special cases

Two use cases deserve extra care. With payments, card data should never reach your server in the first place, and the provider reports the payment status back by webhook. What that looks like is shown on the page connecting Stripe and PayPal securely. With website forms that write to the CRM, personal data is involved: clarify which fields are really needed and document the path of the data.

Operation and maintenance

An interface is not finished after launch. Updates, changes in the third-party system and certificates require ongoing care. How to arrange operation and maintenance is explained in the article Who Maintains the Software After Go-Live? Make sure someone reads error messages, renews credentials and certificates on time and follows announcements from the third-party provider, for example about retired API versions.

Warning signs

  • “That will be done in a week”, without knowing the systems
  • No test environment, but experiments with real data
  • No error logs and no monitoring
  • No documentation
  • Access and accounts exist only with the provider

Our view from practice

We develop interfaces and integrations for small and medium-sized businesses and associations, based on REST or GraphQL, connect ERP and CRM systems and automate processes, for example with webhooks. Every project ends with documentation.

Conclusion

An interface saves work and errors when systems, data flow and error handling are clarified beforehand. Check whether the systems offer a documented API, insist on a test environment and plan operation and maintenance from the start. You can find more about our APIs and integrations and IT consulting on the service pages. If you have a project, feel free to get in touch with us.

Share

Frequently asked questions

  • An API is a defined interface through which programs exchange data. In everyday use it usually means the connection between two systems, for example between a shop and an inventory system.

  • Often yes, via export and import of files. That is simpler but usually less up to date and more error-prone.

  • That depends on the systems and the scope. Simple connections with good documentation are faster, complex ones with many special cases take longer. A reliable estimate comes after the analysis. What the effort depends on is explained on the page about system integration.

  • A good interface retries failed transfers, writes logs and reports permanent errors. Changes in the third-party system are absorbed by versioning and ongoing maintenance, see Who Maintains the Software After Go-Live?.

  • Define for every data field which system holds the truth. Without that rule the systems overwrite each other. More in connecting ERP and CRM.

  • If a process is simple and both systems offer ready-made connectors or webhooks, automation can be enough. With many special cases or high demands on error handling, a custom solution pays off. The page on process automation gives guidance.

  • With realistic test data, acceptance criteria defined in advance and deliberately triggered errors. How that works is described in the article Acceptance and Test Phase.

Author of this article

JB

Juljan Blischke

Co-Founder & Engineering

Certified application developer. Has been building web applications, APIs and internal tools for years.

This article is for general information only and does not replace individual legal, tax, or business advice. Prices, timelines, and assessments are non-binding estimates provided without guarantee.