Passa al contenuto principale

Creare ZUGFeRD Fattura in Make

Creare ZUGFeRD Fattura è un Make modulo di PDF4me che genera ibrido ZUGFeRD/Factur-X fatture elettroniche da CSV, JSON, O XML dati della fattura. Usali per produrre un PDF/A-3 documento leggibile dalla macchina XML incorporato all'interno, allineato al EN 16931 Standard europeo per la fatturazione elettronica. Scegli il livello di conformità e la versione delle specifiche in base alle esigenze del tuo acquirente o ERP il sistema lo richiede.

Cosa fa questo modulo

PDF4me. Crea un ZUGFeRD fattura genera fatture elettroniche ibride direttamente all'interno del tuo Make scenario. Fornire i dati della fattura come CSV, JSON, O XML. il modulo produce un PDF/A-3 documento con un formato leggibile dalla macchina ZUGFeRD XML file incorporato al suo interno, o un XML-solo output per ERP sistemi che gestiscono il proprio rendering. Il risultato si allinea con il EN 16931 Standard europeo di fatturazione elettronica ed è accettato come Factur-X In Francia e in tutti i mercati dell'UE. I livelli di conformità e la versione delle specifiche sono configurabili per adattarsi esattamente alle esigenze del vostro acquirente o del destinatario del settore pubblico.

Articoli correlati del blog(1)

Autenticazione del tuo API Richiesta

Ogni PDF4me modulo in Make richiede un valido Connessione. Crea o selezionane uno che contenga il tuo PDF4me API chiave affinché lo scenario possa richiamare in modo sicuro il servizio di generazione delle fatture.

Informazioni importanti da non perdere

XmlWithPdf è un PDF/A-3 file, non un normale PDF

L'output ibrido è un PDF/A-3 documento. il ZUGFeRD XML è incorporato come allegato conforme all'interno del file. ERP i sistemi estraggono il XML automaticamente; gli umani possono ancora aprire e leggere il PDF in qualsiasi visualizzatore standard. Imposta Genera fattura in formato PDF Selezionare Sì per visualizzare le voci della fattura direttamente sulla pagina.

I livelli di conformità dipendono da ZUGFeRD versione

La versione 1.0 supporta BASE, COMFORT, ESTESA. La versione 2+ si espande a MINIMO, BASEWL, BASE, EN16931, ESTESA, XRECHNUNG. XRECHNUNG E EN16931 sono necessari per la fatturazione nel settore pubblico in Germania. Assicurarsi sempre che la versione e il livello corrispondano a quelli previsti dal sistema dell'acquirente.

Il formato di input controlla quale campo dati viene visualizzato

Selezione XML mostra il Dati XML della fattura campo; JSON Mostra i dati JSON della fattura; CSV mostra i dati CSV della fattura. Compila solo il campo che corrisponde al formato scelto. Quando si utilizza XML formato, il modulo espone anche un File radio così puoi tirare la XML direttamente da Dropbox oppure mappandolo da un modulo precedente.

Quale ZUGFeRD versione devo usare?

Il modulo supporta due versioni delle specifiche. La maggior parte delle nuove integrazioni dovrebbe utilizzare la versione 2.0 o successiva; la versione 1.0 è riservata alla compatibilità con le versioni precedenti.

ZUGFeRD 2.0+ RACCOMANDATO

Specifiche attuali. Livelli di conformità: MINIMO, BASICWL, DI BASE, EN16931 (Comfort, l'impostazione predefinita legale tedesca), ESTESA, XRECHARGE. Compatibile con Factur-X. Abbina con il 2.0 XML campione, 2.0 EN16931 JSON campione, O 2.0 CSV campioneGli screenshot qui sotto mostrano l'interfaccia utente 2.0+ esattamente come appare oggi.

Make Create a ZUGFeRD invoice module 2.0+: Block 1: Connection, File (PDF template), Input Format, File (invoice data), Output Mode
Block 1: Connection, File (PDF template), Input Format, File (invoice data), Output Mode
Make Create a ZUGFeRD invoice module 2.0+: Block 2: ZUGFeRD Version, Conformance Level, Render Invoice on PDF, Language
Block 2: ZUGFeRD Version, Conformance Level, Render Invoice on PDF, Language

ZUGFeRD 1.0 EREDITÀ

Pre-EN 16931 Livelli di conformità alle specifiche: DI BASE, COMFORT, ESTESA. Utilizzare solo quando il destinatario ERP o il sistema dell'acquirente richiede esplicitamente 1.0 (raro dopo il 2022). Abbina con il 1.0 XML campione, IL base JSON campione, o il 1.0 CSV campioneTutti gli altri campi funzionano allo stesso modo; cambia solo il menu a tendina del livello di conformità.

Crea un modulo fattura ZUGFeRD (1.0) per PDF4me Dev che mostri Connessione, Nome file e Documento mappati da un passaggio precedente e Formato di input impostato su XML

Inizia con Connessione, quindi mappa la base PDF Nome del file, Documento) e impostare Formato di input (Qui XML).

