get_subscription_invoice
Generate (idempotently) the ZUGFeRD plan invoice PDF for a single subscription charge and return a 1-hour presigned download URL. First call allocates the invoice number (YYYY-NNNNNN), renders the PDF/A-3 with embedded EN 16931 XML, and uploads to S3; subsequent calls return a fresh presigned URL for the existing row. The user must own the underlying charge. Returns { invoiceNumber, downloadUrl }.
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": {
"chargeTransactionId": "<chargeTransactionId>"
},
"name": "get_subscription_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chargeTransactionId | Yes | The SUBSCRIPTION_CHARGE Transaction id (from list_subscription_charges output). |