Send document by e-mail
email_invoiceSends the issued invoice or proforma summarised by prepare_email_invoice by e-mail once the user has confirmed it, using its confirmation token and the same recipients and mode: each recipient gets its own e-mail from the company via EnKonto, with the reply-to address of the user. An e-mail can't be taken back. Refused, with the token used up, when the token expired or doesn't match, or the document changed after the preparation. A repeated call with the same token returns the same answer without sending again.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company_id": "<company_id>",
"invoice_id": "<invoice_id>",
"confirmation_token": "<confirmation_token>",
"emails": "<emails>",
"mode": "<mode>"
},
"name": "email_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | LINK: the e-mail has a link to a page with the PDF of the document (openings are tracked); ATTACHMENT: the PDF is attached to the e-mail (openings are not tracked). | |
| emails | Yes | The recipients: 1 to 5 different e-mail addresses; each gets its own e-mail. A document can be sent to at most 5 different addresses in total, and to one address at most 2 times. | |
| company_id | Yes | The id of the company, from list_companies. | |
| invoice_id | Yes | The id of the issued invoice or proforma, from list_invoices. | |
| confirmation_token | Yes | The confirmation_token of the answer of prepare_email_invoice for this document. |