← Blog

·

Odoo + official WhatsApp API: native app and integration

Updated on November 10, 2026

Odoo has a native WhatsApp app that connects to Meta’s official WhatsApp Business API, but it is exclusive to the Enterprise edition: the official documentation warns that it does not work on Odoo Community. Setup requires creating your own app in Meta’s developer dashboard, copying the App ID, App Secret, account ID and Phone Number ID into Odoo, generating a permanent token and subscribing to the webhook. If you use Community, or want the number hosted with another provider, the way to go is integrating through Odoo’s external API.

Which edition and which version

ItemWhat the Odoo documentation says
EditionEnterprise only; does not work on Community
Versions with app documentation17.0, 18.0, 19.0 and 20.0
Compatible account typeOnly WhatsApp Business Platform (API) accounts; personal accounts and WhatsApp Business app accounts are not compatible
Where conversations liveIn Discuss, Odoo’s internal chat
PaymentMeta requires a payment method to finish adding the number (part of its fraud prevention)

Because the connection runs through an app you create on Meta, messages are billed by Meta to the payment method registered in your account; the Odoo documentation does not describe any intermediation of that payment.

Setting up the native app, step by step

1. On the Meta side

  1. Create (or use) a business portfolio on Meta. The Odoo documentation asks that the personal Facebook account be at least one hour old.
  2. Create a developer account and an app of type Business. Odoo suggests naming the app “Odoo” and avoiding the word “WhatsApp” in the name; choose the “Other” use case and link the portfolio.
  3. Add the WhatsApp product to the app. Meta provides a test number that sends to up to five verified recipients.
  4. From the Quickstart (API setup screen), send a test message to the verified numbers. The real number is added after the webhook, under API setup ‣ Add phone number, verified by text message or phone call; this is the step where Meta requires a payment method.

2. On the Odoo side

In WhatsApp ‣ Configuration ‣ WhatsApp Business Accounts, create the account and fill in:

Field in OdooWhere it comes from
PhonePhone Number ID, on the API setup screen in Meta
TokenAccess token (the temporary one is only good for testing)
App IDApp ID in Meta
Account IDWhatsApp Business account ID
App SecretApp settings > Basic, in Meta

Click Test Connection. If it succeeds, Odoo fills in the Callback URL and the Webhook Verify Token in the incoming messages section.

3. Webhook

In the Meta app, under WhatsApp ‣ API Setup, enter Odoo’s Callback URL and Verify Token, click verify and save. Then subscribe to the fields:

  • messages
  • message_template_status_update
  • message_template_quality_update
  • template_category_update
  • account_update

The URL must be public, with https:// and a valid domain. The fields only appear after the subscription is confirmed with the URL and token. If messages are not arriving, the checklist for a webhook that is not working helps you find the cause.

4. Permanent token

The temporary token expires (error 190). For production, go to Business Settings > Users > System Users, create an admin system user, add the app as an asset with full control and generate a token valid for 60 days or “Never”, with the permissions business_management, whatsapp_business_messaging, whatsapp_business_management and whatsapp_business_manage_events. Odoo warns that error 100 shows up when an Employee user tries to set up the permanent token; the fix is to create an admin system user. Finally, switch the Meta app from Development to Live, which requires a privacy policy URL; until then, only test numbers receive messages.

Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →

Templates and automations in Odoo

Templates are created in WhatsApp ‣ Templates, with a name, language, account, the model they apply to (for example, sales order or invoice) and category (marketing, utility or authentication). They support:

  • Header with text, image, video, document or location.
  • Body with variables {{1}}, {{2}}, mapped in the variables tab to a model field or a portal link.
  • Buttons for quick reply, website or phone call.

Click Submit for approval; the status stays pending until Meta decides. Templates created directly in Meta are pulled in with Sync Templates, and duplicate names between Meta and Odoo cause a validation error.

For automatic sending, the automation rules in Odoo 18 and 19 have the Send WhatsApp action: you pick the trigger (for example, a stage change or an updated field) and the template, and Odoo sends it to the contact linked to the record.

Conversations in Discuss

When a customer writes to the number, Odoo opens a group chat with all the channel’s operators. When the company sends a template and the customer replies within 15 days, a chat window opens in Discuss. Meta’s rule still applies: free-form messages only within the 24-hour customer service window after the customer’s last message; outside of it, a template.

How much each notification costs

Meta charges per delivered message. For recipients in Brazil, since October 1, 2026: marketing R$ 0.3217; utility, authentication and service R$ 0.0350. Utility templates sent within the window are also charged, and each number has an allowance of 1,000 service messages per month. If you operate in other countries, see the WhatsApp API pricing by country.

When to integrate outside the native app

The native app does the job when you have Enterprise and accept a direct connection with your own app on Meta. It is worth integrating outside it when:

  • You use Odoo Community, where the WhatsApp app does not exist.
  • The number needs to stay with a provider that serves other systems (website, bot, customer service system), or you do not want to maintain an app, token and webhook on Meta.
  • You also want the number on your phone: the native app does not accept WhatsApp Business app accounts, and coexistence depends on the provider.

The Odoo Apps Store has third-party WhatsApp modules, including for Community. Some use the Cloud API and others use WhatsApp Web; check each module’s page to see which channel it uses. The risk of WhatsApp Web is covered in official vs. unofficial API.

Custom integration with the JSON-2 API (Odoo 19)

Odoo 19 introduced the JSON-2 external API: POST https://<host>/json/2/<model>/<method>, with the header Authorization: bearer <API key> and named arguments in the body. Keys are created in Preferences ‣ Account Security ‣ New API Key and last at most three months. The documentation recommends a dedicated user with minimal permissions and flags two points that weigh on the project:

  • Access through the external API is only available on Odoo’s Custom plans; the One App Free and Standard plans do not include it.
  • The legacy endpoints /xmlrpc, /xmlrpc/2 and /jsonrpc are scheduled for removal in Odoo 22 (fall 2028) and Odoo Online 21.1 (winter 2027). New projects should be built on JSON-2.

