Migrating Odoo XML-RPC and JSON-RPC integrations to JSON-2

XML-RPC and JSON-RPC are scheduled for removal in Odoo 22 and Online 21.1, so every integration that calls them needs a planned move to JSON-2 with API keys. This page covers how to find those integrations, choose a migration path for each, and test the transaction differences before cutover.

On this page

How to migrate Odoo XML-RPC integrations to JSON-2 before removal

Integration teams that call Odoo over XML-RPC or JSON-RPC need to move before Odoo 22 and Odoo Online 21.1 remove those protocols. The change sits mostly in the calling layer. Authentication moves away from sending a password with each login call toward API keys sent as bearer tokens, the endpoint format changes, and requests move to JSON-2, where each call names an ORM method and its arguments. What stays the same is the data behind the calls: the models, field definitions, access rights, record rules and business logic that Odoo applies to every read and write. An integration that created invoices or stock moves over XML-RPC should create the same records once it is ported, so the work is a translation of how calls are made, and the business process itself does not change.

Start with an inventory, because most of the effort goes into finding calls nobody has documented. Search code repositories, server crontabs, CI jobs, middleware, workflow tools such as n8n, reporting connectors and internal scripts for xmlrpc/2/common, xmlrpc/2/object and JSON-RPC endpoints. For each integration, record the owner, the database and version it targets, the user it authenticates as, the models and methods it calls, how often it runs, whether it writes data, and what happens when a call fails or times out. The authenticated user deserves particular attention, since integrations often run under an administrator account that should be replaced by a dedicated integration user with minimum rights. The finished list sets the order of work and the test cases for every port.

Finding every integration that still uses XML-RPC or JSON-RPC

Old protocol calls rarely sit in one obvious place. They live in scripts, middleware flows, reporting extracts, bank and marketplace connectors and vendor products that talk to Odoo on someone else's behalf. The inventory has to cover all of them before any code changes, because each hiding place has a different owner and a different way of being found.

Custom scripts and internal code

Start with the repositories and cron hosts your own teams control. Search for xmlrpc.client, ServerProxy, /xmlrpc/2/common, /xmlrpc/2/object and /jsonrpc across every codebase, including old branches and utility folders, because one forgotten sync script often breaks first. Record the script, its schedule, the Odoo models it touches and the account it logs in with. Code search finds what is written down; it does not find what runs unattended, so pair it with the next checks.

Middleware and iPaaS flows

Workflow tools and integration platforms often hold Odoo connections as stored credentials inside a flow, so the protocol is not visible in any source file. List every flow with an Odoo connector, the version of that connector and the Odoo models each flow reads or writes. Ask the platform team to export flow definitions, since the Odoo step may use an XML-RPC or JSON-RPC client under the hood that only the flow editor reveals.

Outbound traffic and Odoo logs

Code and flow lists miss forgotten servers, so confirm with evidence. Review reverse proxy and firewall logs for requests to the /xmlrpc/ and /jsonrpc paths, grouped by source address and user agent. Then check the Odoo side for the user accounts and sessions that made those calls. Any source that appears in the logs but not in your inventory is an unknown integration and needs an owner before the removal date is set.

BI extracts and scheduled exports

Reporting jobs commonly read Odoo through the old protocols because the examples in older guides used them. Check BI tools, spreadsheet refresh jobs, data warehouse loaders and ad hoc notebooks, including ones on analysts' laptops. Note which datasets they pull, how often and under which user. Reporting reads are often the simplest to move to JSON-2, but they are also the easiest to lose track of after a go-live.

Marketplace, bank and payment connectors

Connectors published by third parties may call Odoo through XML-RPC or JSON-RPC inside a package you did not write. For each one, record the vendor, the installed version, the Odoo version it supports and whether the vendor has announced a JSON-2 release. Do not patch these by hand. Ask the vendor for a written statement of the protocol they use, a target release date and whether an upgrade changes your configuration or credentials.

Vendor apps that embed Odoo clients

Some vendor products bundle an Odoo client to sync customers, orders or invoices, and the protocol is buried in their settings or agent software. Ask each vendor which Odoo API their product calls, whether the call is configurable and what version they support. Because you cannot change their code, the decision is whether to upgrade to their supported version, replace the product or accept a dated dependency. Put that decision on the register with a named owner.

Which migration path fits each integration

This table compares the four paths a team can take for each XML-RPC or JSON-RPC integration: rewrite the client, update a middleware flow, replace it with an Odoo-side feature, or retire it. Read each row against your own inventory of integrations, starting with code ownership and call volume, then check the main risk before committing. Most teams end up with a mix of paths rather than one choice for everything.

