lumnik. / scenarios All scenarios · Français

Odoo 19's JSON-2 API: the page is read from the body

Goal Read the 250 contacts of a real Odoo 19 through its JSON-2 API, page by page, with no database opened.

Odoo 19 replaces XML-RPC and JSON-RPC, removed in Odoo 22, with POST /json/2/<model>/<method>. Every existing integration has to move, and Odoo Online does not open its database: the API is its only door. JSON-2 reads offset and limit from the JSON body only.

odoo-requests.txt
POST /json/2/res.partner/search_read HTTP/1.1 200
POST /json/2/res.partner/search_read HTTP/1.1 200
POST /json/2/res.partner/search_read HTTP/1.1 200

Limits

This scenario runs on lumnik Open, free and open source.

Try lumnik Open →