getInvoicePreviewHtml
getInvoicePreviewHtmlReturns the HTML preview of an invoice exactly as it appears to the customer. Use to verify the customer-facing layout before sending.
Instructions
Get the rendered HTML preview of an invoice. Returns the invoice as it would appear when sent to the customer. Use this to show the customer-facing invoice layout.
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>"
},
"name": "getInvoicePreviewHtml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | No | Organization ID (auto-populated). | |
| invoiceId | Yes | The ID of the invoice to preview. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow |