Zum Hauptinhalt springen

Erstellen Sie eine SwissQR-Rechnung in Power Automate

Was diese Aktion bewirkt

PDF4me Barcode – SwissQR-Rechnung erstellen fügt einer Rechnung einen den Schweizer Zahlungsstandards entsprechenden QR-Zahlungsbeleg bei. PDF innerhalb eines Power Automate Es wird ein Datenfluss erzeugt oder allein aus den Zahlungsdaten eine eigenständige QR-Rechnung generiert. Dateiinhalt von Pipe SharePoint, OneDrive, Dropbox, Dataverse, oder Outlook Anhänge; liefern IBAN + Gläubiger + Schuldner + Referenzfelder; Ausgabeformat auswählen (PDF, PNG, JPEG, Tiff); und die Aktion gibt eine von Schweizer Banken scannbare Datei zurück, die für nachfolgende Aktionen wie „Datei erstellen“, „E-Mail senden“ oder „Teams-Nachricht“ bereit ist. ISO 20022 konform; wird seit 2022 von allen Schweizer Banking-Apps akzeptiert.

Verwandte Blog-Beiträge(4)
Word-Dokument in PDF umwandeln, dann einen Schweizer QR-Code darauflegen. Power Automate erledigt den Rest!
Power Automate-Workflow: Word-Dokument aus Dropbox abrufen, in PDF konvertieren, Schweizer QR-Rechnung mit PDF4me erstellen, Basis-PDF abrufen, als Overlay einfügen, fertiges PDF speichern. Schritt-für-Schritt-Anleitung mit Screenshots und korrekten Bild-Meta-Tags.
Beitrag lesen →
Fügen Sie in Power Automate einer beliebigen PDF-Rechnung einen Schweizer QR-Code hinzu: Ein Dropbox-Workflow mit 4 Schritten
Vierstufiger Power Automate-Workflow: Manuelle Auslösung, Dropbox-Dateiinhalt abrufen, PDF4me Barcode – SwissQR-Rechnung erstellen (CHF, QRR-Referenz, Englisch), anschließend Dropbox-Datei erstellen. Fügt eine den Schweizer Zahlungsstandards entsprechende QR-Rechnungsseite an /pdf4metest/sample/10 page.pdf an und speichert die umbenannte Ausgabe unter /pdf4meoutput. Original-Screenshots, exakte Feldwerte.
Beitrag lesen →
Einfügen einer Schweizer QR-Rechnung auf einer benutzerdefinierten Seitenzahl in Power Automate (4-Aktionen-Dropbox-Flow mit PDF4me)
Power Automate-Workflow zum Einfügen der Schweizer QR-Rechnung auf einer bestimmten Seite einer mehrseitigen Rechnung (Seite 3 im Demo-Lauf). Manueller Auslöser plus Dropbox-Dateiinhalt abrufen plus PDF4me Barcode SwissQR-Rechnung erstellen (Seiteneinstellungen benutzerdefiniert, Seitenzahl 3, IBAN CH4431999123000889012, Betrag 5253531, QRR-Referenz, Englisch) plus Dropbox-Datei mit GUID und Headern/Dateinamen-Umbenennungsmuster erstellen. Echte Screenshots, exakte Feldwerte, 4 Ausgabeformate werden unterstützt.
Beitrag lesen →

Authentifizierung Ihres API Anfrage​

Der PDF4me Stecker anschließen Power Automate erfordert eine gültige Verbindung halten PDF4me API Wichtig. Die Verbindung einmalig bei der Ablaufplanung erstellen, dann jedes Mal PDF4me Eine Aktion in Ihrem Mandanten verwendet es wieder.

Wichtige Fakten, die Sie nicht verpassen sollten​

