What is an API (interface)?

Glossary · ERP & Odoo

Also known as: Interface, application programming interface, programming interface, web service, integration

In brief

An API (application programming interface) is a defined access point through which programs automatically exchange data or trigger functions in another system – without anyone retyping data or shuffling files back and forth.

How an API works

An API is a bit like a system’s menu: it lists what you can order and in what form the answer comes back. One program sends a request – “give me all open invoices” or “create this order” – and the other system checks the permissions and responds in an agreed format, these days usually JSON.

For this to work, you need three things: an address where the interface can be reached, a login, for example with an API key, and documentation of the available functions and fields. Web services handle this over HTTPS, and the REST style is widespread.

Typical interfaces in an SME

Which connections you need depends on your business model: a trading company with an online shop has different priorities than an accounting firm or a carpentry shop. But in Swiss SMEs, the same candidates keep coming up:

  • Bank: account statements and payment orders in ISO 20022 format
  • Invoices: sending and receiving via eBill or as a PDF with a QR code
  • Online shop and marketplaces: orders, stock levels and prices
  • Industry-specific software, machines and point-of-sale terminals
  • Shipping providers, payment providers and telephony

What to watch out for

First decide which system is the master for which data. If two programs are allowed to change the same address, chance wins in the end. Also clarify who maintains the interface: if one side changes its API, the connection has to be updated.

Good interfaces report errors instead of failing silently, and they only get the permissions they really need. Not every connection has to run in real time: a regular file exchange, for example via CSV, is an interface too – simpler, but slower. If you don’t connect your programs at all, you end up with siloed software.

Two more points belong before every decision: API keys are as sensitive as passwords – don’t send them by email, renew them regularly and revoke them when someone leaves the company. And some providers only unlock their API in certain plans. Check that before you count on a tool.

Interfaces in Odoo

Odoo comes with an external API that lets other programs access almost all data. Since version 19, the current variant is called the JSON-2 API, and authentication uses API keys. The older access via XML-RPC and JSON-RPC is deprecated; according to Odoo’s documentation, it is set to be removed with Odoo 22 in fall 2028. So you should migrate existing integrations in good time.

On Odoo Online, the external API is only available with the Custom plan. For some things, such as importing bank statements or exporting payment files, Odoo has its own features; for everything else, we develop integrations as custom modules – more on that under customization.

Frequently asked questions about APIs

Your question isn’t here? Ask us directly – the initial consultation is free and without obligation.

What does API mean?

API stands for application programming interface. It’s how programs exchange data automatically.

Does Odoo have an API?

Yes. Since Odoo 19, there’s the JSON-2 API with authentication via API keys; the older XML-RPC and JSON-RPC access is deprecated. On Odoo Online, the external API is only available with the Custom plan.

What’s the difference between an interface and an import?

An import transfers data once or manually when needed, for example when switching systems. An interface exchanges data continuously and automatically.

Ready for the next step?

Let’s find out together how Odoo can move your business forward.