Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. API
  3. MuK REST API v 20.0
  4. Sales Conditions FAQ

MuK REST API

by MuK IT http://www.mukit.at
Odoo 6

$ 213.66

v 20.0 Third Party 657
Live Preview
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 10.0 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 10.0 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0 20.0
  • Description
  • Manifest
  • Documentation
  • License

Your Odoo database, as a documented REST API.

Search, write and call any model over HTTP with JSON, signed in with a password, an API key or OAuth. Every route is described in an OpenAPI spec you can run from the browser, and a new route needs no code.

Runs on
✓  Community ✓  Enterprise
Hosting
Odoo.sh · on-premise
Demo
See it in action
Every model, one API

Search, read, create, write and delete, any public method, reports and files, all under /api/v2.

The sign-in your client speaks

A password or an API key, over Basic or as a Bearer token, OAuth1, and OAuth2 with all four grant types.

Documented as it runs

An OpenAPI 3.2 spec, Swagger UI and a model explorer, generated from the database you run.

/api/docs  ›  API Reference
The API Reference in Swagger UI with the search_read route open, its description and the model and domain parameters filled in
Every route with what it does and what it takes, filled with examples and ready to run from the browser.
What it covers

The whole ORM, over HTTP

Each route takes query parameters or a JSON body and answers in JSON. Every call runs as the user who signed in, so access rights and record rules apply exactly as they do in the web client.

Records

Search, read, group and count, create, write and delete. Batch writes, create-or-update and pages with a total count are built in.

Any public method

One route runs any public method of any model on the records you name, with positional and keyword arguments. Private methods stay closed.

Files and reports

Upload and download attachments and binary fields, resize images on the way out, and render any report as PDF, HTML or text.

A database that describes itself

Models, fields, method signatures, access checks, groups and XML IDs, so a client can adapt to the modules a database has installed.

Company and context

with_company and with_context on any call pick the active company, the language and the timezone, without a second sign-in.

Logged and rate-limited

Each request is stored with its response, credentials masked, and cleaned up after 30 days. Past the limit you set, a client gets a 429.

For developers

Three calls to a first answer

Get a token for an OAuth2 client, find a record, then act on it. $ODOO is your server's address and $TOKEN the access token from the first call. A script that runs as one user can skip the token and send a login with a password or an API key over Basic, or the API key as a Bearer token. With several databases on one server, name yours in the X-Odoo-Database header.

Terminal  ·  three calls to a first answer
# 01  Authenticate: trade the client key and secret for a token
$ curl -X POST -u $CLIENT_ID:$CLIENT_SECRET -d 'grant_type=client_credentials' $ODOO/api/v2/authentication/oauth2/token
{"access_token": "fHHtiSKUNC0D...", "token_type": "Bearer", "expires_in": 3600}

# 02  Search: a domain, the fields you want, a limit
$ curl $ODOO/api/v2/search_read/res.partner --oauth2-bearer $TOKEN -d 'domain=[["is_company","=",true]]' -d 'fields=["name"]' -d 'limit=1'
[{"id": 10, "name": "Acme Corporation"}]

# 03  Call: any public method, with a JSON body
$ curl $ODOO/api/v2/call/res.partner/copy --oauth2-bearer $TOKEN -H 'Content-Type: application/json' -d '{"ids": [16]}'
[[1988, "Azure Interior (copy)"]]
Model explorer

Look inside before you call

Pick a model to see every field with its type, relation and the module that added it, and every public method with its signature, docstring and decorators. Fill in a request body, press Execute, and the answer comes back beside the curl command that produced it.

The API Reference next to it holds the full OpenAPI spec, built-in and custom routes alike, and turns it into a client library for the language you work in.

/api/docs  ›  Model Explorer
The Model Explorer with res.partner selected and the name_search method open, showing its route, description, parameters and return type
name_search on res.partner: the route that calls it, the parameters it takes and what it returns.
/api/v2/authentication/oauth2/authorize
The OAuth2 sign-in page with the client's logo, the login fields and the Resources popover listing the four routes the client may call
The sign-in page of a client limited to four routes, with Resources open.
Signing in

