create_zugferd_invoice
Generate ZUGFeRD e-invoices from XML, JSON, or CSV data, outputting PDF with embedded XML or XML only, with configurable conformance levels and language.
Instructions
Create a ZUGFeRD e-invoice using PDF4me CreateZugferdInvoice API (POST /api/v2/CreateZugferdInvoice). Supports inputFormat XML/JSON/CSV, outputMode XmlWithPdf or XmlOnly, conformance level, and language. For XmlWithPdf, provide source PDF via source_pdf_path (docContent/document.Name are derived from the file). Saves output as PDF or XML and returns output metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Optional localization language code (e.g. de, en, fr). | |
| output_dir | No | Directory to save the output file (required). | |
| output_mode | No | XmlWithPdf (PDF with embedded XML) or XmlOnly. | XmlWithPdf |
| input_format | No | XML, JSON, or CSV. | XML |
| source_pdf_path | No | Local source PDF path for XmlWithPdf (used to derive docContent and document.Name). | |
| zugferd_version | No | ZUGFeRD version (currently only "1.0" per schema). | 1.0 |
| invoice_csv_data | No | Local CSV file path when input_format is CSV (file is base64-encoded). | |
| invoice_xml_data | No | Local XML file path when input_format is XML (file is base64-encoded). | |
| output_file_name | No | Output file name (required). | |
| conformance_level | No | BASIC, COMFORT, or EXTENDED. | BASIC |
| invoice_json_data | No | Local JSON file path when input_format is JSON (file is base64-encoded). | |
| render_invoice_on_pdf | No | Applies to XmlWithPdf output mode. |