Email an invoice
Email the customer a portal link to an invoice.
MCP tool method_crm_write → send_invoice
write Confirm
Does what Send > Email does: the customer gets a link to their portal, where they can view the invoice and pay if a payment gateway is set up. It fails if the contact has no email. 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. |
| subject string | string | Email subject. Default from your template. |
| body string | string | Email text. Default from your template. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "method_crm_write",
"arguments": {
"operation": "send_invoice",
"arguments": {
"invoice_id": "1043",
"subject": "Invoice 1043 is 23 days overdue",
"body": "Hi Ana, invoice 1043 for 4,800 was due on Sep 30. You can view and pay it in your portal. Tell me if anything is unclear."
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_id": "1043",
"status": "sent",
"sent_to": "billing@ortega-kitchens.example",
"subject": "Invoice 1043 is 23 days overdue"
},
"isError": false
}