deprecated Convert invoice to ZUGFeRD PDF (deprecated)

This action is deprecated - please use the newer 'Convert invoice to ZUGFeRD PDF' action instead. Creates a fully compliant ZUGFeRD PDF/A-3 invoice by embedding structured invoice data (XML) into a readable PDF. 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.

This action is deprecated. Use Convert invoice to ZUGFeRD PDF instead.
Convert invoice to ZUGFeRD PDF (deprecated)
📄 The readable invoice PDF into which the invoice XML will be embedded.
The invoice number (e.g., RE-2025-001)
The invoice date (format: yyyy-MM-dd)
Seller company or person name
The seller's identifier, e.g. a supplier number assigned by the buy…
The seller's VAT ID, e.g. DE129273398 (BT-31).
The seller's legal registration ID, e.g. a commercial register numb…
Seller street address
Seller postal code
Seller city or locality
Seller country (ISO code, e.g., DE)
Buyer company or person name
Buyer street address
Buyer postal code
Buyer city or locality
Buyer country (ISO code, e.g., DE)
Bank account IBAN for payment
Name of the payment recipient
Optional payment terms as text, e.g. 'Payable within 30 days' (BT-20).
Optional date by which the payment is due (BT-9).
The list of invoice line items.
Show advanced options
Invoice type (BT-3), e.g. prepayment invoice. Default: Invoice (380)▾
Optional actual delivery date (BT-72). Defaults to the invoice date
Start of the service or billing period (BT-73)
End of the service or billing period (BT-74)
Currency code (e.g., EUR, USD)
Business process (BT-23). Defaults to the PEPPOL billing process
Buyer reference or Leitweg-ID (BT-10), required by German public se…
Purchase order number of the buyer (BT-13)
Contract or framework agreement number (BT-12)
Project or construction site reference (BT-11)
Free text note on the invoice (BT-22), e.g. legal notes or retentio…
Preceding invoices this invoice refers to (BG-3), e.g. for corrections
The seller's national tax number (BT-32). Use it if there is no VAT ID
Seller electronic address (BT-34), e.g. billing email
Seller contact person name (BG-6)
Seller contact phone number (BG-6)
Seller contact email address (BG-6)
The buyer's VAT ID (BT-48) - required for reverse charge and intra-…
Buyer electronic address (BT-49), e.g. billing email
Buyer contact person name (BT-56)
Buyer contact email address (BT-58)
Name of the recipient at the delivery location (BT-70)
Street of the delivery address (BG-15), e.g. a construction site
Postal code of the delivery address
City of the delivery address
Delivery country (ISO code, e.g., DE). Defaults to the buyer country
Bank identifier code (BIC)
Optional payment information or reference
How the invoice is paid (BT-81). Default: SEPA credit transfer (58)▾
Cash discount (Skonto) terms, e.g. 2% if paid within 7 days
Amount already paid (BT-113), e.g. from prepayment invoices
Reason for VAT exemption (BT-120), e.g. the small business regulation
VATEX code (BT-121), e.g. VATEX-EU-AE for reverse charge
Discounts on document level (BG-20), e.g. a total discount
Charges on document level (BG-21), e.g. freight or packaging
Optional additional file attachments to embed in the PDF
Automatically converts attachments 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 2.3, profile EN 16931) into the PDF and returns a PDF/A-3. People read the PDF as usual; accounting software reads the embedded XML.

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 (deprecated) 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.

The action in existing flows

This action is deprecated and can no longer be added to a flow: under Add an action the search for ZUGFeRD only offers the newer Convert invoice to ZUGFeRD PDF. In existing flows the action keeps working. Its card still shows the name Convert invoice to ZUGFeRD PDF; the tab About shows the note This action is deprecated. The steps below show such an existing flow with the trigger Manually trigger a flow and a File input called Invoice PDF.

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, buyer, bank details and payment terms. In a real flow these values come from your list, Excel table or ERP. Dates are entered with a time, for example 2026-11-12T00:00:00Z, or come from a date column. If you type a plain date such as 2026-11-12, the flow checker shows Enter a valid datetime. Type the date with T00:00:00Z instead, including the Z at the end: a time zone offset such as +01:00 is converted to UTC and can move the date to the day before. The flow checker does not check expressions.

Parameters: Invoice PDF, Invoice Number, Invoice Date and the seller

Under Invoice Items every invoice line is one item. The sample has two lines, both with 19 % VAT: 10 hours (HUR) of drywall work at 65.00 and one lump sum (LS) of material at 350.00.