Your users approve, on your Odoo

In the authorization-code flow, a user signs in on Odoo's own page and grants the client access there. The page carries the client's logo, company and policy links, and Resources lists every route the client may call.

OAuth2 covers all four grant types, with refresh and revocation; OAuth1 covers the three-legged flow. A script that runs as one user needs none of it and signs in with an API key.

Custom endpoints

New routes without a module

An endpoint is a record: a path under /api/v2/custom, an HTTP method, a model and one of three bodies — a domain with the fields to return, a server action, or Python code with the environment, the parameters and the request headers at hand. Segments such as <int:id> arrive as parameters.

A new endpoint needs a signed-in caller and runs with that user's rights until you switch Protected off or Sudo on. Its Docs tab puts it in the OpenAPI spec beside the built-in routes.

Settings  ›  API  ›  Endpoints
A custom endpoint with the path contacts/<int:id>, the GET method, the Contact model and twelve lines of Python that look the contact up and return its details
A path parameter in, a contact out: a 404 when the id matches nothing, the fields a caller needs when it does.
Settings  ›  API  ›  OAuth2
An OAuth2 client with advanced access control and two access rules, one for the search route and one for every route on res.partner
A client that may search partners and users, and use the other routes on partners only.
Clients and access

One client per integration

Each OAuth client has its own key, secret, grant type and callbacks, and shows the sessions it holds. Set its security to advanced and it may call only the routes its rules allow — each rule a route or a pattern, with parameters that must be present, absent, equal a value or match an expression.

Hashed at rest

Access and refresh tokens are stored as hashes and OAuth1 secrets encrypted, so a copy of the database holds no working token.

Where it stops

Built to be extended

What the API does not do out of the box, a module of yours can add — on the same sign-in, the same logging and the same spec.

Routes in your own module

A controller decorated with rest_route and build_route serves under /api/v2, signs in like the rest, and its docs land in the spec.

A sign-in of your own

Authentication runs in _auth_method_rest on ir.http. Inherit it to accept a token scheme your systems already use.

It answers, it does not push

The API serves the requests it receives. To send a call out when a record changes, pair it with MuK Webhooks.

PAID MODULE

Help and support

What is covered after you buy, and where to write.

Included support

30 days of complimentary support for issues with the module, from the date of purchase. Data recovery, migration and training are not covered.

Where to write

support@mukit.at for a technical issue — with your Odoo version and the request you sent. sale@mukit.at for anything before you buy.

Licence

MuK Proprietary Licence v1.0 — one database per licence. You may build modules on top of it; you may not redistribute it.

Want more?

MuK IT — Austrian Odoo partner, Vienna
Development

Modules written for your process, on your Odoo version.

Integration

Odoo joined up with the systems you already run.

Infrastructure

Hosting, deployment and upgrades you do not have to watch.

Training

Your team taught the parts of Odoo they actually use.

Support

An agreement, so an answer does not depend on who is free.

The rest of the integration stack

MuK OpenID Connect
MuK OpenID Connect

Single sign-on with Odoo, built on these OAuth2 clients.

MuK Webhooks
MuK Webhooks

Record changes sent out to the systems you connect.

MuK MCP Server
MuK MCP Server

Your database as tools for AI agents.

MuK Import
MuK Import

Large imports run in the background.

Documentation

The full text is on the Documentation tab, and in doc/ inside the download.
Requirements

Odoo.sh or on-premise, Community or Enterprise. OAuth1 and OAuth2 need the oauthlib Python package; without it, Basic and API keys still work.

Configuration

Settings  ›  API holds the clients, endpoints and access rules, and the page sizes, token lifetimes and rate limit. The server config file sets the database header, CORS and logging.

Installation

Depends on api_doc, base_setup and muk_web_utils. To serve the routes before a database is chosen, load it server-wide with --load=web,muk_rest.

Usage

Any HTTP client. Try a call at /api/docs, then copy its curl command or generate a client library from the spec.

Upgrade

Clients, endpoints and access rules are records, and an upgrade keeps them. Issued tokens stay valid until they expire.

Credits

MuK IT GmbH, Vienna. Author and maintainer.

