Get an invoice
Read one customer invoice with its lines, contact email and status.
GET https://cotlet.dev/api/v1/odoo/invoice
read
Returns the invoice header, every line with quantity, unit price and subtotal, the contact's email address and the payment status. Pass either invoice_id or number. A draft has no number. The call fails with a not-found error if your Odoo user cannot see the invoice.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_id integer | integer | Invoice ID from list_invoices. |
| number string | string | Invoice number such as INV/2026/00412, instead of invoice_id. |
Request
curl https://cotlet.dev/api/v1/odoo/invoice \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("odoo", "get_invoice") const result = await cotlet.call('odoo', 'get_invoice'); cotlet call odoo get_invoice Example response
{
"invoice_id": 4182,
"number": "INV/2026/00412",
"contact": {
"contact_id": 931,
"name": "Northwind Studio",
"email": "billing@northwind.example"
},
"status": "posted",
"payment_status": "not_paid",
"invoice_date": "2026-09-13",
"due_date": "2026-09-27",
"lines": [
{
"description": "Monthly retainer, September",
"quantity": 1,
"unit_price": 3200,
"subtotal": 3200
}
],
"amount_untaxed": 3200,
"amount_tax": 0,
"amount_total": 3200,
"amount_due": 3200,
"currency": "EUR"
}