Send an invoice
Send a posted invoice to the customer by email, or get it as a download.
POST https://cotlet.dev/api/v1/odoo/invoices/{invoice_id}/send-invoice
write Confirm
Uses the Send window of the invoice. With email the invoice goes to the contact's email address; with download Cotlet returns the file and nothing is sent. Only posted invoices can be sent. The call fails with a clear error if the contact has no email address. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_id integer required | integer | Invoice ID from list_invoices or create_draft_invoice. |
| method enum | enum | email or download. Default: the contact's preferred sending method. |
Request
curl -X POST https://cotlet.dev/api/v1/odoo/invoices/4182/send-invoice \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"method":"email"}' result = client.call("odoo", "send_invoice", {"invoice_id":4182,"method":"email"}) const result = await cotlet.call('odoo', 'send_invoice', {"invoice_id":4182,"method":"email"}); cotlet call odoo send_invoice --data '{"invoice_id":4182,"method":"email"}' Example response
{
"invoice_id": 4182,
"number": "INV/2026/00412",
"method": "email",
"sent_to": "billing@northwind.example",
"status": "posted"
}