Siirry sisältöön
Odoo Menu
  • Kirjaudu sisään
  • Kokeile ilmaiseksi
  • Sovellukset
    Talous
    • Kirjanpito
    • Laskutus
    • Kulut
    • Datataulukot (BI)
    • Asiakirjat
    • Allekirjoita
    Myynti
    • CRM
    • Myynti
    • Kassajärjestelmä myymälään
    • Kassajärjestelmä ravintolaan
    • Tilaukset
    • Vuokraus
    Verkkosivut
    • Verkkosivun Rakennustyökalu
    • Verkkokauppa
    • Blogi
    • Foorumi
    • Livechat
    • Verkko-oppiminen
    Toimitusketju
    • Varastointi
    • Tuotanto
    • Tuotteen elinkaaren hallinta (PLM)
    • Ostot
    • Huolto
    • Laatu
    Henkilöstöhallinto
    • Työntekijät
    • Rekrytointi
    • Vapaat
    • Arvioinnit
    • Suositukset
    • Kuljetuskalusto
    Markkinointi
    • Somemarkkinointi
    • Sähköpostimarkkinointi
    • Tekstiviestimarkkinointi
    • Tapahtumat
    • Markkinoinnin automaatio
    • Kyselyt
    Palvelut
    • Projekti
    • Työaikakirjaukset
    • Kenttähuolto
    • Asiakaspalvelu
    • Suunnittelu
    • Ajanvaraukset
    Tuottavuus
    • Viestintä
    • Tekoäly
    • IoT
    • IP-puhe
    • Tietokirjasto
    • WhatsApp
    Kolmannen osapuolen sovellukset Odoo-Studio Odoo-Pilvialusta
  • Toimialat
    Vähittäiskauppa
    • Kirjakauppa
    • Vaatekauppa
    • Huonekaluliike
    • Ruokakauppa
    • Laitteistokauppa
    • Lelukauppa
    Ruoka & Majoitus
    • Baari ja Pubi
    • Ravintola
    • Pikaruoka
    • Majatalo
    • Juomien jakelija
    • Hotelli
    Kiinteistöt
    • Kiinteistönvälitystoimisto
    • Arkkitehtitoimisto
    • Rakentaminen
    • Kiinteistönhallinto
    • Puutarhanhoito
    • Kiinteistönomistajien yhdistys
    Konsultointi
    • Tilitoimisto
    • Odoo-kumppani
    • Markkinointitoimisto
    • Lakitoimisto
    • Osaajahankinta
    • Tilintarkastus & sertifiointi
    Tuotanto
    • Tekstiili
    • Metalli
    • Huonekalut
    • Ruoka
    • Panimo
    • Yrityslahjat
    Terveys & Liikunta
    • Urheiluseura
    • Silmälasiliike
    • Kuntokeskus
    • Hyvinvointialan ammattilaiset
    • Apteekki
    • Kampaamo
    Kaupat
    • Yleismies
    • IT-laitteisto & Tuki
    • Aurinkoenergiajärjestelmät
    • Suutari
    • Siivouspalvelut
    • LVI-palvelut
    Muut
    • Voittoa tavoittelematon järjestö
    • Ympäristötoimisto
    • Mainostaulujen vuokraus
    • Valokuvaus
    • Leasing-pyörät
    • Ohjelmistojen jälleenmyyjä
    Selaa kaikkia toimialoja
  • Yhteisö
    Opi
    • Kurssit
    • Dokumentaatio
    • Todistukset
    • Koulutus
    • Blogi
    • Podcast
    Kannusta kouluttautumaan
    • Koulutusohjelmat
    • Scale Up! Liiketoimintapeli
    • Vieraile Odoolla
    Hanki ohjelmisto
    • Lataa
    • Vertaile versioita
    • Julkaisut
    Tee yhteistyötä
    • Github
    • Foorumi
    • Tapahtumat
    • Käännökset
    • Ryhdy kumppaniksi
    • Kumppanipalvelut
    • Rekisteröi tilitoimistosi
    • Referral Program
    Hanki palveluja
    • Löydä kumppani
    • Löydä kirjanpitäjä
    • Varaa asiantuntijatapaaminen
    • Implementaatiopalvelut
    • Asiakasreferenssit
    • Tuki
    • Versionkorotukset
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Varaa demo
  • Hinnoittelu
  • Asiakaspalvelu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Kaikki kirjoitukset Ihmiset Merkit
