How systems talk to each other through an API
You can think of an API (application programming interface) as a counter at a public office. One system sends a precisely worded request – for example “send me the list of new orders” – and the other returns an answer in an agreed format. Neither needs to know how the other system works inside. It is enough to know the rules of the counter: which questions can be asked and what form the answer will take.
Most modern services have an API: e-commerce platforms, invoicing software, courier companies, payment gateways, price comparison sites and Google. Access is usually protected by a key that you get in the service’s settings, so that not just anyone can read the data.
Why it matters for a business
Every bit of manual retyping costs time and introduces errors. If an employee copies orders from the online shop into invoicing, addresses into the courier’s system and stock levels back to the website, they are doing work that an API connection can handle automatically and without typos. The business can then grow without its admin growing at the same rate.
The API is also why it pays to ask when choosing software: “Can it be connected?” A program without an API often locks you into manual work.
A real example
A small cosmetics shop takes orders in WooCommerce and issues invoices in its accounting system. Once they were connected through an API, every paid order is transferred to the accounts automatically, an invoice is issued and the customer receives it by email. At the same time the order is sent to the courier, which returns a tracking number that the customer sees in their account. Stock levels are synchronised from the accounting software to the website once an hour, so the shop does not sell goods that are no longer in stock.
What to watch out for
- Documentation and limits. Some APIs only allow a certain number of requests per minute or do not expose all the data. Check this before you start development.
- Changes on the other side. API providers update things from time to time. A connection needs maintenance and someone keeping an eye on it.
- Error states. A good connection allows for the other side being down: it retries the request and reports the problem instead of quietly losing data.
- Key security. Access keys do not belong in emails or shared spreadsheets.
How I handle it at 5pixel
I build connections between online shops and accounting or stock software, couriers and internal systems as part of web applications or as a standalone WordPress add-on. Always with logging, so you can trace what was transferred and when. Mobile apps connect to the same data through the API, so the website and the app always show the same thing.