Create Swiss QR Bill in n8n
What this node does
PDF4me, Create Swiss QR Bill generates fully compliant Swiss QR payment slips embedded in PDF documents through your n8n automation workflow. Provide a PDF invoice via binary data, base64, URL, or no background document at all, the node outputs a standardized Swiss QR bill with creditor and debtor details, IBAN, reference numbers, multi-language labels, and configurable output formats in a single automated step. Fully compatible with all Swiss banks, PostFinance, and the Swiss Payment Standards (SPS) specification.
Authenticating Your API Request
Every PDF4me node in n8n requires a valid Credential to connect with. Create or select one that holds your PDF4me API key so the workflow can authenticate Swiss QR bill generation requests securely.
Important Facts You Should Not Miss

Top panel, connection, input type, payment details, and creditor address fields

Bottom panel, debtor address, reference type, language, format, paging, and output configuration
Parameters
Required in the n8n UI: Credential to connect with, Input Data Type, Amount, Currency, IBAN, Creditor Name, Creditor Address Type, Ultimate Debtor Address Type, Reference Type, Language Type, Separator Line, Format Type, and (when Format Type is PDF) Paging Options. All address line, postal code, and city fields are marked optional in the UI but are strongly recommended for valid Swiss QR bills, the Swiss Payment Standards specification and the PDF4me API treat them as effectively required for production use. The execute payload always sends them (as empty strings if blank).
| Parameter | Required | What it does | Example |
|---|---|---|---|
| Input Data Type | Required | How to provide the input data. Options: Base64 String, Binary Data, None, URL. Default is `Binary Data`. | Binary Data |
| Base64 Content | Conditional | Base64 encoded content of the file to process. Shown when Input Data Type is Base64 String. | JVBERi0xLjQK... |
| File Name | Conditional | Input file name from the source. Shown when Input Data Type is Base64 String. | document.pdf |
| Binary Property | Conditional | Name of the binary property containing the file to process. Shown when Input Data Type is Binary Data. Default is `data`. | data |
| File Name | Conditional | Input file name from the source. Shown when Input Data Type is Binary Data. | document.pdf |
| File URL | Conditional | URL to the file to process. Shown when Input Data Type is URL. | https://example.com/invoice.pdf |
| File Name | Conditional | Input file name from the source. Shown when Input Data Type is URL. | document.pdf |
| Amount | Required | The amount needs to be entered without leading zeroes. | 1000 |
| Currency | Required | Currency type. Options: Euro, Swiss Franc. Default is `Swiss Franc`. | Swiss Franc |
| IBAN | Required | IBAN of the creditor. | CH0200700110003765824 |
| Creditor Name | Required | The Creditor's name or company according to the account name. | Test AG |
| Creditor Address Type | Required | Type of the Creditor's address. Options: Combined, Structured. Default is `Structured`. | Structured |
| Creditor Street Name or Address Line 1 | Optional | The creditor's address line with max 70 characters. | Test Strasse |
| Creditor Building Number or Address Line 2 | Optional | The creditor's address line - For S type 16 characters and for K type 70 characters. | 1 |
| Creditor Postal Code | Optional | The Creditor's postal code with a max of 16 characters. | 8000 |
| Creditor City | Optional | The Creditor's Town/City with max 35 characters. | Zurich |
| Ultimate Debtor Name | Optional | Debtor's name or company according to account name. | Test Debt AG |
| Ultimate Debtor Address Type | Required | Debtor's address type. Options: Combined, Structured. Default is `Structured`. | Structured |
| Ultimate Debtor Street Name or Address Line 1 | Optional | Debtor's address line with max 70 characters. | Test Deb Strasse |
| Ultimate Building Number or Address Line 2 | Optional | Debtor's address line - For S type 16 characters and for K type 70 characters. | 2 |
| Ultimate Debtor Postal Code | Optional | Debtor's postal code. | 8000 |
| Ultimate Debtor City | Optional | Debtor's Town/City. | Zurich |
| Reference Type | Required | Type of payment reference on the bill: QR Reference, Creditor Reference or No Reference. The reference itself is set in Advanced Options > Reference. Options: Creditor Reference, No Reference, QR Reference. Default is `No Reference`. | No Reference |
| Language Type | Required | Bill language type. Options: English, French, German, Italian. Default is `English`. | English |
| Separator Line | Required | Separator in QR Bill. Options: Dotted Line, Line With Scissor, Solid Line. Default is `Line With Scissor`. | Line With Scissor |
| Format Type | Required | Output format type. Options: Empty (Null), JPEG, PDF, PNG, TIFF. Default is `PDF`. | PDF |
| Output File Name | Conditional | Name for the output Swiss QR Bill file. Shown when Format Type is Empty (Null). | swissqr_bill.pdf |
| Output File Name | Conditional | Name for the output Swiss QR Bill file. Shown when Format Type is JPEG. | swissqr_bill.pdf |
| Paging Options | Conditional | Where to place the Swiss QR bill page. Shown when Format Type is PDF. Options: Add Page At End, Custom, First, Last. Default is `First`. | First |
| Custom Page | Conditional | Custom page number (only one page allowed). Shown when Paging Options is Custom. Default is `1`. | 1 |
| Output File Name | Conditional | Name for the output Swiss QR Bill file. Shown when Format Type is PDF. Default is `swissqr_bill.pdf`. | swissqr_bill.pdf |
| Output File Name | Conditional | Name for the output Swiss QR Bill file. Shown when Format Type is PNG. | swissqr_bill.pdf |
| Output File Name | Conditional | Name for the output Swiss QR Bill file. Shown when Format Type is TIFF. | swissqr_bill.pdf |
| Output Binary Field Name | Optional | Name of the binary property to store the resulting Swiss QR bill file. Default is `data`. | data |
| Advanced Options | Optional | Optional settings, collapsed behind Add Option. | Add Option |
| AV1 Parameter | Optional | Alternative scheme parameter. | |
| AV2 Parameter | Optional | Alternative scheme parameter. | |
| Billing Info | Optional | Billing info of the customer. | |
| Custom Profiles | Optional | Not used by this operation: the value is not added to the request sent to PDF4me. | |
| Reference | Optional | Reference, maximum 27 characters. | NON |
| Unstructured Message | Optional | Unstructured Message, maximum 140 characters permitted. | Human-readable status message confirming success or describing the error encountered. Useful for logging and error notification steps. |
referenceunstructuredMessagebillingInfoav1av2profilesInput Data Type Options
Choose how the source PDF enters the node. Each option suits a different workflow pattern.