Have a system that should talk to Odoo?

Tell us what has to be exchanged, and we will tell you whether it is a client, an endpoint or a module. MuK IT — Austrian Odoo partner, Vienna.

sale@mukit.at
Availability
Odoo Online
Odoo.sh
On Premise
Community Apps Dependencies Show
MuK Web Utils
Lines of code 11155
Technical Name muk_rest
LicenseSee License tab
Websitehttp://www.mukit.at

MuK REST API for Odoo

Enables a REST API for the Odoo server. The API has routes to authenticate and retrieve a token. Afterwards, a set of routes to interact with the server are provided. The API can be used by any language or framework which can make HTTP requests and receive responses with JSON payloads and works with both the Community and the Enterprise Edition.

The module exposes a comprehensive set of endpoints for CRUD operations, file management, report generation, security checks and system introspection. All routes are served under a configurable base URL (default /api/v2) and return JSON responses. In addition, the module ships with an interactive documentation page powered by Swagger UI and a Model Explorer for browsing fields and methods of every installed Odoo model.

The API allows authentication via OAuth1 and OAuth2 as well as with username and password, although an access key can also be used instead of the password. The interactive documentation supports OAuth2 and Basic authentication. The API has OAuth2 support for all 4 grant types. More information about the OAuth authentication can be found under the following links:

  • OAuth1 - RFC5849
  • OAuth2 - RFC6749

Requirements

Below you will find a list of requirements. These are not always mandatory to install the module, but without them the functionality will be limited.

OAuthLib

A generic, spec-compliant, thorough implementation of the OAuth request-signing logic for Python. Without OAuthLib installed the OAuth1 and OAuth2 authentication methods are automatically disabled and only Basic authentication is available. To install OAuthLib please follow the instructions or install the library via pip.

pip install oauthlib

Installation

To install this module, you need to:

Download the module and add it to your Odoo addons folder. Afterward, log on to your Odoo server and go to the Apps menu. Trigger the debug mode and update the list by clicking on the "Update Apps List" link. Now install the module by clicking on the install button.

Upgrade

To upgrade this module, you need to:

Download the module and add it to your Odoo addons folder. Restart the server and log on to your Odoo server. Select the Apps menu and upgrade the module by clicking on the upgrade button.

Configuration

Server-wide Loading

In case the module should be active in every database just change the auto install flag to True. To activate the routes even if no database is selected the module should be loaded right at the server start. This can be done by editing the configuration file or passing a load parameter to the start script.

Parameter: --load=web,muk_rest

Multi-database Environment

To access the API in a multi-database environment without a db filter, the name of the database must be provided with each request via a query parameter or a custom header.

Query parameter: ?db=<database_name>

The header name and query parameter name are configurable via the rest_db_header and rest_db_param configuration parameters (defaults: X-Odoo-Database and db).

OAuth Configuration

To configure this module, you need to:

  1. Go to Settings -> API -> Overview. Here you can see an overview of all your API configurations (OAuth1 and OAuth2 clients).
  2. Click on Create or go to either Settings -> API -> Configuration -> OAuth1 or Settings -> API -> Configuration -> OAuth2 to create a new API configuration.

OAuth1 Configuration

Each OAuth1 configuration provides a Consumer Key and Consumer Secret (auto-generated, 20-50 characters). These credentials are used by the three-legged OAuth1 flow:

  1. Initiate -- POST /api/v2/authentication/oauth1/initiate to obtain a request token.
  2. Authorize -- Redirect the user to /api/v2/authentication/oauth1/authorize where they log in and grant access.
  3. Token -- POST /api/v2/authentication/oauth1/token to exchange the authorized request token for an access token.

OAuth2 Configuration

Each OAuth2 configuration provides a Client ID and Client Secret (auto-generated). Four grant types are supported:

  • Authorization Code -- Requires at least one callback URL. The first callback in the list is the default.
  • Implicit -- Token returned directly in the redirect URL fragment.
  • Password Credentials -- Token obtained by sending username and password.
  • Client Credentials -- Token obtained using client credentials alone. Requires a linked Odoo user to execute requests as.

