Send invoice by email
Email an issued invoice to the buyer, with the invoice attached.
MCP tool ifirma_write → send_invoice_email
write Confirm
Sends one invoice to the buyer's address stored in the contractor record, or to recipient_email if you give one. The sender address and message template must be set in the account, otherwise iFirma uses its defaults. Sending an invoice by email without offline QR codes means it will not be entered into KSeF, so send to KSeF first. 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. |
| recipient_email string | string | Default: the email on the contractor record. |
| message string | string | Text put before the standard message, up to 1000 characters. |
| include_transfer_details boolean | boolean | Add bank transfer payment information. Default: false. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ifirma_write",
"arguments": {
"operation": "send_invoice_email",
"arguments": {
"invoice_id": 1
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_id": 7020118,
"sent_to": "billing@bluefern.example",
"sent": true
},
"isError": false
}