E-mail approved invoice (Billy)
billy_send_invoiceEmail an approved invoice to one contact person of its customer via Billy, verifying approval and contact ownership before sending.
Instructions
E-mail an approved invoice to one contact person of its customer, through Billy (as "send" in Billy). Reads the invoice and the contact person first, and refuses unless the invoice is approved and the contact person belongs to the invoice's customer and has an e-mail address. Billy sends to one contact person per call. It is not sent as an e-invoice. Off unless writes are enabled (BILLY_ENABLE_WRITES, or the gateway host policy enableWrites).
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": {
"invoiceId": "<invoiceId>",
"contactPersonId": "<contactPersonId>",
"emailSubject": "<emailSubject>",
"emailBody": "<emailBody>"
},
"name": "billy_send_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailBody | Yes | Text of the e-mail. | |
| invoiceId | Yes | The approved invoice, from list_invoices. | |
| emailSubject | Yes | Subject of the e-mail. | |
| contactPersonId | Yes | A contact person of the invoice's customer, from get_contact. |