Input Data Type dropdown, four options control how the source PDF is supplied to the node
NoneNo background documentBinary DataFile from previous node, most commondata).Base64 StringBase64-encoded file contentURLDownload from a public linkAddress Type Options
Applies to both Creditor Address Type and Ultimate Debtor Address Type. Choose how address components are stored in the QR code data.
StructuredRecommended, separate address fieldsCombinedTwo free-form address lines
Creditor Address Type, Structured vs Combined

Ultimate Debtor Address Type, same choice as for the creditor
Reference Type Options
Controls which payment reference standard is embedded in the QR code. This affects how the payment is matched to the invoice in your bank system.

Reference Type, No Reference, QR Reference, or Creditor Reference
No ReferenceDefault, no structured referenceQR Reference27-digit numeric, Swiss bank reconciliationCreditor ReferenceISO 11649, cross-border SEPA paymentsFormat Type Options
Controls the file format of the generated QR bill output.

Format Type dropdown, PDF, PNG, JPEG, TIFF, or Empty (null)
PDFDefault, print-readyPNGWeb and digital deliveryJPEGEmail-friendly imageTIFFArchival qualityEmpty (null)Raw data outputPaging Options
Controls where the QR bill slip is placed within the output document relative to the existing invoice pages.

Paging Options, First, Last, Add Page At End, or Custom
FirstDefault, QR bill on page 1LastQR bill on the final pageAdd Page At EndMost common, dedicated QR bill pageCustomSpecific page positioningOutput
Fields the node returns.
| Field | Type | What it contains |
|---|---|---|
fileName | String | Value of Output File Name (empty if that field was left empty). |
data | Binary | The Swiss QR bill in the chosen Format Type, stored under the Output File Name. |
Quick Setup
- Add PDF4me to your n8n workflow. Set Resource to Invoice and Invoice Operations to Create SwissQR Bill.
- In Credential to connect with, select your PDF4me credential or click Create New Credential and paste your API key.
- Set Input Data Type: connect the binary output of a previous node (Binary Data), provide a Base64 string, supply a public URL, or select None for a standalone QR slip.
- Enter the Amount, Currency (Swiss Franc for CHF payments), and IBAN (valid Swiss CH IBAN starting with CH).
- Fill in all Creditor fields: Name, Address Type (Structured is recommended), Address Line 1, Address Line 2, Postal Code, and City.
- Fill in all Ultimate Debtor fields with the paying party's full name and address details.
- Set Reference Type (No Reference is the default), Language Type (English, German, French, or Italian), and Separator Line (Line With Scissor is the Swiss standard).
- Configure Format Type (PDF recommended) and Paging Options (Add Page At End to append a QR bill page to an existing invoice).
- Set Output File Name to
swissqr_bill.pdfand Output Binary Field Name todata. - Connect the output to your next node: email sender, cloud storage upload, database write, and execute the workflow.
Workflow Examples
Workflow ExamplesCommon n8n workflow patterns using Create Swiss QR Bill.
- A Schedule Trigger fires on the first of every month to start the billing run.
- A Google Drive node lists all invoice PDFs in the monthly billing folder, one per customer.
- A Loop Over Items node iterates through each file. For each, a Google Drive Download node retrieves the binary content.
- PDF4me Create Swiss QR Bill appends a compliant QR payment slip to each invoice using the customer's Amount, IBAN, and address mapped from a Google Sheets customer record. Language Type is set to German. Paging Options is Add Page At End.
- A Gmail node sends the QR bill PDF as an email attachment to each customer. The filename uses the customer ID for easy reference.
- A Webhook Trigger fires when an order is confirmed in the e-commerce platform.
- An HTTP Request node generates an invoice PDF from an HTML template using the order data.
- PDF4me Create Swiss QR Bill attaches a compliant QR slip to the invoice PDF. Amount and debtor details are mapped from the webhook payload. Reference Type is set to Creditor Reference for reconciliation. Language Type is French for French-speaking Switzerland.
- A Microsoft SharePoint node uploads the completed QR bill PDF to the Orders archive folder.
- An HTTP Request node updates the order status to Invoice Sent in the CRM system.
- A Schedule Trigger fires every Monday morning to check for overdue subscription accounts.
- A PostgreSQL node queries all accounts with outstanding balances older than 14 days.
- A Loop Over Items node processes each subscriber. PDF4me Create Swiss QR Bill is called with Input Data Type set to None, no background PDF, generating a clean standalone QR bill. Debtor name and address are mapped from the database record. Reference Type is No Reference. Language Type is Italian for Italian-speaking Switzerland.
- A Microsoft Outlook node sends a payment reminder email to each subscriber with the standalone QR bill PDF attached.
- A PostgreSQL node logs the reminder sent timestamp and increments the reminder count for each account.