Create E-Invoice
create-e-invoiceTurn a PDF invoice into a ZUGFeRD / Factur-X e-invoice (PDF/A-3 with the invoice XML embedded), from the "invoice" data or a ready "xml". Line amounts, VAT breakdown and totals are calculated. The result is validated, and an invoice that breaks a rule of its level fails with every violation. Always runs asynchronously and returns a job id; poll "check-job-status" or provide "webhook_url" to receive a callback.
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": {
"file": "<file>"
},
"name": "create-e-invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | A ready Cross Industry Invoice XML (ZUGFeRD, Factur-X or XRechnung) to embed instead of "invoice". Its level is read from the XML. | |
| file | Yes | Publicly reachable URL of the PDF invoice, the readable copy of the e-invoice. | |
| level | No | Profile of the e-invoice, "EN 16931" by default. Not used with "xml". | |
| invoice | No | The invoice data the XML is built from. Required unless "xml" is given. | |
| webhook_url | No | Callback URL invoked when the async job finishes. Omit and poll "check-job-status" instead if no callback endpoint is available. |