PathEffort driversMain riskWhen it fits
Rewrite the client to call JSON-2 directlyCode ownership, number of models touched, call volume, and how much of the client depends on RPC-specific calling patternsSubtle differences in how each call creates its transaction, so a multi-step write may behave differently than beforeYou own the client code, it is actively maintained, and it talks to Odoo in a straightforward way
Update a middleware flowNumber of flows that call Odoo, whether the middleware already handles authentication, and how many steps each flow runsChanging a shared connector can break several flows at once, so each one needs its own retestThe integration already runs through a workflow tool or message layer and the middleware vendor or team controls the Odoo connector
Replace with webhooksNumber of events that trigger the integration, payload mapping to the target record, and receiver endpoint changesMissed or duplicated events if the receiver does not handle retries and idempotency, so test on a duplicate database firstThe integration pushes changes out of Odoo when a record is created or updated, rather than polling or writing data in
Replace with automation rules or server actionsNumber of triggers and conditions, whether logic lives in Odoo or in the external system, and load on large modelsRules that trigger each other can loop, and slow rules can affect users working in the same modelThe work is routine record handling inside Odoo that does not need an external system to run it
Retire the integrationNumber of users or downstream reports that depend on it, and whether anyone still reads its outputRemoving something a monthly report or a partner depends on, found only after go-liveThe integration is unused, duplicated by another path, or no longer matches how the business works
Confirm before choosingPlan and hosting, since external API access depends on the Odoo plan and hosting type, and the endpoint details on each database's /doc pageDesigning around an endpoint or behavior that the documentation for your version does not describeUse this check before any row above is committed, and record the answer for each integration

Every legacy integration needs an owner and a duplicate-database test before cutover

The path starts with an inventory entry and asks first whether the integration still runs and whether anyone owns it, since an unowned integration is a retirement candidate rather than a migration. Next, the hosting and plan of the database decide whether external API access is available at all, which must be checked before any design work. The branch then points to one of four outcomes: rewrite the calls in JSON-2, change the middleware that calls Odoo, replace the integration with an Odoo feature, or retire it. Every path ends with a test on a duplicate database before cutover, so search_read and transaction behavior can be compared against the legacy calls.

Decision path that routes each inventoried integration to one outcome and a duplicate-database test.

Migration sequence from inventory to cutover

This sequence moves each XML-RPC and JSON-RPC integration to JSON-2 one at a time, with a proven fallback at every stage. Each step closes with a check, so the team knows an integration is ready to move on before the old path is switched off.

  1. Build the integration inventory

    Start by listing every system that calls Odoo over XML-RPC or JSON-RPC, including scheduled scripts, middleware flows, reporting extracts, spreadsheet add-ons and vendor connectors. For each one, record the endpoint it calls, the Odoo models and methods it touches, the database and user it authenticates as, the owner, and how often it runs. Ask each application owner to confirm the list, since integrations are often undocumented. The step is done when every entry has an owner and a named test case, and the inventory is reviewed with the teams that run those systems.

  2. Confirm plan and hosting access

    Check that your Odoo plan and hosting type allow external API access before designing any new calls. Odoo's pricing page states that external API access is included only in the Custom plan, so an Odoo Online subscription on another plan needs an upgrade decision first. Confirm this with Odoo or your partner against the current pricing terms, and record the Odoo version each environment runs. The step is done when a written note confirms the plan, hosting type and version for production and every test database.

  3. Create integration users and API keys

    Create a dedicated user for each integration rather than reusing a person's account or an administrator login. Give each user only the access groups and record rules its integration needs, then generate an API key for it. Store keys in your secrets manager, not in scripts or configuration files, and record which integration each key serves. The step is done when each integration has its own user and key, and a test call made with that key returns only the records that user is allowed to see.

  4. Switch one integration on a test copy

    Pick one low-risk integration and rebuild its calls on JSON-2 against a neutralized duplicate of production. Neutralization disables outgoing email, payment providers and scheduled actions in the copy, so test calls cannot reach customers or external systems. Keep the old XML-RPC or JSON-RPC version of the integration running alongside it. The step is done when the duplicate database logs a successful JSON-2 call for each operation the integration performs, with the bearer key and database selection visible in the request log.

  5. Compare results field by field

    Run the same business operations through the old and new paths against identical data, then compare the output. Check record counts, every mapped field, relational values, computed fields, default values, and error responses. Pay particular attention to transaction behavior, since JSON-2 calls run in their own transaction, and to any code that assumed earlier calls had already committed. Record each difference and decide whether it is a defect or an accepted change. The step is done when a matched record count and a field-level comparison show no unexplained differences for the test cases in the inventory.

  6. Run both paths in parallel

    Keep the old and new integration running side by side against production for an agreed observation window, with the new path writing only where the old path's output is compared rather than trusted. Compare daily totals or sampled records between the two paths and log any mismatch with its timestamp and request details. The length of the window is a decision for the business owner and the integration owner, and it should cover the batch cycles that the integration actually runs. The step is done when the agreed window closes with no open mismatches.

  7. Cut over and retire old credentials

    Switch each integration to JSON-2 in production, one at a time, and disable the old path once its successor has proven itself. Revoke the legacy credentials and API keys that the old calls used, and remove any stored passwords for them from scripts, vaults and configuration files. Keep the inventory updated so each entry shows its new endpoint and key owner. The step is done when the audit log shows no remaining XML-RPC or JSON-RPC calls from the inventory, the legacy credentials are revoked, and the owner has signed off on each integration.

