Email invoice
Send a stamped invoice or credit note to the client by email.
MCP tool facturama_write → email_invoice
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. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "facturama_write",
"arguments": {
"operation": "email_invoice",
"arguments": {
"invoice_id": "invoice_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_id": "Y61TLX-Ls_ZJFqzjanPN1w2",
"sent_to": [
"billing@estudionorte.example"
],
"sent": true
},
"isError": false
}