Skip to main content

Create SwissQR Bill in Power Automate

What this action does

PDF4me Barcode - Create SwissQR Bill appends a Swiss Payment Standards compliant QR-bill payment slip to an invoice PDF inside a Power Automate flow, or generates a standalone QR-bill from payment data alone. Pipe File Content from SharePoint, OneDrive, Dropbox, Dataverse, or Outlook attachments; supply IBAN + creditor + debtor + reference fields; pick the output format (PDF, PNG, JPEG, Tiff); and the action returns a Swiss-bank-scannable file ready for downstream Create file, Send email, or Teams message actions. ISO 20022 compliant; accepted by every Swiss banking app since 2022.

Related Blog Posts(3)
Add a Swiss QR Bill to Any Invoice PDF in Power Automate: A 4-Action Dropbox Workflow
Four-action Power Automate flow: Manually trigger, Dropbox Get file content, PDF4me Barcode - Create SwissQR Bill (CHF, QRR reference, English), then Dropbox Create file. Appends a Swiss Payment Standards compliant QR-bill page to /pdf4metest/sample/10 page.pdf and saves the renamed output to /pdf4meoutput. Real screenshots, exact field values.
Read post →
Insert a Swiss QR Bill on a Custom Page Number in Power Automate (4-Action Dropbox Flow with PDF4me)
Power Automate flow that drops the Swiss QR-bill on a specific page of a multi-page invoice (page 3 in the demo run). Manual trigger plus Dropbox Get file content plus PDF4me Barcode Create SwissQR Bill (Paging Options custom, Page Number 3, IBAN CH4431999123000889012, Amount 5253531, QRR reference, English) plus Dropbox Create file with a guid plus headers/FileName rename pattern. Real screenshots, exact field values, 4 output formats covered.
Read post →
Word to PDF, Then a Swiss QR Bill on Top. Power Automate Merges It All!
Power Automate flow: get Word from Dropbox, convert to PDF, create Swiss QR Bill with PDF4me, get base PDF, merge as overlay, save final PDF. Step-by-step with screenshots and proper image meta tags.
Read post →

Authenticating Your API Request

The PDF4me Connect connector in Power Automate requires a valid connection holding your PDF4me API key. Create the connection once at flow design time, then every PDF4me action in your tenant reuses it.

Important Facts You Should Not Miss

Four output formats, not just PDF
Output Format Type accepts PDF (hybrid, appended to your source invoice), PNG, JPEG, or Tiff (standalone images of the QR slip). Use image formats for inline email embeds or web previews; use PDF when delivering a complete invoice.
IBAN must be CH or LI, currency CHF or EUR
The Swiss Payment Standards spec restricts IBAN to Swiss / Liechtenstein issuers (max 21 chars) and currency to CHF / EUR. For QRR Reference Type the IBAN must be a QR-IBAN, not a standard IBAN. For other European IBANs use Generate EPC QR Code for SEPA instead.
Paging Options live under Advanced parameters
Click Show all on Advanced parameters to expose Paging Options, Page Number, File Content, and File Name. Set Paging Options to custom + fill Page Number to land the QR-bill on a specific page (1-based). Applies only when Output Format Type is PDF.

Parameters

The action exposes the payment + creditor + debtor + reference fields in the main panel and 4 fields under Advanced parameters that control input file and page placement. The screenshots below mirror the exact field order in the Power Automate UI.

