Skip to Content
Odoo मेन्यू
  • साइन इन करें
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • आर्टिफ़िशियल इंटेलिजेंस
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    फ़ूड & हॉस्पिटैलिटी
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • गेस्ट हाउस
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • रियल एस्टेट एजेंसी
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • प्रॉपर्टी मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • धातु
    • फ़र्नीचर
    • फ़ूड
    • ब्रुअरी
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    व्यापार
    • Handyman
    • आईटी हार्डवेयर & सपोर्ट
    • सोलर एनर्जी सिस्टम
    • शू मेकर
    • साफ-सफाई से जुड़ी सेवाएं
    • HVAC सर्विस
    अन्य
    • गैर-लाभकारी संगठन
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    सभी इंडस्ट्री को ब्राउज़ करें
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • पार्टनर के लिए सेवाएं
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    • Referral Program
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
सहायता

Integrate Odoo with third party APIs

Subscribe

Get notified when there's activity on this post

This question has been flagged
integrationapi
4 Replies
945 डेटा देखने का तरीका
अवतार
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
अवतार
खारिज करें
अवतार
Zehntech Technologies Inc.
Best Answer

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
अवतार
खारिज करें
अवतार
Sandeep Paulraj R
Best Answer

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
अवतार
खारिज करें
अवतार
Atliis 360
Best Answer

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
अवतार
खारिज करें
अवतार
Olagbaju Olamide
Best Answer

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
अवतार
खारिज करें
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

साइन अप करें
Related Posts Replies डेटा देखने का तरीका ऐक्टिविटी
Integrate Odoo with third party APIs
integration api
अवतार
अवतार
1
अग॰ 24
10219
Integrating Odoo with external system
integration api
अवतार
अवतार
अवतार
2
मई 22
16377
How to call external API/web service from inherited module in odoo 12?
integration api
अवतार
0
जन॰ 21
1949
I want to integrate my custom store with openERP
integration api
अवतार
0
मार्च 15
5082
record rules filters res.partner but still reports pop error accessing res.users
security integration api
अवतार
0
जून 26
745
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة 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, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

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