downloadInvoice
downloadInvoiceDownload an invoice in JSON format using its invoice ID. Access billing data for records management.
Instructions
Download an invoice in JSON format.
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": "downloadInvoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | The ID of the invoice to download. | |
| customer_id | No | Optional customer ID associated with the invoice. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow | |
| invoice_json_key | No | Optional key for invoice JSON. |