Prepare an invoice from a template
prepare_invoice_templateSelect a template by ID and add sender, customer and dates. Returns invoice JSON, calculated totals and an editable builderUrl. Example amounts need review. Nothing stored or sent.
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": {
"templateId": "<templateId>"
},
"name": "prepare_invoice_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | The business sending the invoice. | |
| billTo | No | The customer. name is required; email is prefilled at checkout. | |
| number | No | Your invoice number, e.g. INV-1042 | |
| dueDate | No | YYYY-MM-DD. The invoice reads overdue the day after. | |
| issueDate | No | YYYY-MM-DD | |
| templateId | Yes |