Email an invoice
Email an invoice to a client as a PDF or a link.
POST https://cotlet.dev/api/v1/aroflo/invoices/{invoice_id}/email
write Confirm
Sends the email from your AroFlo account and returns who it went to and when. The invoice is saved first, because AroFlo needs a saved invoice to email. It usually follows approve_invoice. A sent email cannot be recalled. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_id string required | string | Invoice ID from list_invoices. |
| to string required | string | Recipient email address. |
| format string | string | pdf attaches the invoice, link adds a link to view it online. Defaults to pdf. |
| message string | string | Text above the invoice in the email. |
Request
curl -X POST https://cotlet.dev/api/v1/aroflo/invoices/inv_2041/email \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to":"accounts@harborcafe.example","format":"pdf"}' result = client.call("aroflo", "email_invoice", {"invoice_id":"inv_2041","to":"accounts@harborcafe.example","format":"pdf"}) const result = await cotlet.call('aroflo', 'email_invoice', {"invoice_id":"inv_2041","to":"accounts@harborcafe.example","format":"pdf"}); cotlet call aroflo email_invoice --data '{"invoice_id":"inv_2041","to":"accounts@harborcafe.example","format":"pdf"}' Example response
{
"invoice_id": "inv_2041",
"invoice_no": "2041",
"status": "Approved",
"sent_to": "accounts@harborcafe.example",
"format": "pdf",
"sent_at": "2026-10-23T09:12:00+11:00"
}