Email invoice
Send a stamped invoice or credit note to the client by email.
POST https://cotlet.dev/api/v1/facturama/invoices/{invoice_id}/email
write Confirm
Sends the document through Facturama's email to the address you give, or to the client's saved email when you give none. Fails with a not-found error when the ID does not exist. Calling it twice sends two emails. 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 or create_invoice. |
| emails array | array | Recipient addresses. Default: the email saved on the client. |
Request
curl -X POST https://cotlet.dev/api/v1/facturama/invoices/invoice_8c41d2/email \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("facturama", "email_invoice", {"invoice_id":"invoice_8c41d2"}) const result = await cotlet.call('facturama', 'email_invoice', {"invoice_id":"invoice_8c41d2"}); cotlet call facturama email_invoice --data '{"invoice_id":"invoice_8c41d2"}' Example response
{
"invoice_id": "Y61TLX-Ls_ZJFqzjanPN1w2",
"sent_to": [
"billing@estudionorte.example"
],
"sent": true
}