0% found this document useful (0 votes)
42 views2 pages

Odoo API

The document outlines an API request using XML-RPC to execute a method call. It includes the request URI, headers, and body structure for a call to 'execute_kw' with parameters such as database name, password, model name, and method type. The request aims to perform a 'search_read' operation on the 'account.journal' model.

Uploaded by

Ftiim Ftim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views2 pages

Odoo API

The document outlines an API request using XML-RPC to execute a method call. It includes the request URI, headers, and body structure for a call to 'execute_kw' with parameters such as database name, password, model name, and method type. The request aims to perform a 'search_read' operation on the 'account.journal' model.

Uploaded by

Ftiim Ftim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

:API Request URI

hosturl:443//xmlrpc/2/object Request Headers: {"user-agent"=>["XMLRPC::Client (Ruby 3.3.5)"],


"content-type"=>["text/xml; charset=utf-8"], "content-length"=>["637"], "connection"=>["keep-
alive"], "accept-encoding"=>["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"], "accept"=>["*/*"]}

:Request Body

>?'xml version='1.0?<
>methodCall<
>methodName>execute_kw</methodName<
>params<
>param<
>value<
>string>my-db</string<
>value/<
>param/<
>param<
>value<
>i4>2</i4<
>value/<
>param/<
>param<
>value<
>string>my_password</string> </value> </param> <param<
>value<
>string>account.journal</string<
>value/<
>param/<
>param<
>value<
>string>search_read</string<
>value> </param> <param/<
>value<
>array<
>/data<
>array/<
>value/<
>param/<
>param<
>value<
>struct<
>member<
>name>fields</name<
>value<
>array<
>data<
>value<
>string>name</string<
>value/<
>value<
>string>company_id</string<
>value/<
>data> </array/<
>value/<
>member/<
>struct/<
>value> </param/<
>params/<
>methodCall/<

You might also like