How transaction behavior changes when calls move to JSON-2

Every integration that moves off XML-RPC or JSON-RPC carries assumptions about what happens when a call fails partway through. Error handling, partial failure logic and retry code were written against the old call behavior, often without anyone documenting it. Before any endpoint is switched, the team should review each integration against the JSON-2 transaction model documented for its target database, and record which writes are expected to commit together, which are expected to roll back, and what the caller does when it cannot tell which happened. Do not assume the new client behaves like the old one. Confirm the per-call transaction scope on the /doc page of the target database, since that page is the reference for what a single JSON-2 request commits.

Testing should target the cases where the old and new behavior are most likely to diverge. Start with multi-step writes, such as a sales order confirmed and then invoiced, or a stock move followed by a validation, and check whether a failure in step two leaves step one committed. Next, force failures midway through a sequence and compare the database state with what the integration logs and reports. Then test idempotent retries: replay the same create or update after a timeout and confirm it does not duplicate partners, invoices or journal lines. Use external IDs or a stored reference to make retries safe. Finally, run the integration while users edit the same records and while scheduled actions and automation rules fire, because concurrent writes can produce conflicts that a single-threaded test will never show.

Record the results as a transaction test matrix, one row per integration and call pattern, with the expected state after success, after a mid-sequence failure and after a retried call. Share it with the people who own the business process, not only the developers, because some rollback expectations depend on accounting or inventory rules. Any row where the team cannot confirm the behavior from the /doc page or a test on a duplicate database should be treated as an open risk and closed before the production cutover date is set. Keep the matrix with the integration's runbook so that future upgrades repeat the same checks.

What changes by hosting: Odoo Online, Odoo.sh and self-hosted

Odoo Online is Odoo's hosted service, and external API access depends on the plan you subscribe to. Odoo's pricing page lists One App Free, Standard and Custom plans, and it states that only the Custom plan includes external API access. A Standard subscription therefore does not give you the external calls your integrations need, even if the database itself works fine for users.

  • Plan check: Confirm in writing that your subscription is Custom before you design any JSON-2 call.
  • Version cadence: Odoo SaaS versions are released every two to three months and cannot use extended support, so your integration must track frequent releases.
  • Upgrades: Major version upgrades are mandatory every two years on Odoo Online, so schedule API testing into each upgrade window.
  • Support windows: Standard support covers the first three years after a major release, including security updates.
  • Account owner: Ask who holds the subscription and who can change the plan, since the API decision depends on it.

The first thing to verify is whether your current subscription is the Custom plan, because a Standard plan blocks the migration path described on this page.

Securing API keys and integration users during the move

Moving to JSON-2 is also a chance to replace the shared and administrator credentials that many XML-RPC and JSON-RPC scripts were written with. The cards below cover the credential model, key lifetimes, cutover, auditing and test copies, and they set out which parts of the work fall to the client's own team.

Dedicated integration users

Give each integration its own Odoo user with only the access groups and record rules that its calls need. Many legacy scripts authenticate as an administrator because it was the simplest option at the time, so a leaked key exposes the whole database. Before cutover, list every model and method each integration calls, then grant only those rights. Confirm with your Odoo administrator which access groups cover each model, because the JSON-2 calls will fail with access errors if a right is missing.

Key lifetimes and rotation

Set an expiry for every API key and record who owns it, which system uses it and when it must be replaced. Rotation is easier when the integration reads its key from a secret store and the change is a configuration update, not a code release. Ask your Odoo team which key duration limits apply to your hosting plan and version, since these vary by deployment, and write the rotation schedule into the integration runbook before go-live.

Revoking old credentials at cutover