The design has the same two flows as any ERP, detailed in integrating the WhatsApp API with your ERP:

FlowTriggerOdoo piece
Odoo → WhatsAppInvoice confirmed, order delivered, lead stageAutomation rule with the Send Webhook Notification action calling your URL
WhatsApp → OdooOfficial API messages webhookJSON-2: look up the contact, create a lead, post the message to the chatter

Example: a WhatsApp message becomes a lead in Odoo CRM

import express from "express";

const app = express();
app.use(express.json());

const ODOO = process.env.ODOO_URL; // e.g.: https://yourcompany.odoo.com
const oHeaders = {
  Authorization: `bearer ${process.env.ODOO_API_KEY}`,
  "Content-Type": "application/json; charset=utf-8",
  // optional: only when the server hosts several databases
  ...(process.env.ODOO_DB && { "X-Odoo-Database": process.env.ODOO_DB }),
};
const seen = new Set(); // in production, use a database or Redis

async function odoo(model, method, args) {
  const r = await fetch(`${ODOO}/json/2/${model}/${method}`, {
    method: "POST",
    headers: oHeaders,
    body: JSON.stringify(args),
  });
  if (!r.ok) throw new Error(`Odoo ${r.status}: ${await r.text()}`);
  return r.json();
}

app.post("/webhook/whatsapp", async (req, res) => {
  res.sendStatus(200);
  const value = req.body.entry?.[0]?.changes?.[0]?.value;
  const msg = value?.messages?.[0];
  if (!msg || seen.has(msg.id)) return;
  seen.add(msg.id);

  try {
    const phone = `+${msg.from}`;
    const name = value.contacts?.[0]?.profile?.name ?? phone;
    const text = msg.type === "text" ? msg.text.body : `[${msg.type}]`;

    // Open lead with the same phone number?
    const found = await odoo("crm.lead", "search_read", {
      domain: [["phone", "=", phone], ["active", "=", true]],
      fields: ["id"],
      limit: 1,
    });
    let leadId = found[0]?.id;

    if (!leadId) {
      const created = await odoo("crm.lead", "create", {
        vals_list: [{ name: `WhatsApp: ${name}`, contact_name: name, phone: phone }],
      });
      leadId = created[0];
    }

    await odoo("crm.lead", "message_post", {
      ids: [leadId],
      body: `WhatsApp received: ${text}`,
    });
  } catch (e) {
    console.error("Failed to write to Odoo:", e);
  }
});

app.listen(3000);

Check the field and argument names on your database’s /doc page and normalize the phone number stored in Odoo to the same format, otherwise the search will not find the lead. For the reverse path, your URL receives the data from the automation rule, picks the template (invoice issued, order shipped) and calls the WhatsApp API. If you also want orders with status over WhatsApp, see orders with order_details; for Brazilian ERPs, the integration with Bling (an ERP popular in Brazil) follows the same design.

Native vs. custom integration

CriterionOdoo WhatsApp appCustom integration
EditionEnterprise onlyEnterprise or Community (on Odoo’s subscription plans, the external API requires Custom)
Connection to MetaYour own app on Meta, token and webhook maintained by youThrough the provider you choose
TemplatesCreated in Odoo and syncedCreated in the provider
ConversationsDiscussIn whatever customer service tool you use; Odoo receives the history
Payment to MetaPayment method in your Meta accountDepends on the provider

How to do this with Vectalk

Vectalk is a proxy for the official WhatsApp API and fits the custom integration path: the number stays on Vectalk, and you do not need to create an app on Meta or rotate a system user token. The Odoo automation rule calls your service, which sends the template via POST https://apis.vectalk.com.br/api/messages with the same JSON as the Cloud API; the webhook registered with POST https://apis.vectalk.com.br/api/webhooks delivers messages in Meta’s format, and your service writes them to Odoo. Vectalk offers coexistence, but has no native inbox, AI or bulk messaging: customer service stays in Odoo or in whatever tool you connect. You pay the plan’s monthly fee and load a prepaid balance; each delivered message is deducted from the balance, with no card registered on Meta. See the webhooks and sending a template, or create your account at apps.vectalk.com.br/register.

Frequently asked questions

Does Odoo’s WhatsApp work on Community?

No. The official documentation says the WhatsApp app is exclusive to Enterprise. On Community, use a third-party module that talks to the official API or a custom integration through the external API.

Can I use in Odoo the number that is on the WhatsApp Business app on my phone?

Not with the native app: the Odoo documentation says WhatsApp Business app accounts are not compatible. With a provider that offers coexistence and a custom integration, the number stays on your phone and also on the API.

Does Odoo charge for WhatsApp messages?

With the native app, billing is done by Meta, to the payment method registered in your account. Odoo does not appear in the documentation as an intermediary for the payment.

Why did my WhatsApp token in Odoo stop working?

Error 190 indicates an expired temporary token. Generate a permanent token from an admin system user; error 100 shows up when an Employee user tries to set up the permanent token.


Official sources consulted on November 10, 2026: WhatsApp, Odoo 19.0 documentation, WhatsApp, Odoo 17.0 documentation, WhatsApp, Odoo 20.0 documentation, Automation rules, Odoo 18.0, Automation rules, Odoo 19.0, Webhooks, Odoo 19.0, External JSON-2 API, Odoo 19.0, Pricing (Meta), Vectalk webhooks.

Put your business on the official WhatsApp

Create your account, connect your number to the official API (you can keep the app with coexistence) and start serving customers and sending messages.