Email an invoice
send_invoiceEmail the invoice to the customer as a PDF, from the seller's own email address (the invoice's seller.email, which gets the replies). The first time an address sends, a six-digit code is emailed to it and nothing is sent; call again with the same details and that code. The answer then carries a sender_token for more sends from that address. A sender can email 3 invoices a day, one a day to the same customer; a payment link must be on a payment provider's site.
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": {
"seller": "<seller>",
"customer": "<customer>",
"items": "<items>",
"to": "<to>"
},
"name": "send_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The customer's email address the invoice goes to. | |
| code | No | The six-digit code emailed to the seller's address, when asked for. | |
| note | No | A short plain-text note to the customer. Links in it are taken out. | |
| items | Yes | The lines of the invoice. | |
| notes | No | A note printed above the lines, like a project name or a purchase order number. | |
| paper | No | Default: Letter for USD and CAD, A4 otherwise. | |
| number | No | The invoice number. Default INV-0001. | |
| seller | Yes | Who the invoice is from. Its country sets the invoice's language, its word for tax and the rules checked. | |
| currency | No | ISO 4217 code, like USD, EUR or GBP. Default USD. | |
| customer | Yes | Who the invoice is for. | |
| due_date | No | YYYY-MM-DD. Default: payment_terms_days after the issue date. | |
| language | No | Default: by the seller's country. | |
| tax_rate | No | Tax in percent for lines that give none. Default 0. | |
| tax_label | No | The tax's name on the invoice, like VAT, GST or Sales tax. Default: the word used in the seller's country. | |
| issue_date | No | YYYY-MM-DD. Default today. | |
| legal_notes | No | Small print at the foot. Default: what the seller's country asks for on every invoice (France, Germany). | |
| supply_date | No | YYYY-MM-DD the goods or services were supplied, or the first day of a period. | |
| payment_link | No | An https link where the customer can pay. | |
| sender_token | No | The sender_token an earlier send_invoice returned for this seller's address. | |
| supply_until | No | YYYY-MM-DD, the last day of a supply period. | |
| tax_exemption | No | Why lines without tax have none. Printed with the legal wording. | |
| payment_details | No | How to pay, printed under the totals: bank details or another way the seller accepts. | |
| payment_terms_days | No | Days to pay when due_date is left out. Default 14. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | url, name and expires_at of the PDF (create_invoice only). | ||
| sent | No | send_invoice only: to, from, number, sent_at and left_today. | |
| status | No | send_invoice only: code_sent or sent. | |
| invoice | No | Number, dates, parties, lines and totals. | |
| missing | No | What the seller's country requires that the invoice lacks. | |
| warnings | No | What is worth knowing before the invoice goes out. | |
| sender_token | No | send_invoice only: proof the seller's address confirmed its code, for more sends from it. |