Crea una fattura ZUGFeRD (1.0) con formato di input XML, file impostato su Mappa, dati XML della fattura mappati da un modulo precedente, modalità di output XmlWithPdf e versione zugferd 1.0

Con File = Mappamappa Dati XML della fattura, impostato Modalità di uscita XmlWithPdf O Solo XML), quindi scegli zugferd Visualizzazione (Qui 1.0).

Parametri

Necessario: Connessione, Formato di input, Modalità di uscita, ZUGFeRD Visualizzazione. Il campo dati della fattura (Dati XML della fattura, Dati JSON della fattura, O Dati della fattura in formato CSV) appare dinamicamente in base alla selezione del formato di input. È necessario compilare solo il campo corrispondente.

Perché File compaiono due volte negli screenshot della versione 2.0+? Quando il formato di input è XML e il file è impostato su Mappa, il modulo visualizza un secondo selettore di file in modo da poter mappare entrambi (a) la base PDF IL ZUGFeRD la fattura dovrebbe essere incorporata e (b) la fonte ZUGFeRD XML file. Entrambi i selettori espongono le stesse opzioni radio. Quando il formato di input è JSON O CSV il secondo picker viene sostituito dal corrispondente Dati JSON della fattura O Dati della fattura in formato CSV campo di testo.

ParametroNecessarioCosa faEsempio / Opzioni
ConnectionRequiredPDF4me API connection used to authenticate invoice generation requests. Click Add and paste your API key if connecting for the first time.Your PDF4me connection
FileConditionalSource of the base PDF where the ZUGFeRD invoice will be embedded (when Output Mode is XmlWithPdf). Radio button with two options: Dropbox - Download a File (pulls directly from a Dropbox account without a prior download step) or Map (supplies the PDF from a prior module. Dropbox, Google Drive, OneDrive, HTTP, etc.). Choose Map for the most flexible workflow. When Map is selected, the two sub-fields below appear.Map
File → File NameConditionalSub-field of File (visible when Map is selected). Filename of the base PDF including the .pdf extension. Map from the prior module's filename output. for example, the File Name field of a Dropbox or Google Drive Download module.1. File Name
File → DocumentConditionalSub-field of File (visible when Map is selected). Binary PDF content where the ZUGFeRD XML will be embedded. Map from the prior module's binary data field. typically the Data field of Dropbox, Google Drive, or OneDrive download modules. Hint shown in module: "PDF file where Zugferd invoice should be added".1. Data
Input FormatRequiredFormat of the invoice data being supplied. Use XML for existing ZUGFeRD XML; JSON or CSV for structured data. Hint: "Format of the invoice data being supplied. Use XML for existing ZUGFeRD XML, JSON or CSV for structured data."XML sampleXML 2.0 sampleJSON 2.0 EN16931 sampleJSON (basic)CSV sampleCSV 2.0 sample
Invoice XML DataConditionalThe ZUGFeRD XML invoice content to embed. Appears when Input Format = XML and File = Map. Hint: "Use when inputFormat is XML, please refer to our Create a ZUGFeRD invoice for guidelines." Map from a prior Dropbox download or HTTP module output.XML sampleXML 2.0 sample3. Data (mapped)
Invoice JSON DataConditionalStructured invoice data in JSON format. Appears when Input Format = JSON. Map a JSON string from a Google Sheets, Airtable, or HTTP module. See sample JSON below.JSON 2.0 EN16931 sampleJSON (basic)(mapped JSON string)
Invoice CSV DataConditionalInvoice row data in CSV format. Appears when Input Format = CSV. Map a CSV row from an iterator, Google Sheets, or file download module. See sample CSV below.CSV sampleCSV 2.0 sample(mapped CSV row)
Output ModeRequiredXML With PDF (a.k.a XmlWithPdf in API requests) returns a PDF/A-3 file with the ZUGFeRD XML embedded inside, the standard hybrid e-invoice. XML Only (XmlOnly) returns just the XML invoice file without a PDF wrapper. Hint shown in module: "XML with PDF returns a PDF with embedded ZUGFeRD XML. XML only returns only the XML invoice file."XML With PDF
ZUGFeRD VersionRequiredZUGFeRD specification version. Set to match what the recipient ERP or buyer system expects. Latest is 2+; legacy 1.0 also supported. The two have different conformance level sets (see table below).2+
Conformance LevelOptionalZUGFeRD conformance profile. Available levels differ by version. For 2+, EN16931 (Comfort) is the default for German legal e-invoicing compliance. See the Conformance Level Reference table below. Defaults to BASIC if not specified.EN16931
Render Invoice on PDFOptionalWhen set to Yes, invoice line items are drawn visually on the PDF pages. Applies only when Output Mode is XmlWithPdf. Options: Yes, No, Empty. Hint: "Render invoice data visually on PDF pages. Applies only when outputMode is XmlWithPdf."Yes
languageOptionalTwo-letter locale code for invoice label localisation. Supported: de, en, fr, it, es, nl, pl, pt, cs. Hint: "Language code for invoice localisation (e.g. de, en, fr, it, es, nl, pl, pt, cs). Defaults to de if not specified."de

