Generate a Factur-X / ZUGFeRD PDF
generate_factur_xCreate a Factur-X / ZUGFeRD hybrid invoice from structured invoice data: a PDF (built to PDF/A-3b rules, not certified) with the CII XML embedded as factur-x.xml and the Factur-X XMP metadata, in the EN 16931 (default), BASIC or MINIMUM profile, printed in French, German or English. The result is checked straight away with check_factur_x's checker. Returns the PDF as base64 (an embedded application/pdf resource and structuredContent.facturX.pdfBase64), the XML and the check report. MINIMUM holds only header and totals and is not a full e-invoice. Not an official tool. Uses one metered call. Requires an InvoiceVerify account (OAuth sign-in).
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": {
"invoice": "<invoice>"
},
"name": "generate_factur_x"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the printed invoice. Default: French for a seller in France, German for Germany/Austria, else English. | |
| invoice | Yes | Invoice data: {number, issueDate (YYYY-MM-DD), dueDate?, deliveryDate?, currency?, buyerReference?, orderReference?, note?, paymentTerms?, seller: Party, buyer: Party, payment?: {meansCode, iban?, bic?, paymentReference?}, lines: [{name, quantity, unitPrice, unitCode?, vatCategory? (S,Z,E,AE,K,G,O), vatRate?}]}. Party: {name, vatId?, companyId?, street?, city?, postalCode?, country (ISO 2), endpointId? with endpointScheme? (e.g. 0225 for a SIREN), contactEmail?}. Unlike generate_invoice, the electronic address is optional. Full schema: InvoiceData in /openapi.json. | |
| profile | No | Factur-X profile: 'EN 16931' (default; the profile France's reform names), 'BASIC' or 'MINIMUM'. |