Tunnisteet (Näytä kaikki)
odoo accounting v14 pos v15
Tietoa tästä foorumista
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Kaikki kirjoitukset Ihmiset Merkit
Tunnisteet (Näytä kaikki)
odoo accounting v14 pos v15
Tietoa tästä foorumista
Apua

Integrate Odoo with third party APIs

Tilaa

Saat ilmoituksen, kun tähän viestiin ilmaantuu aktiviteettia

Tämä kysymys on merkitty
integrationapi
4 Vastaukset
941 Näkymät
Avatar
vadawos

Hi   experts,


I am new to the ODOO world. I. have a requirement to integrate third party Invoices ODOO Invoices and  third Sales orders with ODOO sales orders using  the REST APIs.


Can you please guide me ?


Warm regards,

WILLION

0
Avatar
Hylkää
Avatar
Zehntech Technologies Inc.
Paras vastaus

Hello, 

Yes, this is definitely possible in Odoo.

Odoo supports integration with third-party applications through REST APIs. The typical approach is to connect the external system with Odoo and map the required data (such as customers, products, sales orders, and invoices) so records can be created, updated, or synchronized automatically.

The exact implementation depends on:

  • Which third-party application you are integrating with
  • Whether the data flow is one-way or two-way
  • The API specifications and authentication method provided by the external system

If you can share more details about the third-party platform and your integration requirements, we can suggest the most suitable approach.

Hope this works for you! If you need any help implementing this or want a more optimized approach, feel free to reach out for further discussion.

Regards,

Zehntech Technologies Inc.

santosh.sekwadia@zehntech.com

0
Avatar
Hylkää
Avatar
Sandeep Paulraj R
Paras vastaus

Hi Willion,

Welcome to the Odoo community!

Integrating third-party invoices and sales orders with Odoo through REST APIs is a common requirement and can be implemented in several ways depending on the external system.

A typical integration flow would be:

  1. Analyze the Third-Party API

    • Review the API documentation.

    • Identify authentication methods (API Key, OAuth, Bearer Token, etc.).

    • Understand the request/response formats (usually JSON).

  2. Create a Custom Odoo Module

    • Develop a custom module to handle the integration logic.

    • Use Python libraries such as requests to communicate with the external API.

  3. Map External Data to Odoo Models

    • Sales Orders → sale.order

    • Invoices → account.move

    • Customers → res.partner

    • Products → product.product

  4. Implement Synchronization

    • Import data from the external system into Odoo.

    • Optionally export Odoo records back to the external system.

    • Use scheduled actions (Cron Jobs) for automatic synchronization.

  5. Handle Errors and Logging

    • Store API responses and errors for troubleshooting.

    • Implement retry mechanisms for failed requests.

Example (REST API call from Odoo):

import requests

response = requests.get(
    "https://api.example.com/orders",
    headers={"Authorization": "Bearer YOUR_TOKEN"}
)

data = response.json()

If you can share:

  • Your Odoo version

  • The third-party system name

  • Whether the integration is one-way or two-way

the community can provide more specific guidance and examples.

Best regards,
Sandeep Paulraj

0
Avatar
Hylkää
Avatar
Atliis 360
Paras vastaus

Hi,

Yes, this is definitely achievable! Here's the general approach for syncing third-party invoices and sales orders into Odoo via REST API:

1. Authenticate first:

import requests

session = requests.Session()
response = session.post('https://your-odoo.com/web/dataset/call_kw', json={
    "jsonrpc": "2.0",
    "method": "call",
    "params": {
        "model": "res.users",
        "method": "authenticate",
        "args": ["your-db", "admin@example.com", "password", {}],
        "kwargs": {}
    }
})
uid = response.json().get("result")

2. Create a Sales Order (sale.order):