Riferimento al livello di conformità

I livelli di conformità disponibili differiscono per zugferd Visualizzazione. Abbina sempre il livello a quello che il tuo acquirente o ERP il sistema lo richiede.

Versione 1.0
LivelloUtilizzare quando
BASICMandatory EN 16931 fields only. Widest compatibility, safe default.
COMFORTAdds optional fields for line-item detail and additional references.
EXTENDEDFull field set for complex B2B invoices with delivery, allowances, and charges.
Versione 2+ (Factur-X)
LivelloUtilizzare quando
MINIMUMAbsolute minimum fields. Buyer reference and totals only.
BASICWLBASIC without line items. Header-level data only.
BASICMandatory EN 16931 fields. Recommended starting point.
EN16931Full EN 16931 compliance for cross-border and public sector.
EXTENDEDFull field set including German-specific extensions.
XRECHNUNGGerman public-sector e-invoice mandate (XRechnung profile).

Esempi di file di fattura

Utilizza questi file di esempio per testare il modulo con ciascun formato di input prima di collegare la tua origine dati reale. Per i flussi di lavoro di produzione B2B tedeschi, inizia con sample-invoice-zugferd-2.0-en16931.json ZUGFeRD 2.0, EN16931 conformità).

ZUGFeRD XML Campione
ZUGFeRD 1.0 BASE XML. Utilizzare con Formati di input: XMLContiene i dati del venditore/acquirente, le voci di spesa, l'IVA e il riferimento di pagamento nel formato UN/CEFACT CrossIndustryDocument.
ZUGFeRD-invoice-sample.xml
ZUGFeRD 2.0
ZUGFeRD 2.0 XML Esempio (EN16931)
ZUGFeRD 2.0 EN16931 XML con parti venditore/acquirente, voci di riga, IVA e somma monetaria nel formato CrossIndustryInvoice. Utilizzare con Formati di input: XML, Versione ZUGFeRD: 2.0, Conformità: EN16931.
ZUGFeRD-invoice-sample-2.0.xml
Raccomandato
JSON 2.0 Campione EN16931
Fattura strutturata completa per ZUGFeRD 2.0 con EN16931 conformità. Utilizzare con Formato di input: JSON, zugferd Versione: 2.0, Livello di conformità: EN16931.
sample-invoice-zugferd-2.0-en16931.json
JSON Esempio di fattura (base)
Più semplice JSON per prove di fumo con ZUGFeRD 1.0 E DI BASE conformità.
sample-invoice.json
CSV Esempio di fattura
Piatto CSV riga con InvoiceId, SellerName, BuyerName, ProductName, Quantity, UnitPrice, TaxPercent, IBANe colonne BIC. Da usare con Formato di input: CSV. Corrisponde all'ordine delle colonne previsto da PDF4me.
fattura-di-prova.csv
ZUGFeRD 2.0
CSV 2.0 Esempio di fattura
Colonna estesa a 22 colonne CSV: ID fattura, data di emissione, campi indirizzo venditore/acquirente, ID partita IVA venditore, ID prodotto, valuta, riferimento pagamento, IBAN, BIC. Da usare con Formato di input: CSV, ZUGFeRD 2.0.
zugferd-invoice-2.0.csv

CSV Riferimento colonna

IL CSV L'input deve seguire esattamente questo ordine di colonne. Ogni riga genera una fattura.

