# What is an API? A business example

An API lets one program request information or ask another program to carry out a task. When a customer buys 2 lamps in your test shop, the shop can ask your accounting software to create a draft invoice. The software sends back an ID for the draft.

**API** (Application Programming Interface): An API is a set of rules that describes how one program can request data or ask another to carry out a task.

## From a test order to a draft invoice

Suppose you sell lamps and want to check each invoice before you send it. Agree with your developer that a paid order can create a draft and that you decide when to send it to the customer. Then follow one order through your test shop and a test company in your accounting software.

## What to check on test order L42

| Stage | What to check |
|---|---|
| The shop receives the order | Place order L42 for two reading lamps using a test customer account. Complete the payment in the shop's test mode. |
| The integration sends the request | The shop sends the items ordered and the customer number. It includes L42 as the order reference so you can find the draft in your accounting software. |
| The accounting software responds | Open the draft invoice. Check that the customer, number of lamps and total match the order. Look for L42 in the reference field. |

## If the shop receives no confirmation

The accounting software may already have saved the draft even if its reply never reaches the shop. In your test, run the same order through the integration again, then search for L42. You should find exactly one draft. If you find none, the order still needs an invoice. If you find two, the integration has processed the order twice.

## Questions about API access and requests

### What access does my API integration need?

Ask what the integration needs to do in each system. In this example, it reads paid orders and creates draft invoices. It has no reason to access bank transactions. Ask the developer to show you how to revoke access yourself.

### What is an API key?

It is a code a service uses to identify the program or account making a request. Anyone who has a secret key may be able to use it to make requests. Keep it out of your website's public code.

### What does my developer mean by an endpoint?

In a web API, an endpoint is the address for a particular type of request, such as the address for sales invoices. The API documentation tells you what a program can retrieve or create at that address.

### How does the integration know when an order has been paid for?

It can ask the shop for new paid orders at regular intervals. If your shop supports a [webhook](https://hyperhtml.nl/en/glossary/webhook/) for payments, the shop can notify the integration as soon as a payment comes through.

## Getting a quote for an integration

To get a quote, name both systems, say what should trigger the transfer and list the details you need on the invoice. You can see [how we test an API integration](https://hyperhtml.nl/en/api-integration-services/) and find the starting price for one integration on our [pricing page](https://hyperhtml.nl/en/prices/).

## Sources

- [Wat is een API? (in Dutch)](https://support.apple.com/nl-nl/guide/shortcuts-mac/apd2e30c9d45/mac), Apple Support, accessed 19 November 2026
- [Authentication](https://developer.moneybird.com/authentication/), Moneybird, accessed 19 November 2026
- [Sales invoices](https://developer.moneybird.com/api/sales-invoices/), Moneybird, accessed 19 November 2026
- [About webhooks](https://docs.github.com/en/webhooks/about-webhooks), GitHub Docs, accessed 19 November 2026

---

URL: https://hyperhtml.nl/en/glossary/api/  
Updated: 19 November 2026  
HyperHTML, Enschede, eloy@hyperhtml.nl