Plan the cutover so that the XML-RPC and JSON-RPC credentials stop working once each integration has been verified on JSON-2. Keeping old administrator passwords or keys active after the switch leaves a path around the new controls. Run a short overlap period only if you have a named owner and a removal date. Record the revocation as a change ticket, and confirm that no scheduled job, spreadsheet or third-party tool still holds the old credential.

Auditing which key did what

Each action should be traceable to one integration user, so that a logged change can be matched to a specific system. If several integrations share a user or key, you cannot tell them apart in the record history. Confirm which audit logging your Odoo edition and hosting type provide, and decide how long your security team needs to retain those logs. Test the trail during the migration by making a known change through each integration and checking that it appears under the expected user.

Keeping production keys out of test copies

A copy of the production database carries its users and their stored credentials into the test environment. Use a duplicate with neutralization for test runs, because neutralization is designed to disable live outgoing activity in the copy. Still, confirm in your own environment that the test instance does not hold production keys, and create separate test keys for the integrations. Otherwise a test script could write to live records.

Odoo on-premise docs

Secrets handling in client code

Odoo controls the key and the user rights, but how your integration stores and sends the key is the responsibility of your team or your partner's team. Keys hard-coded in scripts, committed to repositories or written to logs will remain exposed regardless of Odoo settings. Load keys from a secrets manager at runtime, restrict the file permissions of any local configuration, and scan repositories for leaked keys before the migration is signed off.

Questions teams ask before migrating Odoo integrations

What drives the cost of migrating Odoo integrations to JSON-2?

The cost follows the amount of work in each integration. The main drivers are the number of integrations, how many distinct Odoo models and methods each one calls, how much custom logic wraps those calls, and how many systems depend on the output. An integration that makes a few read calls is usually a small change. One that writes orders, invoices or stock across several models needs more testing because transaction behavior and error handling must be checked. Cost is largely one-time, since the switch to API keys and JSON-2 calls is done once, but ongoing maintenance of the new code recurs. Ask any partner for a quote built from a written inventory, a list of models and methods per integration, and a stated test plan, so the figure can be compared line by line with your internal estimate.

How long does an Odoo JSON-2 migration take?

The duration depends on the number and type of integrations, not on a fixed rule. Plan time for the inventory, for each code change, for testing against a duplicate database, and for cutover with a rollback path. Simple read-only reports move quickly. Bidirectional sync jobs that create and update records take longer because each write must be verified and idempotency must be confirmed. Integrations maintained by third parties depend on those parties' release schedules. No duration is set here, so ask for a timeline in the written scope, with milestones tied to specific integrations and a named test environment. A timeline without an inventory behind it is a guess.

What does our team need to provide for the migration?

Four things make the work predictable. First, access to an inventory of every system that talks to Odoo, including scheduled jobs, middleware, spreadsheets with macros and vendor tools. Second, named code owners who can explain what each integration does and who depends on it. Third, a test database that matches production closely enough to exercise real data, created from a duplicate and neutralized so that test copies do not send email or call live services. Fourth, confirmation of your Odoo plan and hosting type, because external API access depends on it. Also provide a decision on who signs off each cutover. Missing any of these pushes effort into discovery during the build.

Can one capable internal developer migrate the integrations alone?

A capable developer can migrate a small set of integrations alone, especially if they know the Odoo ORM and the codebase they are changing. The risk is coverage and continuity. Migration touches authentication, access rights, error handling and testing across every caller, and one person rarely knows all of them. Consider whether the developer can document each integration, set up a bot user with minimum rights, run tests on a duplicate database, and keep working through the cutover. If the answer is no for any of these, add a reviewer or an outside partner for the parts that need a second pair of eyes. Ask whichever route you choose to produce the same inventory, test evidence and rollback plan.

What happens if we miss an integration during the migration?

A missed integration keeps calling XML-RPC or JSON-RPC after those interfaces are removed, so it fails at the point of removal, often on a schedule nobody is watching. Typical symptoms include stopped nightly exports, orders that never reach a warehouse system, or invoices that never sync. To reduce this risk, search code repositories, server logs and network traffic for the old endpoints, review scheduled actions and automation rules, and ask each department which spreadsheets or tools pull data from Odoo. Run the old and new interfaces side by side on a test database for a full business cycle where possible. Keep the old path available until every caller is confirmed on JSON-2.

Does the migration have to wait for a major Odoo version upgrade?

No. JSON-2 is available in Odoo 19, so integrations can move to it on the version you already run. What matters is the removal schedule. The planned removal of XML-RPC and JSON-RPC comes with Odoo 22 and Odoo Online 21.1, so teams on earlier versions should not wait for a later upgrade to start. Support windows also matter: Odoo 19.0 has standard support until September 2028, Odoo 18.0 until September 2027, and Odoo 17.0 standard support ended in September 2026. Confirm your hosting type's support and upgrade rules with Odoo before setting dates, since on Odoo Online and Odoo.sh major upgrades are mandatory every two years.