Vier Ausgabeformate, nicht nur PDF
Ausgabeformattyp akzeptiert PDF (Hybrid, wird Ihrer Quellrechnung beigefügt), PNG, JPEG, oder Tiff (eigenständige Bilder der QR Verwenden Sie Bildformate für eingebettete E-Mails oder Web-Vorschauen; verwenden Sie PDF bei Zustellung einer vollständigen Rechnung.
IBAN muss CH oder LI sein, Währung CHF oder EUR
Die Schweizer Zahlungsnormen beschränken IBAN an Emittenten in der Schweiz/Liechtenstein (max. 21 Zeichen) und Währung an CHF / EUR. Für QRR Referenztyp IBAN muss ein QR-IBANkein Standard IBANFür andere europäische Länder IBANs Verwenden Sie „EPC generieren“. QR Code für SEPA stattdessen.
Die Paging-Optionen befinden sich unter den erweiterten Parametern.
Klicken Alle anzeigen auf erweiterte Parameter anzeigen Paging-Optionen, Seitenzahl, Dateiinhalt, Und Dateiname. Seiteneinstellungen festlegen auf Brauch + Seitenzahl eingeben, um zum Ziel zu gelangen QRRechnung auf einer bestimmten Seite (1-basiert). Gilt nur, wenn Ausgabeformattyp ist PDFDie

Parameter​

Die Aktion legt die Zahlung + Gläubiger + Schuldner + Referenz Felder im Hauptfenster und 4 Felder darunter Erweiterte Parameter Diese steuern die Eingabedatei und die Seitenplatzierung. Die folgenden Screenshots spiegeln die genaue Feldreihenfolge wider. Power Automate Benutzeroberfläche.

Erforderlich (rotes Sternchen in der Benutzeroberfläche): IBAN, Menge. Für SPS-konforme Rutschen dringend empfohlen: Ausgabeformattyp, Gläubigername, Gläubigeradressentyp, Adresszeilen + Postleitzahl + Ort, Block des Endschuldners, Währung, Referenztyp, Sprachtyp, Trennlinie. Bedingt (Erweiterte Parameter): Seitenzahl bei aktivierten Paginierungsoptionen Brauch; Dateiinhalt + Dateiname beim Anhängen QR zu einem bestehenden PDF (beides überspringen für eine eigenständige Version) QR-Beleg).

Power Automate Create SwissQR Bill action: Block 1: Output Format Type, IBAN, Amount, Creditor Name, Creditor Address Type, Address Lines, PostalCode
Block 1: Output Format Type, IBAN, Amount, Creditor Name, Creditor Address Type, Address Lines, PostalCode
Power Automate Create SwissQR Bill action: Block 2: Creditor City, Currency, Ultimate Debtor block (Name, AddressType, Address Lines, PostalCode, City), Reference Type
Block 2: Creditor City, Currency, Ultimate Debtor block (Name, AddressType, Address Lines, PostalCode, City), Reference Type
Power Automate Create SwissQR Bill action: Block 3: Reference, Unstructured Message, Billing Info, AV1 + Av2 Parameters, Language Type, Seperator Line
Block 3: Reference, Unstructured Message, Billing Info, AV1 + Av2 Parameters, Language Type, Seperator Line
ParameterErforderlichWas es tutBeispiel
Output Format TypeOptionalFormat of the result - a PDF or a PNG, JPEG or TIFF image. After you choose it, the fields for that format are loaded into the action card. Options: PDF, PNG, JPEG, Tiff. Defaults to `PDF`.PDF
IBANRequiredIBAN or QR-IBAN of the creditor's account. Only Swiss (CH) and Liechtenstein (LI) IBANs are accepted, with a maximum of 21 characters.your value
Creditor NameOptionalThe creditor's name or company according to the account name.your value
Creditor Address TypeOptionalHow the creditor's address is given: S (structured: street and building number in separate fields) or K (combined: two free address lines). Options: S, K. Defaults to `S`.S
Creditor : Street Name or Address Line 1OptionalThe creditor's address line 1 with max 70 characters length.your value
Creditor : Building Number or Address Line 2OptionalThe creditor's address line 2. For S type 16 characters, K type 70 characters length permitted.your value
Creditor PostalCodeOptionalThe creditor's PostalCode with max 16 characters length.your value
Creditor CityOptionalThe creditor's Town/City with max 35 characters length.your value
AmountRequiredAmount to pay, without leading zeros and with two decimal places (for example `1250.00`).1250.00
CurrencyOptionalThe payment currency, Only CHF and EUR are permitted. Options: CHF, EUR. Defaults to `CHF`.CHF
Ultimate Debtor NameOptionalThe Ultimate Debtor's name or company according to the account name.your value
Ultimate Debtor AddressTypeOptionalHow the ultimate debtor's address is given: S (structured: street and building number in separate fields) or K (combined: two free address lines). Options: S, K. Defaults to `S`.S
Ultimate Debtor: Street Name or Address Line 1OptionalThe Ultimate Debtor's address line 1 with max 70 characters length.your value
Ultimate Debtor : Building Number or Address Line 2OptionalThe Ultimate Debtor's address line 2. For S type 16 characters, K type 70 characters length permitted.your value
Ultimate Debtor PostalCodeOptionalThe Ultimate Debtor's PostalCode with max 16 characters length.your value
Ultimate Debtor CityOptionalThe Ultimate Debtor's Town/City with max 35 characters length.your value
Reference TypeOptionalType of the payment reference given in Reference. Options: QRR, SCOR, NON. Defaults to `QRR`.QRR
ReferenceOptionalReference, Maximum 27 characters permitted.your value
Unstructured MessageOptionalUnstructuredMessage, Maximum 140 characters permitted.your value
Billing InfoOptionalBillingInfo, Maximum 140 characters permitted.your value
AV1 ParametersOptionalAlternative scheme parameter, Maximum 100 characters permitted.your value
Av2 ParametersOptionalAlternative scheme parameter, Maximum 100 characters permitted.your value
Language TypeOptionalChoose the language type. Options: German, French, Italian, English. Defaults to `English`.English
Seperator LineOptionalSeparator line type to be displayed in SwissQR Code. Options: LineWithScissor, Line, None. Defaults to `LineWithScissor`.LineWithScissor
Page NumberConditionalThe page where SwissQR Bill is to be added, Only applicable paging option is custom. Shown when Output Format Type is PDF.1
Paging OptionsConditionalWhere the QR-bill page goes in the PDF: on the first page, on the last page, as a new page at the end, or on a specific page (set in Page Number). Page numbering starts at 1. Options: first, last, AddPageAtEnd, custom. Defaults to `first`. Shown when Output Format Type is PDF.first
File ContentConditionalContent of the PDF to add the QR-bill to. Map it from the file content returned by a previous action, such as SharePoint or OneDrive Get file content. Shown when Output Format Type is PDF.@{body('Get_file_content')?['$content']}
File NameConditionalName of the PDF to add the QR-bill to, including its extension (for example `invoice.pdf`). Map it from the file name returned by a previous action. Shown when Output Format Type is PDF.invoice.pdf