session.post('https://your-odoo.com/web/dataset/call_kw', json={
    "jsonrpc": "2.0",
    "method": "call",
    "params": {
        "model": "sale.order",
        "method": "create",
        "args": [{"partner_id": 1, "order_line": [(0, 0, {
            "product_id": 5,
            "product_uom_qty": 2,
            "price_unit": 100.0
        })]}],
        "kwargs": {}
    }
})

3. Create an Invoice (account.move):

session.post('https://your-odoo.com/web/dataset/call_kw', json={
    "jsonrpc": "2.0",
    "method": "call",
    "params": {
        "model": "account.move",
        "method": "create",
        "args": [{"move_type": "out_invoice", "partner_id": 1, "invoice_line_ids": [(0, 0, {
            "name": "Service",
            "quantity": 1,
            "price_unit": 200.0
        })]}],
        "kwargs": {}
    }
})

For duplicate prevention, always search for an existing record before creating:

# Check if order already exists by external reference
session.post('...call_kw', json={
    "params": {
        "model": "sale.order",
        "method": "search_read",
        "args": [[["client_order_ref", "=", "EXT-ORDER-123"]]],
        "kwargs": {"fields": ["id"], "limit": 1}
    }
})

If you want to avoid the JSON-RPC boilerplate and work with a cleaner REST interface, REST API Toolkit (available on the Odoo App Store for Odoo 19) lets you do all of this with simple GET/POST/PATCH/DELETE endpoints and Bearer token auth — much easier to integrate with third-party platforms.

Hope that helps!

0
Avatar
Hylkää
Avatar
Olagbaju Olamide
Paras vastaus

Hi Willion,

Yes, this is possible using Odoo REST/XML-RPC APIs or custom API endpoints depending on your Odoo version and integration requirements.

For your use case, the process usually involves:

  • Authenticating with the Odoo API

  • Mapping third-party invoice and sales order data

  • Creating/updating records in Odoo (sale.order and account.move)

  • Handling customer/product synchronization

  • Managing error handling and duplicate prevention

The best approach depends on:

  • your Odoo version,

  • the third-party system you want to connect,

  • and whether the sync should be real-time or scheduled.

If you can share a few more details about the external platform/API you are integrating with, I can guide you more specifically.

0
Avatar
Hylkää
Nautitko keskustelusta? Älä vain lue, vaan osallistu!

Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!

Rekisteröidy
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
Integrate Odoo with third party APIs
integration api
Avatar
Avatar
1
elok. 24
10215
Integrating Odoo with external system
integration api
Avatar
Avatar
Avatar
2
toukok. 22
16376
How to call external API/web service from inherited module in odoo 12?
integration api
Avatar
0
tammik. 21
1949
I want to integrate my custom store with openERP
integration api
Avatar
0
maalisk. 15
5081
record rules filters res.partner but still reports pop error accessing res.users
security integration api
Avatar
0
kesäk. 26
745
Yhteisö
  • Kurssit
  • Dokumentaatio
  • Foorumi
Avoin lähdekoodi
  • Lataa
  • Github
  • Runbot
  • Käännökset
Palvelut
  • Odoo.sh hosting
  • Tuki
  • Versionkorotus
  • Räätälöidyt kehitykset
  • Koulutus
  • Löydä kirjanpitäjä
  • Löydä kumppani
  • Ryhdy kumppaniksi
Meistä
  • Yrityksemme
  • Brändimateriaalit
  • Ota yhteyttä
  • Työpaikat
  • Tapahtumat
  • Podcast
  • Blogi
  • Asiakkaat
  • Oikeudelliset tiedot • Yksityisyys
  • Tietoturva
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo on kokoelma avoimen lähdekoodin yrityssovelluksia, jotka kattavat kaikki yrityksesi tarpeet: asiakkuudenhallinta eli CRM, verkkokauppa, kirjanpito, varastointi, kassajärjestelmä, projektinhallinta, jne.

Odoon ainutlaatuinen arvolupaus on olla samanaikaisesti erittäin helppokäyttöinen ja täysin integroitu.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now