Convert invoice to ZUGFeRD PDF

Creates a fully compliant ZUGFeRD PDF/A-3 invoice by embedding structured invoice data (XML) into a readable PDF. Fonts missing from the PDF are embedded automatically so that the result meets PDF/A-3, and the response lists the fonts that were used in their place. Supports the ZUGFeRD standard (EN 16931) including invoice type codes (partial, prepayment and correction invoices), service periods, preceding invoice references, prepaid amounts, document level discounts and charges, cash discount terms, delivery addresses, payment means and VAT exemptions such as reverse charge.

Convert invoice to ZUGFeRD PDF
📄 The readable invoice PDF into which the invoice XML is embedded.
The invoice number, for example RE-2025-001.
The invoice date, for example 2026-11-12. Accepted: 2026-11-12, 12.…
The name of the seller company or person.
The street address of the seller.
The postal code of the seller.
The city or locality of the seller.
Choose the country of the seller or enter its ISO code, for example…▾
The name of the buyer company or person.
The street address of the buyer.
The postal code of the buyer.
The city or locality of the buyer.
Choose the country of the buyer or enter its ISO code, for example DE.▾
The line items of the invoice.
Show advanced options
Invoice type (BT-3), for example a prepayment invoice. Default: Inv…▾
The actual delivery date (BT-72). If empty, the invoice date is use…
The start of the service or billing period (BT-73). Accepted: 2026-…
The end of the service or billing period (BT-74). Accepted: 2026-11…
Choose the currency or enter its ISO code, for example EUR. Default…▾
The business process (BT-23). If empty, the PEPPOL billing process …
The buyer reference or Leitweg-ID (BT-10), required by the German p…
The purchase order number of the buyer (BT-13).
The contract or framework agreement number (BT-12).
The project or construction site reference (BT-11).
A free text note on the invoice (BT-22), for example legal notes or…
Preceding invoices this invoice refers to (BG-3), for example for c…
The seller's identifier, for example a supplier number assigned by …
The seller's VAT ID, for example DE129273398 (BT-31).
The seller's national tax number (BT-32). Use it if there is no VAT…
The seller's legal registration ID, for example a commercial regist…
The electronic address of the seller (BT-34), for example a billing…
The name of the seller's contact person (BG-6).
The phone number of the seller's contact person (BG-6).
The email address of the seller's contact person (BG-6).
The buyer's VAT ID (BT-48), required for reverse charge and intra-E…
The electronic address of the buyer (BT-49), for example a billing …
The name of the buyer's contact person (BT-56).
The email address of the buyer's contact person (BT-58).
The name of the recipient at the delivery location (BT-70).
The street of the delivery address (BG-15), for example a construct…
The postal code of the delivery address.
The city of the delivery address.
The delivery country or its ISO code. If empty, the buyer country i…▾
The IBAN of the bank account for the payment.
The bank identifier code (BIC).
The name of the payment recipient.
Payment information or a payment reference.
How the invoice is paid (BT-81). Default: SEPA credit transfer (58).▾
The payment terms as text, for example 'Payable within 30 days' (BT…
The date by which the payment is due (BT-9). Accepted: 2026-11-12, …
Cash discount (Skonto) terms, for example 2% if paid within 7 days.
The amount already paid (BT-113), for example from prepayment invoi…
The reason for the VAT exemption (BT-120), for example the small bu…
Choose the VATEX code (BT-121), for example Reverse charge (VATEX-E…▾
Discounts on document level (BG-20), for example a total discount.
Charges on document level (BG-21), for example freight or packaging.
Additional file attachments to embed in the PDF.
Converts attachments automatically into allowed e-invoice formats. …
Appearance of this action in the Power Automate designer (rendered from the connector definition).

How it works

You need two things: a readable invoice PDF (for example created from a Word template, an HTML page or your ERP) and the invoice data. The action writes the data as invoice XML (ZUGFeRD, profile EN 16931) into the PDF and returns a PDF/A-3. People read the PDF as usual; accounting software reads the embedded XML.

PDF/A-3 requires every font to be embedded in the file. If your PDF uses a font that is not embedded, the action embeds a matching font in its place and tells you in Font Repair which font replaced which.

A typical flow:

  1. Get or create the readable PDF, for example with Get file content (SharePoint, OneDrive) or by converting a Word template to PDF.
  2. Convert invoice to ZUGFeRD PDF with the invoice data from your list, Excel table or ERP.
  3. Save ZUGFeRD PDF with Create file or attach it to an email.
  4. Optional: check the result with Validate ZUGFeRD or XRechnung.

Try it with the sample invoice

Sample invoice of Muster Bau GmbH, a readable PDF without invoice XML

Download the sample invoice (PDF). It is a readable PDF without invoice XML. The steps below turn it into a ZUGFeRD invoice with the data printed on it.

Add the action

Create an instant cloud flow with the trigger Manually trigger a flow and add a File input; here it is called Invoice PDF. Below the trigger choose + and Add an action, search for ZUGFeRD and select Convert invoice to ZUGFeRD PDF from the connector BILL Converter by Power2Apps.

Add an action: search for ZUGFeRD

The picture was taken in our test environment. In your flow, the action is part of the connector BILL Converter by Power2Apps.

Fill in the invoice data

Put the file content of the trigger into Invoice PDF and enter the data of the invoice: number, date, seller and buyer. In a real flow these values come from your list, Excel table or ERP.

Parameters: Invoice PDF, Invoice Number, Invoice Date as a plain date and the seller with Seller Country from the list

Under Invoice Item every invoice line is one item. The sample has two lines, both with 19 % VAT: 10 hours of drywall work at 65.00 and one lump sum of material at 350.00. For Unit Code choose Hour (HUR) and Lump sum (LS) from the list. Tax Category Code and Tax Type can stay empty; they default to Standard rate (S) and VAT. The fields of an item open a list in the designer; to enter your own value, type it and choose Use "…" as a custom value.

Invoice Item: the first line with Description, Quantity, Unit Code Hour (HUR), Unit Price and VAT Percent

Run the flow and check the result

Save the flow, choose Test, then Manually. Select the sample invoice with Import and start the flow with Run flow.

Run flow with sample-invoice.pdf as Invoice PDF

The action returns:

Outputs: ZUGFeRD PDF as file content and Font Repair with the status repaired

The sample invoice uses Helvetica without embedding it. That is why Font Repair Status is repaired here and Substituted Fonts lists Helvetica -> Liberation Sans and Helvetica-Bold -> Liberation Sans Bold. Notes is empty because nothing else had to be adjusted.

Download the result (PDF). It is a ZUGFeRD invoice with the profile EN 16931: 1,000.00 net plus 190.00 VAT = 1,190.00.

Example

Request body with two invoice lines (shortened, invoicePdf is the file content of the readable PDF):

{
  "invoicePdf": "<file content>",
  "invoiceNumber": "RE-2026-1001",
  "invoiceDate": "2026-11-12",
  "sellerName": "Power2Apps GmbH",
  "sellerVatId": "DE123456789",
  "sellerStreet": "Hauptstraße 1",
  "sellerPostcode": "10115",
  "sellerCity": "Berlin",
  "sellerCountry": "DE",
  "buyerName": "Max Mustermann GmbH",
  "buyerStreet": "Kundenstraße 99",
  "buyerPostcode": "90402",
  "buyerCity": "Nürnberg",
  "buyerCountry": "DE",
  "iban": "DE89370400440532013000",
  "paymentTerm": "Payable within 14 days",
  "paymentDueDate": "2026-11-26",
  "invoiceLines": [
    {
      "description": "IT consulting",
      "quantity": 8,
      "unitCode": "HUR",
      "unitPrice": 150.0,
      "vatPercent": 19
    },
    {
      "description": "Train ticket",
      "quantity": 1,
      "unitCode": "H87",
      "unitPrice": 89.0,
      "vatPercent": 7
    }
  ]
}

The totals are calculated from the invoice lines: here 8 × 150.00 + 89.00 = 1,289.00 net, plus 228.00 VAT (19 %) and 6.23 VAT (7 %) = 1,523.23 gross. In Power Automate you fill Invoice Item with an array, for example the output of a Select action on your list items.

Tips

Parameters

PropertyNameTypeDescription
invoicePdfInvoice PDF requiredfile (base64)The readable invoice PDF into which the invoice XML is embedded.
invoiceNumberInvoice Number requiredstringThe invoice number, for example RE-2025-001.
minLength: 1
invoiceDateInvoice Date requiredstringThe invoice date, for example 2026-11-12. Accepted: 2026-11-12, 12.11.2026, 12.11.26, 20261112, 2026/11/12, 13/11/2026, 13-11-2026, 2026-11-12T10:00:00+01:00, 46338 (Excel), 12 November 2026 or Nov 12, 2026; dates with / or - before the year only if day and month are unambiguous.
minLength: 1
sellerNameSeller Name requiredstringThe name of the seller company or person.
minLength: 1
sellerStreetSeller Street requiredstringThe street address of the seller.
minLength: 1
sellerPostcodeSeller Postcode requiredstringThe postal code of the seller.
minLength: 1
sellerCitySeller City requiredstringThe city or locality of the seller.
minLength: 1
sellerCountrySeller Country requiredstring (dropdown)Choose the country of the seller or enter its ISO code, for example DE.
minLength: 1; dynamic dropdown
buyerNameBuyer Name requiredstringThe name of the buyer company or person.
minLength: 1
buyerStreetBuyer Street requiredstringThe street address of the buyer.
minLength: 1
buyerPostcodeBuyer Postcode requiredstringThe postal code of the buyer.
minLength: 1
buyerCityBuyer City requiredstringThe city or locality of the buyer.
minLength: 1
buyerCountryBuyer Country requiredstring (dropdown)Choose the country of the buyer or enter its ISO code, for example DE.
minLength: 1; dynamic dropdown
invoiceLinesInvoice Item requiredarray of DtoInvoiceLineV3The line items of the invoice.
invoiceTypeCodeInvoice Type advancedstring (dropdown)Invoice type (BT-3), for example a prepayment invoice. Default: Invoice (380).
dynamic dropdown
deliveryDateDelivery Date advancedstringThe actual delivery date (BT-72). If empty, the invoice date is used. Accepted: 2026-11-12, 12.11.2026, 12.11.26, 20261112, 2026/11/12, 13/11/2026, 13-11-2026, 2026-11-12T10:00:00+01:00, 46338 (Excel), 12 November 2026 or Nov 12, 2026; dates with / or - before the year only if day and month are unambiguous.
servicePeriodStartService Period Start advancedstringThe start of the service or billing period (BT-73). Accepted: 2026-11-12, 12.11.2026, 12.11.26, 20261112, 2026/11/12, 13/11/2026, 13-11-2026, 2026-11-12T10:00:00+01:00, 46338 (Excel), 12 November 2026 or Nov 12, 2026; dates with / or - before the year only if day and month are unambiguous.
servicePeriodEndService Period End advancedstringThe end of the service or billing period (BT-74). Accepted: 2026-11-12, 12.11.2026, 12.11.26, 20261112, 2026/11/12, 13/11/2026, 13-11-2026, 2026-11-12T10:00:00+01:00, 46338 (Excel), 12 November 2026 or Nov 12, 2026; dates with / or - before the year only if day and month are unambiguous.
currencyCodeCurrency advancedstring (dropdown)Choose the currency or enter its ISO code, for example EUR. Default: EUR.
dynamic dropdown
businessProcessBusiness Process advancedstringThe business process (BT-23). If empty, the PEPPOL billing process is used.
buyerReferenceBuyer Reference advancedstringThe buyer reference or Leitweg-ID (BT-10), required by the German public sector.
buyerOrderNumberOrder Number advancedstringThe purchase order number of the buyer (BT-13).
contractReferenceContract Reference advancedstringThe contract or framework agreement number (BT-12).
projectReferenceProject Reference advancedstringThe project or construction site reference (BT-11).
invoiceNoteInvoice Note advancedstringA free text note on the invoice (BT-22), for example legal notes or retention of title.
precedingInvoicesPreceding Invoices advancedarray of DtoPrecedingInvoiceV3Preceding invoices this invoice refers to (BG-3), for example for corrections.
sellerIdentifierSeller Identifier advancedstringThe seller's identifier, for example a supplier number assigned by the buyer (BT-29).
sellerVatIdSeller VAT ID advancedstringThe seller's VAT ID, for example DE129273398 (BT-31).
sellerTaxNumberSeller Tax Number advancedstringThe seller's national tax number (BT-32). Use it if there is no VAT ID.
sellerLegalRegistrationIdSeller Registration ID advancedstringThe seller's legal registration ID, for example a commercial register number (BT-30).
sellerEmailSeller Email advancedstringThe electronic address of the seller (BT-34), for example a billing email.
sellerContactNameSeller Contact Name advancedstringThe name of the seller's contact person (BG-6).
sellerContactPhoneSeller Contact Phone advancedstringThe phone number of the seller's contact person (BG-6).
sellerContactEmailSeller Contact Email advancedstringThe email address of the seller's contact person (BG-6).
buyerVatIdBuyer VAT ID advancedstringThe buyer's VAT ID (BT-48), required for reverse charge and intra-EU supplies.
buyerEmailBuyer Email advancedstringThe electronic address of the buyer (BT-49), for example a billing email.
buyerContactNameBuyer Contact Name advancedstringThe name of the buyer's contact person (BT-56).
buyerContactEmailBuyer Contact Email advancedstringThe email address of the buyer's contact person (BT-58).
deliveryNameDelivery Name advancedstringThe name of the recipient at the delivery location (BT-70).
deliveryStreetDelivery Street advancedstringThe street of the delivery address (BG-15), for example a construction site.
deliveryPostcodeDelivery Postcode advancedstringThe postal code of the delivery address.
deliveryCityDelivery City advancedstringThe city of the delivery address.
deliveryCountryDelivery Country advancedstring (dropdown)The delivery country or its ISO code. If empty, the buyer country is used.
dynamic dropdown
ibanIBAN advancedstringThe IBAN of the bank account for the payment.
bicBIC advancedstringThe bank identifier code (BIC).
paymentRecipientPayment Recipient advancedstringThe name of the payment recipient.
paymentInfoPayment Info advancedstringPayment information or a payment reference.
paymentMeansCodePayment Means advancedstring (dropdown)How the invoice is paid (BT-81). Default: SEPA credit transfer (58).
dynamic dropdown
paymentTermPayment Term advancedstringThe payment terms as text, for example 'Payable within 30 days' (BT-20).
paymentDueDatePayment Due Date advancedstringThe date by which the payment is due (BT-9). Accepted: 2026-11-12, 12.11.2026, 12.11.26, 20261112, 2026/11/12, 13/11/2026, 13-11-2026, 2026-11-12T10:00:00+01:00, 46338 (Excel), 12 November 2026 or Nov 12, 2026; dates with / or - before the year only if day and month are unambiguous.
skontoTermsCash Discount Terms advancedarray of DtoSkontoTermV3Cash discount (Skonto) terms, for example 2% if paid within 7 days.
prepaidAmountPrepaid Amount advancednumberThe amount already paid (BT-113), for example from prepayment invoices.
taxExemptionReasonTax Exemption Reason advancedstringThe reason for the VAT exemption (BT-120), for example the small business regulation.
taxExemptionReasonCodeTax Exemption Reason Code advancedstring (dropdown)Choose the VATEX code (BT-121), for example Reverse charge (VATEX-EU-AE).
dynamic dropdown
documentAllowancesDocument Discount advancedarray of DtoAllowanceChargeV3Discounts on document level (BG-20), for example a total discount.
documentChargesDocument Charge advancedarray of DtoAllowanceChargeV3Charges on document level (BG-21), for example freight or packaging.
attachmentsAttachments advancedarray of DtoAttachmentV3Additional file attachments to embed in the PDF.
autoAdjustAttachmentsAuto-Adjust Attachments advancedbooleanConverts attachments automatically into allowed e-invoice formats. Default: yes.

Returns

PropertyNameTypeDescription
zugferdPdfZUGFeRD PDF file (base64)The generated ZUGFeRD-compliant hybrid PDF/A-3 invoice file.
fontRepairfontRepair DtoFontRepair (object)
notesNotes advancedarray of stringNotes about automatic adjustments, for example converted attachments.

Type DtoPrecedingInvoiceV3

PropertyNameTypeDescription
invoiceNumberInvoice Number requiredstringThe number of the preceding invoice (BT-25).
minLength: 1
invoiceDateInvoice Date stringThe issue date of the preceding invoice (BT-26). Accepted: 2026-11-12, 12.11.2026, 12.11.26, 20261112, 2026/11/12, 13/11/2026, 13-11-2026, 2026-11-12T10:00:00+01:00, 46338 (Excel), 12 November 2026 or Nov 12, 2026; dates with / or - before the year only if day and month are unambiguous.

Type DtoSkontoTermV3

PropertyNameTypeDescription
daysDays integer (int32)The number of days within which the cash discount applies, for example 7.
percentPercent numberThe cash discount percentage, for example 2 for 2%.
baseAmountBase Amount numberThe partial amount the cash discount applies to, if it is not the full amount.

Type DtoInvoiceLineV3

PropertyNameTypeDescription
descriptionDescription requiredstringA short description of the invoiced item or service.
minLength: 1
quantityQuantity numberThe quantity of the item, for example 1 or 5.5.
unitCodeUnit Code string (dropdown)Choose the unit or enter a UN/ECE code, for example H87 for piece.
dynamic dropdown
unitPriceUnit Price numberThe net unit price without tax.
vatPercentVAT Percent numberThe VAT rate of the item, for example 19 for 19%. Default: 19.
categoryCodeTax Category Code string (dropdown)Choose the tax category of the item, for example Standard rate (S). Default: S.
dynamic dropdown
taxTypeTax Type string (dropdown)The type of tax. Default: VAT.
dynamic dropdown

Type DtoAllowanceChargeV3

PropertyNameTypeDescription
amountAmount numberThe net amount of the discount or charge as a positive number.
reasonReason stringThe reason shown on the invoice, for example 'Volume discount' or 'Freight'.
vatPercentVAT Percent numberThe VAT rate that applies to this amount, for example 19. Default: 19.
categoryCodeTax Category Code string (dropdown)Choose the tax category, for example Standard rate (S). Default: S.
dynamic dropdown
taxTypeTax Type string (dropdown)The type of tax. Default: VAT.
dynamic dropdown

Type DtoAttachmentV3

PropertyNameTypeDescription
contentFile Content requiredstringThe file content as binary data (base64 in JSON).
filenameFilename requiredstringThe file name with extension, for example calculation.xlsx.
minLength: 1
descriptionDescription requiredstringA short description of the attachment.
minLength: 1

Type DtoFontRepair

PropertyNameTypeDescription
statusFont Repair Status stringEither repaired (every missing font was embedded) or failed (the invoice PDF was used unchanged).
substitutedFontsSubstituted Fonts array of stringEach missing font with the font embedded in its place, for example Helvetica -> Liberation Sans.

Example request

{
  "invoicePdf": "<base64-encoded file content>",
  "invoiceNumber": "…",
  "invoiceDate": "…",
  "sellerName": "…",
  "sellerStreet": "…",
  "sellerPostcode": "…",
  "sellerCity": "…",
  "sellerCountry": "…",
  "buyerName": "…",
  "buyerStreet": "…",
  "buyerPostcode": "…",
  "buyerCity": "…",
  "buyerCountry": "…",
  "invoiceLines": [
    {
      "description": "…",
      "quantity": 0.0,
      "unitCode": "…",
      "unitPrice": 0.0,
      "vatPercent": 0.0,
      "categoryCode": "…",
      "taxType": "…"
    }
  ]
}

Example generated from the connector definition.