Send Invoice
invoice_sendGenerate the invoice PDF, mark it as sent, and deliver it to the client. Email delivery is attempted automatically when SendGrid is configured.
Instructions
Generate the invoice PDF and deliver it to the client. Always generates the PDF and marks the invoice status="sent". Email delivery via SendGrid is attempted automatically when the SENDGRID_API_KEY environment variable is set; without it the PDF is still generated and the status still advances so the caller can handle delivery out-of-band. Returns a confirmation message with the PDF size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Custom body text for the email (default is a summary of amount and due date) | |
| invoice_id | Yes | UUID of an existing invoice (from invoice_create or invoice_list) |