Optionen für den Ausgabeformattyp​

Power Automate-Ausgabeformat-Dropdown-Menü: PNG ausgewählt; Optionen: JPEG, PDF, PNG, TIFF
Das Dropdown-Menü „Ausgabeformattyp“ listet 4 Optionen auf.
PDF
Standard. Hybrid output: QR-bill page appended to your source invoice (use Paging Options to control where). Most common choice for outgoing invoices.
PNG
Standalone raster image of the QR-bill slip. Best for inline email embeds and web previews. QR stays scannable at high DPI.
JPEG
Compressed raster image. Smaller file size than PNG, still bank-scannable.
Tiff
Lossless raster archive format. Use when the recipient needs print-grade quality.

Referenz zu den Paging-Optionen (Erweiterte Parameter)​

Gilt nur, wenn Ausgabeformattyp ist PDFDie Bildformate (PNG, JPEG, TIFF) ignorieren Seiteneinstellungen, da die Ausgabe ein eigenständiges Bild ist. QR Ein Belegbild, kein mehrseitiges Dokument.

Erweiterte Parameter von Power Automate: Seitenzahl 3, benutzerdefinierte Paging-Optionen, Dateiinhalt und Dateiname (Slots) werden angezeigt
Erweiterte Parameter: Seitenzahl 3, Seitenumbruch benutzerdefiniert, Dateiinhalt zugeordnet, Dateiname abc.pdf.
first
Insert the QR-bill as the new page 1 of the output. The original first page becomes page 2.
last
Insert the QR-bill at the end, after the original last page.
add at end
Functional alias for last. Pick whichever phrasing matches your downstream documentation.
custom
Insert the QR-bill at a specific 1-based page index. Requires Page Number to be filled with the desired index (e.g. 3 inserts the slip as the new page 3).

Ausgabe​

FeldTypWas es enthält
File ContentFile contentContent of the resulting QR-bill, in the chosen output format. Map it into the next action, for example the File Content field of SharePoint or OneDrive Create file.
File NameTextFile name of the resulting QR-bill file, as returned by PDF4me. Use it as the file name when saving the file.
Page CountTextPage count reported by PDF4me for the processed document. Returned as text; wrap it in int() to use it as a number.

Beispieldatei​

