business_invoice_totals
Invoice totals
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": {
"lines": "<lines>"
},
"name": "business_invoice_totals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Invoice lines as [{description, qty, unitPrice}]. | |
| notes | No | Notes printed at the bottom of the document. | |
| terms | No | Payment terms line, for example 'Net 30. Pay by bank transfer.' | |
| taxPct | No | Tax rate in percent, for example: 8.25 for 8.25%. | |
| dueDate | No | YYYY-MM-DD, a real date on or after invoiceDate (422 otherwise). | |
| clientName | No | Who the invoice is for. Needed with businessName for the document. | |
| discountPct | No | Discount in percent, for example: 10 for 10%. | |
| includeDocx | No | true also returns the invoice as a Word file in result.docx (filename, contentType, base64). Needs businessName and clientName. | |
| invoiceDate | No | YYYY-MM-DD, a real date (422 otherwise). | |
| businessName | No | Your business name. Sending businessName and clientName also returns the invoice as a document: result.document, result.text and, with includeDocx, a Word file. | |
| invoiceNumber | No | Invoice number printed on the document. | |
| currencySymbol | No | Symbol printed before amounts in the document. Default $. The totals themselves are plain numbers. |