Skip to content
HyperHTMLRequest a proposal

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.

Updated

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

What to check on test order L42
StageWhat to check
The shop receives the orderPlace order L42 for two reading lamps using a test customer account. Complete the payment in the shop's test mode.
The integration sends the requestThe 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 respondsOpen 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 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 and find the starting price for one integration on our pricing page.

Sources

Request

Tell us what you need

You will hear back within one working day from Eloy Evers, who also builds it. Then you get a proposal with a fixed price.

Prefer email?
eloy@hyperhtml.nl

Prefer to call or message?

06 36 48 51 80

Your details are only used to reply to this request. See the privacy statement.