ColonnaDescrizioneEsempio
InvoiceIdUnique invoice identifierINV-2025-001
IssueDateInvoice issue date (YYYY-MM-DD)2025-01-15
SellerNameSeller company nameTest Company
SellerStreetSeller street address123 Main St
SellerCitySeller cityTest City
SellerPostalCodeSeller postal / ZIP code12345
SellerCountryISO 3166-1 alpha-2 country codeDE
SellerVatIdSeller VAT registration numberDE123456789
BuyerNameBuyer company or person nameCustomer Inc
BuyerStreetBuyer street address456 Oak Ave
BuyerCityBuyer cityCustomer City
BuyerPostalCodeBuyer postal / ZIP code67890
BuyerCountryISO 3166-1 alpha-2 country codeDE
ProductNameLine item product or service nameTest Product
QuantityQuantity of the line item10.0
UnitPriceNet unit price9.90
TaxPercentVAT / tax percentage19.0
CurrencyISO 4217 currency codeEUR
PaymentReferencePayment reference stringPAY-REF-001
IBANPayee IBAN for bank transferDE08700901001234567890
BICPayee bank BIC / SWIFT codeGENODEF1M04

JSON Struttura della fattura

Quando si utilizza Formato di input: JSONIl payload deve includere le seguenti chiavi di primo livello. Tutti gli oggetti e gli array annidati seguono la struttura mostrata nel file di esempio.

ChiaveTipoDescrizione
InvoiceIdStringUnique invoice number, e.g. "471102"
IssueDateString (ISO 8601)Invoice date, e.g. "2013-03-05T00:00:00"
InvoiceTypeStringDocument type label, e.g. "RECHNUNG"
TypeCodeStringUN/EDIFACT document type code. 380 for standard invoice
IsTestBooleantrue for test runs, false / omit for production
NotesArray of stringsFree-text notes shown in the invoice header (payment terms, GLN, etc.)
SellerObjectSeller party: Name, Address (Street, City, PostalCode, Country), TaxId, VatId, GLN
BuyerObjectBuyer party: Name, Address (Street, City, PostalCode, Country, LineTwo), GLN
PaymentObjectPayment details: PaymentReference, Currency, IBAN, BIC
DeliveryDateString (ISO 8601)Actual delivery date, e.g. "2013-03-05T00:00:00"
LineItemsArray of objectsInvoice lines. each with Quantity, UnitCode, UnitPrice, LineTotal, ProductName, GTIN, SellerProductId
TotalsObjectMonetary totals: LineTotal, ChargeTotal, AllowanceTotal, TaxBasisTotal, TaxTotal, GrandTotal, TaxPercent, Currency

Come faccio a creare un ZUGFeRD fattura in Make?

  1. Aggiungere PDF4meCrea un ZUGFeRD fattura al tuo scenario.
  2. Seleziona Connessione (oppure fai clic) Aggiungere per crearne uno con il tuo API chiave).
  3. Scegliere Formato di input. XML, JSON, O CSVIl campo dati visualizzato dipende da questa selezione.
  4. Impostato File A Mappa e collega il campo dati fattura (Dati XML fattura / Dati JSON / Dati CSV) dall'output del modulo precedente. Oppure scegli Dropbox - Scarica un file per scaricare il file direttamente da Dropbox.
  5. Impostato Modalità di uscita A XmlWithPdf per un ibrido PDF/A-3 fattura o Solo XML per XML soltanto.
  6. Impostato zugferd Visualizzazione (1.0 o 2+) quindi scegli Livello di conformità dal set appropriato alla versione. Inizia con DI BASE.
  7. Se si utilizza XmlWithPdf: impostare Genera fattura in formato PDF A disegnare visivamente gli elementi della linea e impostare lingua alla località di destinazione (ad esempio de, en, fr).
  8. Salva e clicca Eseguire una volta. Instradare il Dati del documento output su Dropbox, Google Drive, un ERP webhook o un modulo di posta elettronica.

Campi di output

CampoTipoCosa contiene
Document NameStringFilename of the generated invoice file. e.g. invoice-471102.pdf or invoice-471102.xml.
Document DataBufferBinary content of the ZUGFeRD hybrid PDF/A-3 or XML file. Map into an upload, email attachment, or ERP HTTP module for the next step in your scenario.

Esempi di flusso di lavoro