OAuth2 endpoints:

  • /api/v2/authentication/oauth2/authorize -- Authorization endpoint
  • /api/v2/authentication/oauth2/token -- Token endpoint (issue / refresh)
  • /api/v2/authentication/oauth2/revoke -- Token revocation endpoint

Access Rules

Each OAuth configuration can define Access Rules to restrict which API routes the client may call. Each rule specifies a route pattern (which may be a regular expression) and a set of parameter expressions. When the security mode is set to Advanced, only routes matching an applied rule are allowed.

Settings

Additional settings are available under Settings -> API -> Configuration -> Settings (General Settings page, API section):

Docs Security

Restrict access to the interactive API documentation (/api/docs) to members of a specific security group. When no group is selected, the documentation is accessible to any authenticated user.

OAuth1 Access Tokens

  • Clean after (days) -- Expired OAuth1 access tokens are automatically cleaned up after this many days (default: 7).

OAuth2 Bearer Tokens

  • Bearer token expiration (seconds) -- How long a bearer token is valid.
  • Bearer token auto-vacuum (days) -- Expired tokens are automatically cleaned up after this many days.

Rate Limiting

  • Max requests per window -- Maximum number of API requests per time window. Set to 0 to disable rate limiting.
  • Window duration (seconds) -- The length of the rate limiting window.

When the limit is exceeded the API returns 429 Too Many Requests.

Configuration File Parameters

It is possible to further customize the API via a set of parameters inside the Odoo configuration file. The following parameters are available:

  • rest_default_cors -- Sets the CORS attribute on all REST routes. Default: None
  • rest_docs_security_group -- XML ID of an access group to protect the API docs. Default: None
  • rest_docs_codegen_url -- URL of the Swagger Codegen service for client generation. Default: https://generator3.swagger.io/api
  • rest_authentication_basic -- Enable Basic authentication on the REST API. Default: True
  • rest_authentication_oauth1 -- Enable OAuth1 authentication on the REST API. Default: True
  • rest_authentication_oauth2 -- Enable OAuth2 authentication on the REST API. Default: True
  • rest_db_header -- Custom HTTP header name for the database name. Default: X-Odoo-Database
  • rest_db_param -- Query parameter name for the database name. Default: db
  • rest_logging -- Enable request/response logging. Default: True
  • rest_logging_autovacuum -- Days after which log entries are automatically deleted. Default: 30
  • muk_logging_attribute_limit -- Character limit for individual attribute values in logged request/response data. Default: 150
  • muk_logging_content_limit -- Character limit for logged response content body. Default: 25000
  • rest_debug -- Show full tracebacks in API error responses instead of generic messages. Default: False

Parameters from a configuration file can be loaded via the --config command.

Custom Endpoints

To extend the API and add your own routes, go to Settings -> API -> Configuration -> Endpoints and create a new endpoint. Each custom endpoint is served at /api/v2/custom/<endpoint_path>.

An endpoint can be public or protected (requires authentication). Three evaluation modes are available:

Domain

Evaluates a search domain on the configured model. The domain expression supports standard Odoo domain syntax. You can optionally restrict the returned fields by selecting specific fields in the Domain Fields tab. The query parameters limit, offset and order are supported. When the Wrap Response flag is enabled the result is wrapped in an envelope containing the endpoint name, model, domain, result list and count.

Server Action

Executes a linked server action (ir.actions.server). The request parameters are passed as active_id and active_ids in the action context. The return value of the action is sent back as the response.

Python Code

Executes arbitrary Python code via safe_eval. The following variables are available in the evaluation context:

  • env -- the current Odoo environment
  • model -- a recordset for the configured model
  • params -- a dictionary of request parameters
  • headers -- the HTTP request headers
  • uid / user -- the current user ID / user record
  • logger -- a Python logger instance
  • time, datetime, dateutil, timezone -- date/time libraries
  • json, b64encode, b64decode -- serialization utilities
  • make_json_response, make_response -- response helpers
  • responses, exceptions -- HTTP status helpers

The code can set one of the following variables to control the response:

  • result -- a value that is JSON-serialized and returned
  • content -- raw string content returned as-is
  • response -- a full Werkzeug Response object