Schnellkonfiguration​

  1. Hinzufügen PDF4me Zu Barcode – SwissQR-Rechnung erstellen in Ihrem Power Automate fließen.
  2. Melden Sie sich bei der PDF4me Verbinden Verbinden Sie sich mit Ihrem API Schlüssel.
  3. Satz Ausgabeformattyp Zu PDF (oder PNG / JPEG / Tiff (für die Bildausgabe).
  4. Füllen Sie die Zahlungsfelder aus: IBAN (CH oder LI, max. 21 Zeichen), Menge, Währung (CHF oder EUR), Referenztyp (QRR, SCOR, oder NON), Sprachtyp, TrennlinieDie
  5. Füllen Sie die Gläubiger Block (Name, Adresstyp, Adresszeilen, Postleitzahl, Stadt) und Endgültiger Schuldner Block.
  6. Optional ausfüllen Referenz, Unstrukturierte Nachricht, Rechnungsinformationen, AV1 / AV2 ParameterDie
  7. Klicken Alle anzeigen An Erweiterte Parameter. Karte Dateiinhalt Und Dateiname aus einer vorherigen Handlung (SharePoint, OneDriveDropbox, Outlook). Satz Paging-Optionen Zu first / last / add at end / custom. Wenn custom, füllen Seitenzahl mit dem 1-basierten Seitenindex, wo der Beleg landen soll (z.B. 3).
  8. Speichern und ausführen. Die Aktion wird zurückgegeben. Dateiinhalt mit der bevölkerten PDF oder Bild. Weiterleitung in SharePoint Datei erstellen, OneDrive Datei erstellen, Outlook Senden Sie eine E-Mail oder veröffentlichen Sie eine Nachricht über Teams.

Flussbeispiele​

Häufige Power Automate-AblaufmusterThree ways to chain Create SwissQR Bill into a flow.
SharePoint Rechnungsbibliothek per E-Mail senden
  1. SharePoint Wenn eine Datei erstellt wird Der Trigger wird beim Speichern von Dokumenten/Rechnungen ausgelöst.
  2. SharePoint Dateiinhalte laden PDF Binär.
  3. Die Funktion „SwissQR-Rechnung erstellen“ fügt den Zahlungsbeleg hinzu (Ausgabeformattyp). PDF(Paginierungsoptionen zuletzt).
  4. Outlook Senden Sie eine E-Mail mit dem ausgefüllten Formular als Anhang. PDF an den Kunden.
Dropbox-Archivierungs-Workflow
  1. Einen Flow manuell auslösen (oder Dropbox beim Erstellen einer Datei).
  2. Dropbox: Dateiinhalte anhand des Pfades abrufen /pdf4metest/sample/10 page.pdfDie
  3. Mit der Funktion „SwissQR-Rechnung erstellen“ wird der Beleg um Paging-Optionen ergänzt. Brauch, Seitenzahl 3Die
  4. Dropbox-Datei erstellen schreibt in /pdf4meoutput mit einem eindeutigen Dateinamen, der aus guid() + der Quellname.
Eigenständig QR Auszug aus den Dataverse-Daten
  1. Der Wiederholungsauslöser wird täglich aktiviert.
  2. Dataverse listet Zeilen mit überfälligen Rechnungen auf.
  3. Für jeden Schritt anwenden: SwissQR-Rechnung erstellen ohne Dateiinhalt (erweiterte Dateifelder überspringen) unter Verwendung der Zahlungsdaten aus der Zeile. Ausgabeformattyp PNGDie
  4. Outlook Eine E-Mail senden bettet die QR PNG im Zusammenhang mit einer Zahlungserinnerung.

Häufig gestellte Fragen​

What output formats does Create SwissQR Bill produce?+
Four: PDF (hybrid output with the QR-bill page appended to the source invoice, most common), PNG, JPEG, or Tiff (standalone raster images of the QR-bill slip). The PDF output also honors the Paging Options field to control where the slip is inserted.
How do I insert the QR-bill on a specific page?+
Click Show all on Advanced parameters. Set Paging Options to custom, then fill Page Number with the 1-based page index where the slip should land. Paging Options also accepts first, last, and add at end if you do not need a specific position. Only applies when Output Format Type is PDF.
What is the difference between QRR, SCOR, and NON?+
QRR is the Swiss 27-digit numeric reference with a mod-10 check digit; it requires a QR-IBAN. SCOR is the ISO 11649 international creditor reference; it works with a standard IBAN. NON means no reference is shown on the slip, useful for ad-hoc payments where the debtor adds their own reference.
Can I generate a standalone QR-bill without a source PDF?+
Yes. Skip the File Content and File Name fields in Advanced parameters. The action returns a standalone Swiss QR-bill in the chosen Output Format Type. Useful when the debtor only needs the payment slip.
Address Type S or K which one should I pick?+
S (Structured) is the modern default and the recommended choice for new integrations. Fill PostalCode and City as separate fields, with the street going on Address Line 1 / 2. K (Combined) puts the full address as free text on the two Address Line fields and leaves PostalCode / City empty. Use K only when importing legacy data.
What does the Seperator Line field control?+
The separator pictogram printed on the QR-bill section. LineWithScissor (a line plus scissor icon, the standard for paper invoices), OnlyLine (a line, no pictogram), or NoLine (no separator, used in eBill / e-invoice scenarios where the slip will not be cut). The Power Automate UI labels the field with the legacy Seperator spelling.
Will Swiss banks actually accept this output?+
Yes. The action produces an ISO 20022 Swiss Payment Standards compliant slip. Every Swiss bank app that supports QR-bill payments (every major bank since 2022) can scan the output to pre-fill the payment form.
My IBAN starts with DE, FR, or IT, can I still use this?+
No. Swiss QR-bills are scoped to CH and LI IBANs only. For European SEPA payments with non-Swiss IBANs use the Generate EPC QR Code for SEPA action instead.

Verwandte Aktionen​

Dieselbe Aufgabe auf anderen Plattformen​

Hilfe erhalten​