Does our Odoo plan allow external API access for JSON-2 calls?

Check this before you design anything. According to Odoo's pricing page, external API access is included only in the Custom plan, and only the Custom plan can be hosted on Odoo.sh or on-premise. If your current plan does not include external API access, the integrations cannot move to JSON-2 until the plan changes, which is a licensing decision and a cost that belongs in the business case. Self-hosted Community installations work on a different basis, so confirm with Odoo or your partner what your edition and hosting allow. Get this answer in writing, tied to your subscription, before the inventory is finalized. Pricing details are on Odoo's pricing page.

Limits and dates to confirm in your environment

Several facts in this migration depend on your hosting type, plan and database version, and they follow Odoo's release schedule. Confirm each item below in writing with Odoo or the vendor before you set a cutover date, and record each answer and its source in the migration plan.

Removal versions for your hosting

Odoo plans to remove XML-RPC and JSON-RPC in Odoo 22 and Online 21.1, but the exact version that stops each protocol on your hosting type sets your deadline. Ask Odoo which release removes each protocol for Odoo Online, Odoo.sh and on-premise, and whether any earlier release disables it. A cutover planned against the wrong version leaves integrations broken on the day the upgrade lands.

External API access plan

Odoo's pricing page states that only the Custom plan includes external API access, and that only Custom can be hosted on Odoo.sh or on-premise. Confirm which plan your subscription uses today and whether a renewal, a hosting change or a licensing change would alter it. If your plan lacks external API access, the JSON-2 move cannot start until the subscription changes, so settle this before estimating the work.

Odoo pricing

Database version and support end

Odoo 19.0 has standard support until September 2028, and Odoo 20.0 has standard support until September 2029. Standard support covers security updates and bug fixes for the first three years after a major release, while paid extended support is limited to Odoo.sh for select versions and on-premise. Check the version your database runs, its end date in the support documentation, and whether your target version behaves as your integration expects.

Support documentation

SaaS release cadence

Odoo SaaS versions ship every two to three months and cannot use extended support, so an Odoo Online tenant moves forward on a short cycle. Ask Odoo when your tenant receives each next release, and review each release note for changes to the external API, the JSON-2 endpoints and the removal schedule. Run your regression tests after every SaaS release, because a routine update can change behavior your integration depends on.

Mandatory major upgrade schedule

On Odoo Online and Odoo.sh, major version upgrades are mandatory every two years. An upgrade can change model names, field behavior and access rules that your integration reads or writes, so each upgrade is also an integration change. Confirm the date of your next mandatory upgrade with Odoo, and schedule the JSON-2 cutover so it is tested on the upgraded test database before production changes.

Upgrade documentation

Connector and middleware support

Many Odoo connectors, middleware platforms and in-house scripts still call XML-RPC or JSON-RPC. Ask each vendor whether its current release calls JSON-2, which Odoo versions it supports, and whether it keeps the older protocols during the transition. For connectors from the Odoo Apps Store or community projects, check release notes and open issues, and for in-house scripts, list each call and name an owner for it.

How DeployOpen scopes and delivers the JSON-2 migration

DeployOpen plans and implements the move from XML-RPC and JSON-RPC to JSON-2 inside your own Odoo environment. We start with a written inventory of every integration and credential, then rebuild each call against a test database before anything reaches production.

How we scope

  • Inventory every system that calls Odoo over XML-RPC or JSON-RPC, including scheduled jobs and vendor connectors.
  • Record each integration's owner, data objects, call volume and the Odoo version and hosting plan it runs on.
  • Agree the written scope, deliverables and timeline with you before any migration work begins.

How we build

  • Replace each legacy call with a JSON-2 request using bearer API keys issued to dedicated integration users.
  • Review transaction behavior for each call, since JSON-2 calls run in their own transaction, and adjust error handling to match.
  • Test every rebuilt integration on a duplicate database and compare results with the legacy output before cutover.

How we hand over

  • Deliver a documented inventory, a call-by-call mapping and the updated integration code or configuration.
  • Document key ownership, rotation steps and the revocation procedure for each integration user.
  • Walk your engineers through the test results, known gaps and the cutover and rollback plan.

How we support

  • Support after go-live is available as a retainer covering fixes, upgrades and continued testing.
  • Retest integrations when you move to a new Odoo major version, since removals of legacy endpoints affect later releases.
  • Confirm with your team which support window and hosting plan apply to your Odoo version before setting the retainer scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.