List quotations and sales orders
List quotations and sales orders with customer, status and total.
GET https://cotlet.dev/api/v1/odoo/sales-orders
read
Returns quotations and sales orders, newest first, with the order number, customer, status and untaxed and total amounts. A quotation becomes a sales order when it is confirmed in Odoo. Pages hold up to 100 orders.
Parameters
| Name | Type | Description |
|---|---|---|
| status enum | enum | quotation, sent, sale or cancel. Default: all. |
| contact_id integer | integer | Only orders of this contact. |
| limit integer | integer | 1 to 100. Default: 50. |
| offset integer | integer | Number of records to skip, for the next page. Default: 0. |
Request
curl https://cotlet.dev/api/v1/odoo/sales-orders \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("odoo", "list_sales_orders") const result = await cotlet.call('odoo', 'list_sales_orders'); cotlet call odoo list_sales_orders Example response
{
"items": [
{
"order_id": 2210,
"number": "S00087",
"contact": "Harbor Print",
"status": "quotation",
"amount_untaxed": 1200,
"amount_total": 1200,
"currency": "EUR"
}
],
"total": 1
}