Invoice Items: the first line with Description, Quantity, Unit Code, 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 ZUGFeRD PDF, the file content of the new PDF/A-3 with the embedded invoice XML. Save it with Create file or attach it to an email. Notes is empty here because nothing had to be adjusted.

Outputs: ZUGFeRD PDF as file content

Download the result (PDF). In our test flow the next action, Validate ZUGFeRD or XRechnung, confirms it as a valid e-invoice with the profile EN 16931.

Example

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

{
  "invoicePdf": "<file content>",
  "invoiceNumber": "RE-2025-1001",
  "invoiceDate": "2025-07-01",
  "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": "2025-07-15",
  "invoiceLines": [
    {
      "description": "IT consulting",
      "quantity": 8,
      "unitCode": "HUR",
      "unitPrice": 150.0,
      "vatPercent": 19
    },
    {
      "description": "Train ticket",
      "quantity": 1,
      "unitCode": "C62",
      "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 Items with an array, for example the output of a Select action on your list items.

The response contains ZUGFeRD PDF (the file) and Notes. Notes tell you what was adjusted, for example a converted attachment or an unknown code that was left out.

Tips

Parameters

PropertyNameTypeDescription
invoicePdfInvoice PDF file (base64)The readable invoice PDF into which the invoice XML will be embedded.
invoiceNumberInvoice Number stringThe invoice number (e.g., RE-2025-001)
invoiceDateInvoice Date stringThe invoice date (format: yyyy-MM-dd)
sellerNameSeller Name stringSeller company or person name
sellerIdentifierSeller Identifier stringThe seller's identifier, e.g. a supplier number assigned by the buyer (BT-29).
sellerVatIdSeller VAT ID stringThe seller's VAT ID, e.g. DE129273398 (BT-31).
sellerLegalRegistrationIdSeller Registration ID stringThe seller's legal registration ID, e.g. a commercial register number (BT-30).
sellerStreetSeller Street stringSeller street address
sellerPostcodeSeller Postcode stringSeller postal code
sellerCitySeller City stringSeller city or locality
sellerCountrySeller Country stringSeller country (ISO code, e.g., DE)
buyerNameBuyer Name stringBuyer company or person name
buyerStreetBuyer Street stringBuyer street address
buyerPostcodeBuyer Postcode stringBuyer postal code
buyerCityBuyer City stringBuyer city or locality
buyerCountryBuyer Country stringBuyer country (ISO code, e.g., DE)
ibanIBAN stringBank account IBAN for payment
paymentRecipientPayment Recipient stringName of the payment recipient
paymentTermPayment Term stringOptional payment terms as text, e.g. 'Payable within 30 days' (BT-20).
paymentDueDatePayment Due Date stringOptional date by which the payment is due (BT-9).
invoiceLinesInvoice Items array of DtoInvoiceLineV2The list of invoice line items.
invoiceTypeCodeInvoice Type advancedstring (dropdown)Invoice type (BT-3), e.g. prepayment invoice. Default: Invoice (380)
dynamic dropdown
deliveryDateDelivery Date advancedstringOptional actual delivery date (BT-72). Defaults to the invoice date
servicePeriodStartService Period Start advancedstringStart of the service or billing period (BT-73)
servicePeriodEndService Period End advancedstringEnd of the service or billing period (BT-74)
currencyCodeCurrency advancedstringCurrency code (e.g., EUR, USD)
businessProcessBusiness Process advancedstringBusiness process (BT-23). Defaults to the PEPPOL billing process
buyerReferenceBuyer Reference advancedstringBuyer reference or Leitweg-ID (BT-10), required by German public sector
buyerOrderNumberOrder Number advancedstringPurchase order number of the buyer (BT-13)
contractReferenceContract Reference advancedstringContract or framework agreement number (BT-12)
projectReferenceProject Reference advancedstringProject or construction site reference (BT-11)
invoiceNoteInvoice Note advancedstringFree text note on the invoice (BT-22), e.g. legal notes or retention of title
precedingInvoicesPreceding Invoices advancedarray of DtoPrecedingInvoicePreceding invoices this invoice refers to (BG-3), e.g. for corrections
sellerTaxNumberSeller Tax Number advancedstringThe seller's national tax number (BT-32). Use it if there is no VAT ID
sellerEmailSeller Email advancedstringSeller electronic address (BT-34), e.g. billing email
sellerContactNameSeller Contact Name advancedstringSeller contact person name (BG-6)
sellerContactPhoneSeller Contact Phone advancedstringSeller contact phone number (BG-6)
sellerContactEmailSeller Contact Email advancedstringSeller contact email address (BG-6)
buyerVatIdBuyer VAT ID advancedstringThe buyer's VAT ID (BT-48) - required for reverse charge and intra-EU supplies
buyerEmailBuyer Email advancedstringBuyer electronic address (BT-49), e.g. billing email
buyerContactNameBuyer Contact Name advancedstringBuyer contact person name (BT-56)
buyerContactEmailBuyer Contact Email advancedstringBuyer contact email address (BT-58)
deliveryNameDelivery Name advancedstringName of the recipient at the delivery location (BT-70)
deliveryStreetDelivery Street advancedstringStreet of the delivery address (BG-15), e.g. a construction site
deliveryPostcodeDelivery Postcode advancedstringPostal code of the delivery address
deliveryCityDelivery City advancedstringCity of the delivery address
deliveryCountryDelivery Country advancedstringDelivery country (ISO code, e.g., DE). Defaults to the buyer country
bicBIC advancedstringBank identifier code (BIC)
paymentInfoPayment Info advancedstringOptional payment information or reference
paymentMeansCodePayment Means advancedstring (dropdown)How the invoice is paid (BT-81). Default: SEPA credit transfer (58)
dynamic dropdown
skontoTermsCash Discount Terms advancedarray of DtoSkontoTermCash discount (Skonto) terms, e.g. 2% if paid within 7 days
prepaidAmountPrepaid Amount advancednumberAmount already paid (BT-113), e.g. from prepayment invoices
taxExemptionReasonTax Exemption Reason advancedstringReason for VAT exemption (BT-120), e.g. the small business regulation
taxExemptionReasonCodeTax Exemption Reason Code advancedstringVATEX code (BT-121), e.g. VATEX-EU-AE for reverse charge
documentAllowancesDocument Discounts advancedarray of DtoAllowanceChargeDiscounts on document level (BG-20), e.g. a total discount
documentChargesDocument Charges advancedarray of DtoAllowanceChargeCharges on document level (BG-21), e.g. freight or packaging
attachmentsAttachments advancedarray of DtoAttachmentOptional additional file attachments to embed in the PDF
autoAdjustAttachmentsAuto-Adjust Attachments advancedbooleanAutomatically converts attachments into allowed e-invoice formats. Default: yes

Returns

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

Type DtoPrecedingInvoice

PropertyNameTypeDescription
invoiceNumberInvoice Number stringNumber of the preceding invoice (BT-25)
invoiceDateInvoice Date stringIssue date of the preceding invoice (BT-26)

Type DtoSkontoTerm

PropertyNameTypeDescription
daysDays integer (int32)Days within which the cash discount applies (e.g., 7)
percentPercent numberCash discount percentage (e.g., 2 for 2%)
baseAmountBase Amount advancednumberOptional partial amount the cash discount applies to

Type DtoInvoiceLineV2

PropertyNameTypeDescription
descriptionDescription stringShort description of the invoiced item or service
quantityQuantity numberThe quantity of the item (e.g., 1, 5.5)
unitCodeUnit Code stringMeasurement unit (UN/ECE code, e.g., C62 for piece or HUR for hour)
unitPriceUnit Price numberNet unit price without tax
vatPercentVAT Percent numberApplicable VAT rate for the item (e.g., 19 for 19%). Default is 19
categoryCodeTax Category Code stringTax category for this item (e.g., S = standard rate). Default is 'S'
taxTypeTax Type stringType of tax applied (e.g., VAT). Default is 'VAT'

Type DtoAllowanceCharge

PropertyNameTypeDescription
amountAmount numberNet amount of the discount or charge as a positive number
reasonReason stringReason shown on the invoice, e.g. 'Volume discount' or 'Freight'
vatPercentVAT Percent numberVAT rate that applies to this amount (e.g., 19). Default is 19
categoryCodeTax Category Code advancedstringTax category (e.g., S = standard rate). Default is 'S'
taxTypeTax Type advancedstringType of tax applied. Default is 'VAT'

Type DtoAttachment

PropertyNameTypeDescription
contentFile Content stringThe file content as binary (base64 in JSON)
filenameFilename stringFilename with extension (e.g., calculation.xlsx)
descriptionDescription advancedstringOptional description of the attachment

Example request

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

Example generated from the connector definition.