Step-by-Step Guide on How to Develop Odoo Accounting Integration via API2Cart
In short, Odoo Accounting integration through API2Cart takes three steps, from a free trial to working Odoo accounting data in your software.
Start a free trial
First, start your free 14-day trial and register your API2Cart account.
Connect your client's Odoo database
Then, add the Odoo URL, database name, user login, and API key to API2Cart. Because Odoo uses API keys, there is no app to register and no token to refresh.
Integrate your software with API2Cart
Finally, develop an integration between your software and API2Cart's unified Accounting API.
List of methods for Odoo Accounting Integration
For example, an OMS can create invoices and record payments, while a procurement tool can manage purchase orders and bills. In addition, these methods are part of the same unified Accounting API that API2Cart offers for other accounting platforms.
Account
-
account.list
Use this method to retrieve one or more accounts from a business entity's chart of accounts, as well as the total count of accounts. -
account.add
Use this method to create a new account. -
account.update
Use this method to update an existing account. -
account.delete
Use this method to delete an account.
Bill
-
bill.list
Use this method to retrieve one or more bills, as well as the total count of bills. -
bill.add
Use this method to create a new bill. -
bill.update
Use this method to update a bill. -
bill.delete
Use this method to delete a bill. -
bill.credit_note.list
Use this method to retrieve one or more credit notes, as well as the total count of credit notes. -
bill.credit_note.add
Use this method to create a new bill credit note. -
bill.credit_note.update
Use this method to update a bill credit note. -
bill.credit_note.delete
Use this method to delete a bill credit note. -
bill.payment.list
Use this method to retrieve bill payments, prepayments, or overpayments. For platforms that support multiple payment types, use the type parameter to retrieve payments of a specific type. The response also includes the total count. -
bill.payment.add
Use this method to create a bill payment, prepayment, or overpayment. Use the type parameter to define the payment type to create. -
bill.payment.update
Use this method to update a bill payment, prepayment, or overpayment. -
bill.payment.delete
Use this method to delete a bill payment, prepayment, or overpayment.
Connection
-
connection.list
This method allows you to retrieve a list of all external platforms integrated with your account. -
connection.validate
This method clears the integration cache for a specific platform and verifies the current connection status. Use this method if there have been any changes to the external system's settings, such as the installation or removal of new plugins or modules. -
connection.supported_integrations
Use this method to retrieve a list of supported platforms integrations and the sets of parameters required for connecting to each of them. Note: some platforms may have multiple connection methods so that the response will contain multiple sets of parameters. -
connection.add
Use this method to automate the process of integrating external platforms with our API. The list of parameters will vary depending on the platform type. To get a list of parameters specific to a particular integration, you need to execute the connection.supported_integrations method. -
connection.update
Use this method to automate the update of credentials used for platform integrations. The list of supported parameters differs depending on the specific platform. -
connection.delete
Use this method to remove an existing platform integration from your account and stops all data synchronization for this specific connection.
Contact
-
contact.list
Use this method to retrieve one or more contacts, as well as the total count of contacts. -
contact.add
Use this method to create a new contact. -
contact.update
Use this method to update a contact. -
contact.delete
Use this method to delete a contact.
Invoice
-
invoice.list
Use this method to retrieve one or more invoices, as well as the total count of invoices. -
invoice.add
Use this method to create a new invoice. -
invoice.update
Use this method to update an invoice. -
invoice.delete
Use this method to delete an invoice. -
invoice.credit_note.list
Use this method to retrieve one or more invoice credit notes, as well as the total count of invoice credit notes. -
invoice.credit_note.add
Use this method to create a new invoice credit note. -
invoice.credit_note.update
Use this method to update an existing invoice credit note. -
invoice.credit_note.delete
Use this method to delete an invoice credit note. -
invoice.payment.list
Use this method to retrieve one or more invoice payments, as well as the total count of invoice payments. -
invoice.payment.add
Use this method to record a new payment for an invoice. -
invoice.payment.update
Use this method to update an existing invoice payment. -
invoice.payment.delete
Use this method to delete an invoice payment.
Item
-
item.list
Use this method to retrieve one or multiple items, as well as the total count of items. -
item.add
Use this method to create a new item. -
item.update
Use this method to update an existing item. -
item.delete
Use this method to delete an item.
Organization
-
organization.list
This method allows you to retrieve a list of all organizations connected to the account in the corresponding accounting platform.
Purchase order
-
purchase_order.list
Use this method to retrieve one or more purchase orders, as well as the total count of purchase orders. -
purchase_order.add
Use this method to create a new purchase order. -
purchase_order.update
Use this method to update a purchase order. -
purchase_order.delete
Use this method to delete a purchase order.
Sales order
-
sales_order.list
Use this method to retrieve one or more sales orders, as well as the total count of sales orders. -
sales_order.add
Use this method to create a new sales order. -
sales_order.update
Use this method to update an existing sales order. -
sales_order.delete
Use this method to delete a sales order. -
sales_order.shipment.list
Use this method to retrieve the shipments of a sales order. -
sales_order.shipment.add
Use this method to create a shipment for a sales order.
Tax
-
tax.rate.list
Use this method to retrieve one or more tax rates, as well as the total count of tax rates.
How API2Cart's Accounting API Works with Odoo Accounting
The facts below are based on Odoo's external API documentation and the API2Cart connection guide.
Supported Odoo Setups
API2Cart works with Odoo 17.0 or newer, Community or Enterprise, on Odoo Online, Odoo.sh, or your own server. However, on Odoo Online, Odoo offers the external API with the Custom plan only.
What You Can Work With
Through API2Cart, you can work with contacts, products, the chart of accounts, tax rates, invoices, bills, credit notes, and payments. In addition, with the Sales, Inventory, and Purchase apps, you can work with sales orders, shipments, and purchase orders.
How the Connection Works
The API2Cart Odoo Accounting connector signs in to the Odoo database over the Odoo Accounting API (JSON-RPC) with a user's login and API key, so there is no OAuth flow to build. As a result, every method follows that user's access rights in Odoo.
Develop Integrations Faster with One Unified API
These benefits apply to the platforms API2Cart supports today.
Trusted by
Ready to simplify Odoo Accounting integration development?
Connect your SaaS to Odoo Accounting and, at the same time, to other accounting platforms.
Odoo Accounting Integration FAQ
What is Odoo Accounting integration?
In other words, Odoo Accounting integration connects your SaaS with your clients' Odoo databases. As a result, your software can retrieve, add, and update contacts, products, invoices, bills, payments, and orders. With API2Cart, you get a ready-made Odoo Accounting connector that is part of a unified Accounting API, so the same integration also connects you to other accounting platforms.
Does Odoo Accounting have an API?
Yes. Odoo exposes its accounting data through an external API over JSON-RPC, which serves as the Odoo Accounting API. API2Cart uses it with a user's login and API key. Therefore, you don't need to build and maintain the connection yourself.
Which Odoo versions and plans does API2Cart support?
API2Cart supports Odoo 17.0 or newer, both Community and Enterprise, on Odoo Online, Odoo.sh, or your own server. However, on Odoo Online, the external API is available with the Custom plan only.
What access rights does the Odoo user need?
In fact, it depends on the methods you use. For example, reading invoices needs Invoicing access, while deleting sales orders needs Sales: Administrator. Also, the full table is in the Odoo Accounting connection guide.