Glossary · Business software

What is an API?

See the worked example

Definition

An API (application programming interface) is a defined way for one program to ask another for data or to make it do something, without a person in between.

Subject
Business software
Applies
In any country
Also called
application programming interface, REST API, API integration, API key, webhook

Term 10 of 150, A to ZUpdated

What it means

A person uses software through its screens. Another program uses it through its API: it sends a request in a fixed format and gets an answer in a fixed format. That is how a web shop puts an order into an ERP, or how accounting software sends an invoice to a tax portal.

Terms that go with it:

  • API key: a secret that identifies the calling program, like a password for software. Whoever holds it can do what the key allows.
  • Webhook: the reverse direction. Your system does not ask; the other system tells it when something happens, such as a payment being received.
  • Integration: the finished link between two systems, usually built on their APIs.
  • File import: the manual alternative. A person exports a file from one system and loads it into the other.

An API saves retyping and the mistakes that come with it. It also needs care: someone must build the link, watch it and fix it when either side changes.

Example

A web shop takes 300 orders a day. Each one is typed into the accounts by hand in about 2 minutes.

Item By hand Through an API
Time each day 300 × 2 min = 10 hours None
Delay before stock is updated Hours Seconds
Typing errors at 1 in 100 3 wrong orders a day None from typing

The request the shop sends is short and exact:

POST /orders
{ "customer": "C-1042", "item": "TSH-BLU-M", "qty": 2, "rate": 18.00 }

Common mistakes

  • Putting an API key in an e-mail, a spreadsheet or a web page.
  • One key with full access, where a key limited to one task would do.
  • No check on what happens when the other system is down.
  • Building a link for a job that happens twice a month. A file import is enough.

In MyRecords

MyRecords connects to payment gateways, WhatsApp Business, SMS and, in India, the GST systems through their APIs, once you add your own account. Signed webhooks can tell your system when a record changes; our team sets these up. The API open to clients is small today, covering search and the audit trail, and wider access is custom work. API keys are made only under Settings › Security › API access. See integrations.

Any business, anywhere

Put these terms to work in your books.

Accounting, tax, stock, payroll and loans in one system, customised to the way you work.

See every appWorks worldwide

Free, no obligation

Request a quote

  • For the apps and modules you pick
  • At our best price, in writing
  • Your questions, answered by our team