Required (red asterisk in the UI): IBAN, Amount. Strongly recommended for SPS-compliant slips: Output Format Type, Creditor Name, Creditor Address Type, address lines + PostalCode + City, Ultimate Debtor block, Currency, Reference Type, Language Type, Seperator Line. Conditional (Advanced parameters): Page Number when Paging Options is custom; File Content + File Name when appending the QR slip to an existing PDF (skip both for a standalone QR-slip).

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
ParameterRequiredWhat it doesExample
Output Format TypeNoContainer of the populated output. PDF (hybrid; appended to source invoice), PNG / JPEG / Tiff (standalone raster image of the QR slip). See the reference card below.PNG
IBANYesIBAN or QR-IBAN of the creditor. Maximum 21 characters with CH or LI country codes only. QR-IBAN required when Reference Type is QRR.CH4431999123000889012
AmountYesPayment amount with up to 2 decimal places, no leading zeros. Maximum 12 digits total.5253531
Creditor NameNoCreditor name or company according to the bank account. Maximum 70 characters.Var Schneider AG
Creditor Address TypeNoAddress format for the creditor. S (Structured, separate PostalCode and City fields) or K (Combined, two free-text address lines).S
Creditor: Street Name or Address Line 1NoCreditor primary address line. Maximum 70 characters.Var Schneider AG
Creditor: Building Number or Address Line 2NoCreditor secondary address line (building number for S, free-text for K). 16 chars (S) or 70 chars (K).23
Creditor PostalCodeNoCreditor postal code. Maximum 16 characters.2501
Creditor CityNoCreditor town or city. Maximum 35 characters.biel
CurrencyNoPayment currency. Only CHF and EUR are permitted by Swiss Payment Standards.CHF
Ultimate Debtor NameNoDebtor name or company. Maximum 70 characters.Pia-Maria Rutschmann-Schnyder
Ultimate Debtor AddressTypeNoSame rules as Creditor Address Type. S (Structured) or K (Combined).S
Ultimate Debtor: Street Name or Address Line 1NoDebtor primary address line. Maximum 70 characters.Grosse Marktgasse
Ultimate Debtor: Building Number or Address Line 2NoDebtor secondary address line. 16 chars (S) or 70 chars (K).33
Ultimate Debtor PostalCodeNoDebtor postal code. Maximum 16 characters.9400
Ultimate Debtor CityNoDebtor town or city. Maximum 35 characters.biel
Reference TypeNoReference format. QRR (Swiss 27-digit numeric, requires QR-IBAN), SCOR (ISO 11649 creditor reference), NON (no reference shown).QRR
ReferenceNoPayment reference value. Format depends on Reference Type. Maximum 27 characters for QRR.210000000003139471430009017
Unstructured MessageNoFree-text payment description shown in the Additional information block. Maximum 140 characters.Instruction of 15.09.2019
Billing InfoNoStructured billing information (Swico, etc) shown alongside the Unstructured Message. Maximum 140 characters.S1/01/20170309/11/10201409/20/14000000/22/36958/30/CH106017086/40/1020/41/3010
AV1 ParametersNoAlternative scheme parameter 1 (e.g. eBill identifier). Maximum 100 characters. Convention: Name AV1: UV;...Name AV1: UV;UltraPay005;12345
Av2 ParametersNoAlternative scheme parameter 2. Maximum 100 characters. Same convention as AV1 when a second alternative scheme is required.Name AV2: XY;XYService;54321
Language TypeNoLanguage for the printed QR-bill labels. German, French, Italian, English.English
Seperator LineNoSeparator line style. LineWithScissor (line + scissor pictogram, standard print), OnlyLine (line, no pictogram), or NoLine (eBill / e-invoice). The Power Automate UI labels this field with the legacy "Seperator" spelling.LineWithScissor
Paging OptionsNo (Advanced)Where the QR-bill page is inserted (PDF Output Format Type only). Options: first, last, add at end, custom. See the reference card below.custom
Page NumberConditional (Advanced)The 1-based page number where the QR-bill is inserted. Required when Paging Options is custom; ignored for every other value.3
File ContentNo (Advanced)Source PDF as dynamic content from a prior Microsoft 365 action (SharePoint Get file content, OneDrive Get file content, Dropbox Get file content using path, Outlook Get attachments). Skip for a standalone QR-slip from payment data.File Content
File NameNo (Advanced)Source filename including .pdf extension. Required when File Content is supplied.abc.pdf

Output Format Type options

Power Automate Output Format Type dropdown showing PNG selected with options JPEG, PDF, PNG, Tiff
The Output Format Type dropdown lists 4 options.
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.

Paging Options reference (Advanced parameters)

Applies only when Output Format Type is PDF. Image format types (PNG, JPEG, Tiff) ignore Paging Options because the output is a standalone QR slip image, not a multi-page document.

Power Automate Advanced parameters expanded showing Page Number 3, Paging Options custom, File Content and File Name slots
Advanced parameters expanded: Page Number 3, Paging Options custom, mapped File Content, File Name 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).

Output

FieldTypeWhat it contains
File ContentBinaryThe populated Swiss QR-bill output in the chosen Output Format Type. Pass into SharePoint Create file, OneDrive Create file, Outlook Send an email, or Teams Post a message.
File NameStringOutput filename, based on the input File Name (or a default if no source file was provided).

Sample file

Quick Setup

  1. Add PDF4me to Barcode - Create SwissQR Bill in your Power Automate flow.
  2. Sign in to the PDF4me Connect connector with your API key.
  3. Set Output Format Type to PDF (or PNG / JPEG / Tiff for image output).
  4. Fill the payment fields: IBAN (CH or LI, max 21 chars), Amount, Currency (CHF or EUR), Reference Type (QRR, SCOR, or NON), Language Type, Seperator Line.
  5. Fill the Creditor block (Name, AddressType, address lines, PostalCode, City) and Ultimate Debtor block.
  6. Optionally fill Reference, Unstructured Message, Billing Info, AV1 / Av2 Parameters.
  7. Click Show all on Advanced parameters. Map File Content and File Name from a prior action (SharePoint, OneDrive, Dropbox, Outlook). Set Paging Options to first / last / add at end / custom. If custom, fill Page Number with the 1-based page index where the slip should land (e.g. 3).
  8. Save and run. The action returns File Content with the populated PDF or image. Pipe into SharePoint Create file, OneDrive Create file, Outlook Send an email, or Teams Post a message.

Flow examples

Common Power Automate flow patternsThree ways to chain Create SwissQR Bill into a flow.
SharePoint invoice library to email
  1. SharePoint When a file is created trigger fires on /Documents/Invoices.
  2. SharePoint Get file content loads the PDF binary.
  3. Create SwissQR Bill appends the payment slip (Output Format Type PDF, Paging Options last).
  4. Outlook Send an email attaches the populated PDF to the customer.
Dropbox archive workflow
  1. Manually trigger a flow (or Dropbox When a file is created).
  2. Dropbox Get file content using path reads /pdf4metest/sample/10 page.pdf.
  3. Create SwissQR Bill appends the slip with Paging Options custom, Page Number 3.
  4. Dropbox Create file writes to /pdf4meoutput with a unique filename built from guid() + the source name.
Standalone QR slip from Dataverse data
  1. Recurrence trigger fires daily.
  2. Dataverse List rows pulls overdue invoices.
  3. Apply to each: Create SwissQR Bill without File Content (skip Advanced File fields) using payment data from the row. Output Format Type PNG.
  4. Outlook Send an email embeds the QR PNG inline with a payment reminder.

Frequently Asked Questions

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.

Same task on other platforms

Get Help