Endpoint Documentation

Each custom endpoint has a Docs tab where you can configure how it appears in the Swagger UI:

  • Summary and Description -- displayed in the endpoint listing
  • Parameters -- a JSON list of OpenAPI parameter objects
  • Responses -- a JSON map of OpenAPI response objects
  • Components -- additional OpenAPI schema components
  • Default responses -- toggles for standard 200, 400, 401 and 500 responses

API Endpoints

All routes are prefixed with the configurable base URL (default /api/v2). Protected routes require authentication (Basic, OAuth1 or OAuth2) and are marked with a lock icon in the interactive documentation. Parameters can be passed as query parameters or in the JSON request body.

The API provides endpoints in the following categories:

  • Server -- Public endpoints for version info, available languages, countries, current database and installed modules.
  • Common -- Current user info, OpenID Connect user profile, company details and session information.
  • Model (Search) -- Search, search-read, read-group aggregation and search-extract with relational field expansion.
  • Model (Read) -- Display names, field reads, CSV/XLSX export and extract with nested relational data.
  • Model (Create) -- Single/batch record creation and upsert (create-or-update by domain).
  • Model (Write) -- Single and batch record updates.
  • Model (Delete) -- Record deletion.
  • Model (Call) -- Generic public method invocation on any model.
  • File -- File and image download (by XML ID, attachment or field reference) and multipart file upload.
  • Report -- List available reports and render them as PDF, HTML or text.
  • Security -- One access check for a model, its records and fields, and group membership queries.
  • System -- Model and field introspection, method signatures, record metadata and XML ID resolution.

For the complete endpoint reference with parameters and response schemas, visit the interactive Swagger UI documentation at /api/docs or go to Settings -> API -> Documentation -> Endpoints.

Authentication

The API supports three authentication methods. Protected routes (marked with a lock icon in Swagger UI) require one of these methods.

Basic Authentication

Send an Authorization header with the Basic scheme. The credentials are username:password (or username:api_key) encoded in Base64.

Example (admin:admin encoded in Base64):

Authorization: Basic YWRtaW46YWRtaW4=

Bearer Authentication

Send an Authorization header with the Bearer scheme using an Odoo API key.

Example:

Authorization: Bearer <api_key>

OAuth1 (RFC 5849)

Three-legged OAuth1 flow using consumer key/secret and request/access tokens. Requires the oauthlib Python library.

  1. POST /api/v2/authentication/oauth1/initiate -- Obtain a request token.
  2. Redirect user to /api/v2/authentication/oauth1/authorize to log in and grant access.
  3. POST /api/v2/authentication/oauth1/token -- Exchange the authorized request token for an access token.

OAuth2 (RFC 6749)

Standard OAuth2 flow with support for all four grant types. Requires the oauthlib Python library.

  • Authorization endpoint: /api/v2/authentication/oauth2/authorize
  • Token endpoint: /api/v2/authentication/oauth2/token
  • Revocation endpoint: /api/v2/authentication/oauth2/revoke

The authentication method used (Basic, OAuth1, OAuth2) is tried in order. The first successful authentication wins. If all methods fail, the API returns 401 Unauthorized.

Interactive Documentation

The module includes an interactive API documentation page at /api/docs. It can also be reached via Settings -> API -> Documentation -> Endpoints.

The page has two tabs:

Swagger UI

The Swagger UI tab shows the full OpenAPI 3.2 specification for all built-in and custom endpoints. From here you can:

  • Browse all endpoints grouped by category (Server, Common, Model, File, Report, Security, System, and any custom endpoint tags).
  • See request parameters, request bodies and response schemas.
  • Authorize using Basic authentication or OAuth2 via the lock icon on each protected endpoint or the global Authorize button.
  • Try out any endpoint directly from the browser -- fill in parameters, click Execute and see the live response, curl command and request URL.
  • Generate client SDKs in various languages (Python, Java, JavaScript, etc.) using the integrated Swagger Codegen service.

Model Explorer

