Create ZUGFeRD Invoice in Zapier
What this action does
PDF4me Create ZUGFeRD Invoice generates fully compliant ZUGFeRD hybrid e-invoices, a PDF/A-3 document with structured XML invoice data embedded inside, directly inside your Zapier workflow. Convert XML, JSON, or CSV invoice data into a single hybrid file ready for the German B2B e-invoicing mandate (2025+), EU-wide EN 16931 compliance, or the German XRECHNUNG public-sector profile. Supports ZUGFeRD versions 1.0 through 2.x and every conformance level, BASIC, COMFORT, EXTENDED, EN16931, XRECHNUNG, in one Zap action. Drop-in replacement for manual Adobe Acrobat, JustOn, or ZUGFeRD Manager workflows.
Authenticating Your API Request
To access the PDF4me Web API through Zapier, every action must be authenticated. Click Connect a new account the first time and paste your PDF4me API key, subsequent Zaps reuse the connection automatically.
Important Facts You Should Not Miss

Zapier action Configure tab, map File / File Name, set Input Format and the matching invoice data field, then Output Mode, Zugferd Version, Conformance Level, Render Invoice On Pdf, and Language.
Parameters
Required in the Zapier UI (asterisked): Input Format, Output Mode, Zugferd Version, and Conformance Level. Conditional: the matching Invoice data field (Invoice Xml Data, Invoice Json Data, or Invoice Csv Data) based on Input Format. For XmlWithPdf output: File and File Name (the template PDF) are typically required by the connector even though not asterisked in every layout. Optional: Render Invoice On Pdf, Language.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| File | Conditional | Template/layout PDF that will hold the embedded XML in XmlWithPdf output. Map from a previous step (Dropbox, Google Drive, HTTP). Not required when Output Mode is XmlOnly. | 3. File: (Exists but not shown) |
| File Name | Conditional | Filename of the template PDF (filename + extension). Required alongside File for XmlWithPdf output. Map both `File Name` and `File Ext` from the prior step. | 3. File Name: 10 page + 3. File Ext: .pdf |
| Input Format | Yes | Format of the invoice payload: XML, JSON, or CSV. Determines which invoice data field below must be filled. Asterisked in the Zapier UI. | XML sampleXML 2.0 sampleJSON 2.0 EN16931 sampleJSON (basic)CSV sampleCSV 2.0 sample |
| Invoice Xml Data | Conditional | XML invoice payload. Required when Input Format is XML. Map from a previous file step that produced XML content. Leave empty for JSON/CSV inputs. | XML sampleXML 2.0 sample4. File: (Exists but not shown) |
| Invoice Json Data | Conditional | JSON invoice payload. Required when Input Format is JSON. Best for webhook-driven or API-driven invoice data. | JSON 2.0 EN16931 sampleJSON (basic)4. Body |
| Invoice Csv Data | Conditional | CSV invoice payload. Required when Input Format is CSV. Best for batch invoice exports from spreadsheets or legacy ERP exports. | CSV sampleCSV 2.0 sample4. File |
| Output Mode | Yes | XmlWithPdf produces the hybrid PDF/A-3 + embedded XML (canonical ZUGFeRD). XmlOnly produces pure XML with no PDF wrapper. Asterisked. | XmlOnly |
| Zugferd Version | Yes | ZUGFeRD specification version. 1.0 is legacy. 2.0+ aligns with EN 16931 and satisfies the German B2B mandate. Asterisked. | 1.0 |
| Conformance Level | Yes | Profile controlling required invoice fields. For 1.0: BASIC, COMFORT, EXTENDED. For 2.x: MINIMUM, BASICWL, BASIC, EN16931, EXTENDED, XRECHNUNG. Asterisked. | BASIC |
| Render Invoice On Pdf | No | Toggle (True / False). When True, PDF4me visually renders invoice content on the PDF. When False, only the XML is embedded: useful when the template PDF already shows the invoice layout. | True |
| Language | No | Two-letter locale code for printed invoice labels: de (German, default), en (English), fr (French), it (Italian), es (Spanish), nl (Dutch), pl (Polish), pt (Portuguese). The XML data itself remains language-neutral. | de |
Input Format Options
Controls which data format your invoice payload uses, and which Invoice data field you must fill below.
XMLPre-built XML invoiceJSONModern API-sourced dataCSVSpreadsheet or batch exportOutput Mode Options
Controls whether you produce the canonical ZUGFeRD hybrid file or pure XML.
XmlWithPdfDefault, full ZUGFeRD hybrid fileXmlOnlyPure XML, no PDF wrapperZugferd Version Options
The ZUGFeRD specification version embedded in the generated invoice. Determines which Conformance Level options appear in the dropdown.
1.0Legacy, pre-EN 169312.0+Recommended, EN 16931 alignedConformance Level Options
The conformance profile controls which invoice fields are required and validated. Available options depend on the chosen Zugferd Version.
MINIMUM2.x only, header onlyBASICWL2.x only, VAT onlyBASICBoth versions, minimum legal invoiceCOMFORT1.0 only, extended referencesEN169312.x, Recommended B2B defaultEXTENDEDBoth versions, industry extrasXRECHNUNG2.x, German public-sector mandatoryOutput Fields
| Field | Type | What it contains |
|---|---|---|
File Content | Binary | Generated ZUGFeRD invoice file: hybrid PDF/A-3 for XmlWithPdf output or pure XML for XmlOnly output. Map into the next Zap step (upload, email, ERP POST). |
File Url | String | Direct URL to access the generated file: useful for sharing or downstream HTTP processing. |
File Name | String | Output filename without extension. |
Full File Name | String | Complete output filename with extension (.pdf for hybrid, .xml for XmlOnly). |
Sample Invoice Files
Use these sample files to test the action with each input format before connecting your live data source. For German B2B production workflows, start with sample-invoice-zugferd-2.0-en16931.json (ZUGFeRD 2.0, EN16931 conformance).
ZUGFeRD-invoice-sample.xmlZUGFeRD-invoice-sample-2.0.xmlsample-invoice-zugferd-2.0-en16931.jsonsample-invoice.jsontest-invoice.csvzugferd-invoice-2.0.csvQuick Setup
- In Zapier, click + to add a new action and select PDF4me.
- Choose Create ZUGFeRD Invoice as the action event.
- Connect your PDF4me account or paste your API key when prompted.
- For XmlWithPdf output, map File and File Name to your layout PDF (often a previous Dropbox or Google Drive download step). For XmlOnly, these can be left empty.
- Set Input Format to XML, JSON, or CSV depending on your data source.
- Fill only the matching invoice data field: Invoice Xml Data, Invoice Json Data, or Invoice Csv Data. Leave the other two empty.
- Set Output Mode to XmlWithPdf (hybrid file, canonical ZUGFeRD) or XmlOnly (pure XML).
- Choose Zugferd Version: 2.0+ for 2025+ German B2B mandate compliance, 1.0 only for legacy receivers.
- Choose Conformance Level: EN16931 for general B2B (2.x), XRECHNUNG for German public sector, BASIC for ZUGFeRD 1.0 legacy.
- Toggle Render Invoice On Pdf to True if you want PDF4me to visually render invoice content on the PDF; False if your template PDF already shows the layout.
- Set Language to the locale code matching your buyer's region (
de,en,fr,it,es,nl,pl,pt). - Click Test action, verify the output, and turn the Zap on.
Workflow Examples
Workflow ExamplesCommon Zapier workflow patterns using Create ZUGFeRD Invoice.
- Your SaaS billing system fires a webhook to Zapier when a German B2B customer is invoiced.
- PDF4me Create ZUGFeRD Invoice runs: Input Format = JSON, Invoice Json Data mapped from the webhook payload, Output Mode = XmlWithPdf, Zugferd Version = 2.0, Conformance = EN16931, Language = de.
- The hybrid PDF (human-readable + machine-parseable) is attached to a Gmail step and sent to the customer's accounts-payable address, satisfying the 2025+ B2B e-invoicing mandate.
- A Google Sheets row logs the invoice ID, customer, amount, and timestamp for audit reporting.
- A SharePoint upload archives a copy of the ZUGFeRD PDF for compliance retention.
- A scheduled Zap runs every weekday at 16:00 to process pending public-sector invoices.
- A Dropbox trigger picks up the latest ERP CSV export and the layout PDF.
- PDF4me Create ZUGFeRD Invoice runs: Input Format = CSV, Invoice Csv Data = the CSV file, Output Mode = XmlWithPdf, Zugferd Version = 2.0, Conformance = XRECHNUNG, Language = de.
- The compliant XRECHNUNG hybrid PDF is POSTed via a Webhook step to the federal ZRE portal or the relevant state e-invoicing endpoint.
- A confirmation email goes to the AR team with the submission reference; a PostgreSQL log captures the audit trail.
- Your ERP already generates ZUGFeRD-compliant XML invoices via its export module and drops them into a Google Drive folder.
- Zapier triggers on each new XML file. PDF4me Create ZUGFeRD Invoice runs: Input Format = XML, Invoice Xml Data = the XML file, Output Mode = XmlOnly, Zugferd Version = 2.0, Conformance = EN16931.
- The validated pure-XML invoice is sent via SFTP to the trading partner's EDI endpoint, no PDF wrapper needed for system-to-system handoff.
- A Slack notification confirms the EDI delivery; an Airtable record updates with the partner and submission timestamp.