Products
Get Products
Get Products
Set cookie: session_id value what we got from authenticate
POST /api/v1/models/product_product
Headers:
{ "Content-Type": "application/json", "Cookie": "session_id=4e21fd7bf236b7d283b471254b8c94a57c8a3a08"}Request Body:
{ "fields": [ "id", "name", "image_1920", "categ_id", "list_price", "tax_amount", "taxes_id", "qty_available" ], "domain": [["sale_ok", "=", true], ["list_price", "!=", 0]], "limit": 3, "offset": 0, "order": "name asc"}Response:
Get Products
Get Products
Set cookie: session_id value what we got from authenticate
PUT /api/v1/models/product_product
Headers:
{ "Content-Type": "application/json", "Cookie": "session_id=4e21fd7bf236b7d283b471254b8c94a57c8a3a08"}Request Body:
{ "values": [ { "name": "Product 1", "list_price": 2 }, { "name": "Product 2", "list_price": 3 } ]}Response:
[ 1, 2]Edit products
Edit Products
Set cookie: session_id value what we got from authenticate
PATCH /api/v1/models/product_product
Headers:
{ "Content-Type": "application/json", "Cookie": "session_id=4e21fd7bf236b7d283b471254b8c94a57c8a3a08"}Request Body:
{ "records": [ { "id": 1, "values": { "name": "New Product Name" } }, { "id": 2, "values": { "list_price": 5 } } ]}Response:
[ 1, 2]Delete products
Delete Products
Set cookie: session_id value what we got from authenticate
DELETE /api/v1/models/product_product?ids=1,2
Headers:
{ "Content-Type": "application/json", "Cookie": "session_id=4e21fd7bf236b7d283b471254b8c94a57c8a3a08"}Response:
[ 1, 2]