Guides

An API explained for bespoke software projects

Central cube representing a digital interface connects via lines to database, cloud, servers, phone, and dashboards
Loïc Boutet
02 December 2026
7 min read
Share:

A bespoke app doesn’t need to do everything itself. If your team already uses accounting software, your new app could send invoice details there instead of recreating the billing process. An API, or application programming interface, defines what one piece of software can ask another to do and what it can expect back. That lets you build the workflow your business needs without rebuilding the services it relies on.

What does an API do?

An API is a contract

An application programming interface (API) is a set of rules that lets one piece of software request data or an action from another. The contract spells out what software can ask for, what information it must send and what it can expect back. A delivery dashboard can ask a carrier for a shipment’s status without knowing how the carrier stores or updates its tracking records.

Follow a request and response

Clicking ‘Track delivery’ is a user action; the API call happens when the dashboard’s server contacts the carrier. The button is part of the interface a person uses. The carrier’s tracking endpoint, an address the server sends its request to, is part of the interface the software uses.

  • Send the shipment identifier as an input so the carrier knows which shipment to look up.
  • Use GET to read the tracking record without asking the carrier to change it.
  • Turn the returned status into a message: the dashboard displays ‘Out for delivery’ when that’s the status the carrier sends back.

This lookup uses a web API. In REST APIs, HTTP methods such as GET, POST, PUT, PATCH and DELETE indicate what the caller wants to do with a resource. But an API doesn’t require a web request. A software library can expose functions another program calls directly, and APIs also let software work with layers closer to the hardware.

Decide what software to connect

Reuse a capability that exists

Use an API to avoid rebuilding an existing capability. WeatherKit supplies weather data that a dispatch dashboard can use to show the forecast at a job site. Reusing that data saves development time and lets the team focus on where the forecast would help a dispatcher make a decision.

The Google Maps API serves a different purpose: it lets developers embed an interactive map and retrieve geographic information. In the dashboard, a dispatcher could use the map to see where jobs are in relation to one another. Neither service tells the dispatcher which jobs to move or who should handle them.

Keep business rules in house

Let external services supply forecasts and maps, but keep dispatch decisions in house. The custom web application should own technician assignments, job priorities and cancellation approvals. For example, a forecast can give the dispatcher a reason to review an outdoor job, but your rules determine whether it takes priority over another job and who can approve a cancellation.

Scope the first useful integration

For a first API integration, bring forecasts into the job list without automating rescheduling. Compare that approach with manual lookup and automated rescheduling when defining your minimum viable product. The difference is whether the software saves the dispatcher a lookup, acts on your rules, or leaves both tasks to the dispatcher.

  • Have the dispatcher check forecasts manually for weather-dependent jobs and decide what to move.
  • Connect a forecast feed to show the relevant weather beside each job, but leave rescheduling to the dispatcher.
  • Automate rescheduling by having the application apply your scheduling rules to the forecast data.

The first integration proves useful when a dispatcher can spot jobs that may need review without separate location lookups. Check that a dispatcher can open the job list, see the forecast alongside the weather-dependent jobs and identify which ones to review without opening a separate weather app.

Separate access from API style

Who can use the API?

Public APIs are open to outside developers, private APIs are for use within an organisation, and partner APIs let approved businesses share data. Developers can sign up for a public map API, but public access can require payment and authentication. A private stock lookup might serve only an internal purchasing tool, while a partner order-status API could be reserved for approved distributors.

How do APIs exchange data?

REST APIs organise interactions around resources, GraphQL lets the caller select fields, and SOAP uses structured XML messages. The difference is in how the lookup is expressed, not who gets to make it. Suppose a delivery dashboard needs the quantity available for a particular item at a warehouse:

  • With REST (Representational State Transfer), request the item’s stock record as a resource.
  • With GraphQL, ask for only the fields you need, such as the available quantity and warehouse code.
  • With SOAP, send an inventory lookup in an XML message that follows defined rules for how messages are structured and exchanged.

A warehouse inventory API can use REST whether it serves an internal app or is restricted to an approved logistics partner. If you’re connecting to an existing inventory or accounting system, start with the interfaces it offers. Look for one that returns the data your application needs and that you’re allowed to use, rather than picking a style first.

Check the integration before launch

Read the provider’s documentation

Before committing to an invoice sync, confirm that the accounting provider supports the exact invoice operation you need. If staff need to create draft invoices, an API that only retrieves existing invoices won't do. Check that the provider offers test access for that operation, then review the required permissions, usage limits and pricing at your expected invoice volume.

The API documentation explains how to connect to the service, including its supported protocols and authentication methods. When available, an OpenAPI specification gives the team a structured description of the HTTP interface, regardless of the programming language used by either side. Use it to check required fields and responses against what your invoicing workflow needs.

Keep service credentials on the server, out of the browser, and grant only the narrowest permissions the provider offers for the sync. An API key can identify the calling application and help the provider track its usage, but it doesn't identify the staff member who clicked Send. Your application must separately check whether that person is allowed to send the invoice.

Test failures and repeated requests

Before launch, show that the sync handles an uncertain outcome and that a retry cannot create a second invoice. A timeout doesn't prove the provider rejected the request: it may have saved the invoice before the response was lost. Define what staff should see in the dashboard and verify what actually exists in the accounting system.

  • Send a valid invoice and confirm that the dashboard marks it as synced and records the provider’s invoice reference.
  • Simulate a timeout or hit a test rate limit. Expect pending if unconfirmed or failed if rejection is confirmed, never synced.
  • Submit the same invoice again, including after a lost response. Use the provider’s duplicate-prevention feature if available, or reconcile before resending. Verify that only one invoice exists.

Assign an owner after launch

Name one accountable owner to review failed syncs and make sure expiring credentials and provider version changes are handled before they interrupt invoicing. Give that person a manual reconciliation procedure for outages: compare dashboard records with the accounting system, match invoices already recorded and enter only those that are missing.

Frequently asked questions

Will I pay extra to use an API for my app?

It depends on the provider. Some include API access in your subscription, while others charge per request or reserve access for higher-priced plans. Estimate how many requests your app will make in a typical month. Then check what happens if you exceed that allowance: some providers charge extra, while others block further requests.

Can my new app connect to software that doesn’t have an API?

Yes, if it supports exports or offers another approved way to share data. A scheduled CSV export may be enough for a dashboard that only needs daily updates. If your app needs to write data back, check whether the existing software supports imports too. Without either option, some manual work may still be needed.

Will I have to rebuild my app if I switch service providers later?

Usually only the integration changes if your app keeps provider-specific code separate from its main workflow. For example, you can replace an invoicing connector without changing how staff approve invoices. A switch can still take more work if the new provider handles tax or credit notes differently, or if you need to migrate records.

Related Articles

Guides 8 min

The minimum viable product scope

Defining the right scope for a minimum viable product is harder than it looks. Too small, and you learn nothing useful. Too big, and you burn time and budget before you even meet real users. The key is to translate an...

29 November 2026 Read article