The Model Explorer tab provides an interactive browser for all Odoo models the current user has read access to. For each model you can:

  • See all fields with their type, description, module of origin, required/ readonly flags, relation targets and selection values.
  • Browse all public methods with their full signature, parameter details, docstrings, introducing module and API decorators.
  • Try methods directly from the UI -- select a method, fill in IDs, args and kwargs, and execute the call. The result or error is displayed inline along with the equivalent curl command.
  • Filter and search models by name, and filter fields/methods within a model.

Request Logging

Every API request is logged automatically (unless disabled in the configuration file or per custom endpoint). Logs are accessible under Settings -> API -> Technical -> Logs (requires developer mode) and include:

  • User, IP address, URL, HTTP method
  • Full request headers and body (authorization headers are masked)
  • Response status code, headers and body

Log entries are automatically cleaned up by the ir.autovacuum cron job after the configured number of days (default: 30).

Rate Limiting

The module includes built-in rate limiting to protect the server from excessive API usage. Rate limiting is applied per unique combination of IP address and authenticated user ID. When the limit is exceeded the API returns 429 Too Many Requests. Configuration (max requests and window duration) is available under Settings -> API -> Configuration -> Settings. Set the max requests to 0 to disable rate limiting entirely.

Usage

You are able to use the API with a client of your choice or use the client generator as a starting point. For interactive API documentation go to Settings -> API -> Documentation -> Endpoints or navigate directly to /api/docs.

Quick Start Example

The examples below use Basic authentication with admin:admin credentials (Base64-encoded as YWRtaW46YWRtaW4=). Replace the host, credentials and database name with your own values.

Read all partners:

curl -X GET \
  'https://your-odoo.com/api/v2/search_read/res.partner?fields=["name","email"]&limit=5' \
  -H 'Authorization: Basic YWRtaW46YWRtaW4=' \
  -H 'X-Odoo-Database: your-database'

Create a new partner:

curl -X POST \
  'https://your-odoo.com/api/v2/create/res.partner' \
  -H 'Authorization: Basic YWRtaW46YWRtaW4=' \
  -H 'X-Odoo-Database: your-database' \
  -H 'Content-Type: application/json' \
  -d '{"values": {"name": "Jane Doe", "email": "jane@example.com", "is_company": false}}'

Update a partner:

curl -X PUT \
  'https://your-odoo.com/api/v2/write/res.partner' \
  -H 'Authorization: Basic YWRtaW46YWRtaW4=' \
  -H 'X-Odoo-Database: your-database' \
  -H 'Content-Type: application/json' \
  -d '{"ids": [42], "values": {"phone": "+1 555-0123"}}'

Delete a partner:

curl -X DELETE \
  'https://your-odoo.com/api/v2/unlink/res.partner' \
  -H 'Authorization: Basic YWRtaW46YWRtaW4=' \
  -H 'X-Odoo-Database: your-database' \
  -H 'Content-Type: application/json' \
  -d '{"ids": [42]}'

Credit

In this section you will find information about the contributors and maintainers of the app.

Contributors

  • Mathias Markl <mathias.markl@mukit.at>

Images

Some pictures are based on or inspired by:

  • Font Awesome
  • Prosymbols
  • Smashicons

Author & Maintainer

This module is maintained by the MuK IT GmbH.

MuK IT is an Austrian company specialized in customizing and extending Odoo. We develop custom solutions for your individual needs to help you focus on your strength and expertise to grow your business.

If you want to get in touch please contact us via mail or visit our website.

MuK Proprietary License v1.0

This software and associated files (the "Software") may only be used
(executed, modified, executed after modifications) if you have
purchased a valid license from MuK IT GmbH.

The above permissions are granted for a single database per purchased
license. Furthermore, with a valid license it is permitted to use the
software on other databases as long as the usage is limited to a testing
or development environment.

You may develop modules based on the Software or that use the Software
as a library (typically by depending on it, importing it and using its
resources), but without copying any source code or material from the
Software. You may distribute those modules under the license of your
choice, provided that this license is compatible with the terms of the
MuK Proprietary License (For example: LGPL, MIT, or proprietary licenses
similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of
the Software or modified copies of the Software.

The above copyright notice and this permission notice must be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with