Skip to content
Portalby Webisoft®Book a demo

A REST API and webhooks for Odoo

Connect Odoo to Portal and create an API key under Developers. Your systems call one versioned REST API for Odoo customers, items, prices, orders, quotes, invoices and shipments, and get signed webhooks when they change.

01About

About Odoo.

Odoo is a suite of open source business apps, from CRM and sales to accounting, inventory and manufacturing, all on one platform. Odoo Community is licensed under the LGPL version 3, and Odoo Enterprise is built on top of it under Odoo's own license.

You can run it on Odoo Online, on the Odoo.sh cloud platform, or on your own servers. Odoo ships one major version a year and supports the last three; Odoo Online also gets intermediate versions every two months that are not released for Odoo.sh or on-premises.

Odoo is priced per user, but external users such as customers and suppliers using Odoo through its portal are not paying users.

Portal by Webisoft is a B2B portal for Odoo: customer self-service and team apps on live Odoo data.

02The hard part

Why connecting to Odoo is hard.

Odoo's classic API is being retired and keys now expire, so building directly on it means planning a migration from day one.

The external API depends on your plan

Odoo states that access to data through the external API is only available on Custom pricing plans, not on One App Free or Standard. Before any integration, check which plan your database is on.

The classic API is being replaced

Odoo has scheduled the /xmlrpc and /jsonrpc endpoints for removal in Odoo 22 in fall 2028, and in Odoo Online 21.1 in winter 2027, in favour of the new JSON-2 API. Most existing Odoo integrations use the classic endpoints and will need to move.

API keys expire

From Odoo 19, an API key cannot be created for more than three months, so long-running integrations have to rotate their key at least every three months. Odoo recommends dedicated bot users for integrations.

A new major version every year

Only the last three major versions are supported, and Odoo Online moves even faster with releases every two months. Field and model changes between versions are a common reason integrations break after an upgrade.

03Options

Your options.

OptionFits whenWatch out for
Native Odoo add-onsYou need one narrow function and an add-on covers it.Each add-on is its own product to license, learn and upgrade.
Generic integration platformYou have someone in-house to build and maintain the flows.You still build the screens, the AI layer and the Odoo write rules yourself.
Custom codeThe need is unique and you have developers who know Odoo.Upgrades and staff changes put the integration at risk.
Portal by WebisoftYou want customers, your team and AI agents working on live Odoo data.It works on top of Odoo; it does not replace it.
04How Portal connects

How Portal reaches Odoo.

Portal connects to Odoo 17 and later through Odoo's external API, signing in as an integration user with an API key created under Preferences, Account Security. Your administrator enters the Odoo address, the database name, the user's login and the key, plus the customer tag that marks a credit hold, since Odoo has no blocking credit hold of its own.

For Odoo on your own servers, Portal can reach it through the On-site connector relay, which runs inside your network and only makes outbound connections. The Odoo connection has passed live tests against a real Odoo 17 database, both directly and through the relay with the real agent.

05Before you start

What you need.

06Steps

Step by step.

Your Portal team sets up the Odoo connection with you during onboarding, so the first step is done together. The rest is yours to change any time.

  1. Create an Odoo API key and connect

    In Odoo, sign in as the integration user and create an API key under Preferences, Account Security. Under Setup, ERP, ERP system in Portal, choose Odoo and enter your Odoo address, the database name, the user's login, the API key and the customer tag that marks credit hold, then choose Test connection.

  2. Create a restricted key

    In Developers, API keys, choose Create restricted key and tick only the scopes your app needs, for example orders and catalog.

  3. Call the API

    Send requests to /v1/ with the bearer key and the Portal-Version header. Orders you POST are written as a confirmed Odoo sales order; send an Idempotency-Key so a retry never places the order twice.

  4. Listen for changes

    In Developers, Webhooks, add an endpoint for events such as order.confirmed and shipment.updated, which fire as Odoo confirms orders and ships them.

07What syncs

What syncs with Odoo.

RecordReadWrite backNote
Customers, contacts and addressesYesNoCredit hold from a customer tag
ProductsYesNo
PricelistsYesNoEach customer's pricelist becomes its price level
Stock by locationYesNo
QuotationsYesYesConfirmed in place on acceptance, keeping the quote number
Sales ordersYesYesCredit hold and inactive products checked first
Customer invoicesYesNo
Customer paymentsYesYesOne payment registered per invoice
DeliveriesYesNoCarrier and tracking need the delivery module
Purchase ordersYesYesUpdate scheduled dates and quantities
AttachmentsNoYesOn customers, orders and invoices
08Next

What you can do next.

09FAQ

Odoo questions, answered.

Has the Odoo connection been tested on real Odoo?

Yes. It passes live tests against a real Odoo 17 database, both directly and through the On-site connector relay.

Is this the Odoo API?

No. It is Portal's API, the same for every ERP; Portal handles Odoo behind it.

Can I test without touching our ERP?

Yes. The test sandbox copies your customers, catalog, prices and stock onto a demo ERP, and test keys work only there.

10More guides

Keep going.

Sources