Esempi di flusso di lavoroCommon Make scenario patterns using Create ZUGFeRD Invoice for automated e-invoicing.
Genera fatture ibride dai dati dell'ordine (JSON)
  1. Un ordine è contrassegnato come spedito nel tuo ERP o Airtable. Lo scenario si attiva.
  2. Le voci di riga, i prezzi, l'indirizzo dell'acquirente e i dati fiscali vengono recuperati e assemblati in un JSON carico utile.
  3. Creare ZUGFeRD fattura funziona con il formato di input JSONModalità di uscita XmlWithPdf, versione 2+Livello di conformità DI BASE, lingua Di.
  4. L'ibrido PDF viene inviata all'acquirente tramite Gmail e una copia viene caricata nell'archivio delle fatture su Google Drive.
Fatture in blocco da un'esportazione CSV mensile
  1. La contabilità lascia un CSV Archiviare le fatture mensili su Dropbox.
  2. Un trigger Watch Files rileva il nuovo file e un iteratore elabora ogni riga.
  3. Creare ZUGFeRD fattura corse per riga con formato di input CSV, generando un ibrido PDF per fattura.
  4. Tutto PDFs I file vengono caricati in una cartella di archivio strutturata e un'e-mail di riepilogo dell'operazione viene inviata al team finanziario.
XRECHNUNG XML per la fatturazione del settore pubblico tedesco
  1. La fatturazione di un contratto governativo viene generata a partire da un record di Airtable.
  2. Creare ZUGFeRD fattura funziona con il formato di input JSONModalità di uscita Solo XML, versione 2+Livello di conformità XRECHARGE.
  3. IL XML Il file viene inviato tramite POST direttamente al sistema Peppol compatibile dell'acquirente. ERP API tramite un HTTP modulo.
  4. L'esito positivo o negativo della risposta viene registrato in un foglio di calcolo Google affinché il team finanziario possa esaminarlo.

Domande frequenti

What is ZUGFeRD and why does it use a PDF?+
ZUGFeRD is a German and EU e-invoicing standard that combines a visually readable PDF/A-3 document with a machine-readable XML file embedded inside it. Humans can open the PDF in any viewer; ERP and accounting systems extract the XML automatically for processing. no manual data entry needed. The same format is called Factur-X in France and other EU markets, and both align to the EN 16931 European e-invoicing standard maintained by <a href="https://www.ferd-net.de/" target="_blank" rel="noopener">FeRD, the Forum elektronische Rechnung Deutschland</a>.
What is the difference between XmlWithPdf and XmlOnly output mode?+
XmlWithPdf produces a PDF/A-3 hybrid document with ZUGFeRD XML embedded as an attachment. this is the standard e-invoice format readable by both humans and ERPs. XmlOnly returns just the XML invoice file without any PDF wrapper, useful when the receiving system only needs the structured data and generates its own document view. Use XmlOnly with the XRECHNUNG conformance level for German public-sector submissions that require pure XML delivery.
Which Conformance Level and ZUGFeRD Version should I use?+
The available conformance levels depend on which zugferd Version you select. Version 1.0 supports BASIC, COMFORT, and EXTENDED. Version 2+ adds MINIMUM, BASICWL, EN16931, EXTENDED, and XRECHNUNG. Start with BASIC for the broadest buyer compatibility. it covers all mandatory EN 16931 fields. Move to EN16931 for cross-border EU compliance, or XRECHNUNG when submitting invoices to German federal and state government buyers who are legally required to accept the XRechnung profile.
Is ZUGFeRD the same as Factur-X?+
They are the same technical format under different names. ZUGFeRD is the German designation; Factur-X is the French equivalent. Both align to EN 16931 and are cross-compatible. a ZUGFeRD 2.x invoice is accepted by systems expecting Factur-X and vice versa. Version 1.0 is a German-only older specification; version 2.x is the aligned EU standard.
Can I only supply one input format per scenario run?+
Yes. Selecting XML shows the Invoice XML Data field, selecting JSON shows Invoice JSON Data, and selecting CSV shows Invoice CSV Data. Only fill in the field matching your chosen format in a given run. do not populate multiple data fields in the same execution. If you need to process different formats, split them into separate scenario branches with a Router module that filters by source type.
What does the Render Invoice on PDF option do?+
When Render Invoice on PDF is set to Yes, the module draws the invoice line items, totals, seller/buyer details, and payment information visually on the PDF pages. When set to No, the output is a PDF/A-3 container with the ZUGFeRD XML embedded but minimal or no visual rendering on the page. the PDF may appear nearly blank to a human reader. This option only applies when Output Mode is XmlWithPdf; it has no effect when using XmlOnly.

Moduli correlati

Stessa attività su altre piattaforme

Richiedi assistenza