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 | Conditional | How the source PDF is supplied. None generates a standalone QR bill with no background document. Binary Data reads from a previous n8n node: the most common option. Base64 String accepts encoded file content. URL downloads from a public link. | Binary Data |
| Binary Property Name | Conditional | Name of the binary field from the previous node. Required when Input Data Type is Binary Data. Maps to the output binary field of a prior download or file node. | data |
| Base64 Content | Conditional | Base64-encoded PDF content. Required when Input Data Type is Base64 String. | JVBERi0xLjQK... |
| File URL | Conditional | Public URL to the source PDF file. Required when Input Data Type is URL. | https://example.com/invoice.pdf |
| File Name | Conditional | Filename of the source PDF input. Shown only when Input Data Type is Binary Data, Base64 String, or URL: hidden for None. Include the .pdf extension. | document.pdf |
| Amount | Yes | Payment amount for the Swiss QR bill. Enter without leading zeroes (per the node field description). Must be a positive number with up to two decimal places. | 1000 |
| Currency | Yes | Currency for the QR bill. Only two options accepted: CHF (Swiss Franc, standard for domestic Swiss payments) or EUR (cross-border transactions). | CHF |
| IBAN | Yes | Creditor's Swiss IBAN. Must start with CH followed by 19 digits and be linked to a valid PostFinance or Swiss bank account. An invalid IBAN halts the workflow. | CH0200700110003765824 |
| Creditor Name | Yes | Full name of the creditor company or individual as registered with the bank. Printed on the generated QR bill in the creditor section. | Test AG |
| Creditor Address Type | Yes | Address format for creditor information. Sent as code S (Structured: components stored separately for maximum SPS compliance) or K (Combined, two free-form lines). | Structured (S) |
| Creditor Address Line 1 | No | Street name for the creditor's address. Marked optional in the UI but required for valid Swiss QR bills: always provide it. When Address Type is Structured, enter the street name only. | Test Strasse |
| Creditor Address Line 2 | No | House number or secondary address detail. Used as the second address line when Creditor Address Type is Structured. | 1 |
| Creditor Postal Code | No | Swiss postal code for the creditor's address. Marked optional in the UI but required for valid Swiss QR bills. Must be a 4-digit Swiss postal code matching the creditor city. | 8000 |
| Creditor City | No | Swiss city name for the creditor's address. Marked optional in the UI but required for valid Swiss QR bills. Must correspond to the postal code entered above. | Zurich |
| Ultimate Debtor Name | No | Full name of the party who will pay the bill. Marked optional in the UI but required for valid Swiss QR bills with a known debtor. Appears in the payment section of the printed QR bill. | Test Debt AG |
| Ultimate Debtor Address Type | Yes | Address format for the ultimate debtor. Sent as code S (Structured: recommended for automated Swiss banking) or K (Combined, two free-form lines). | Structured (S) |
| Ultimate Debtor Address Line 1 | No | Street name for the debtor's address. Marked optional in the UI but required for valid Swiss QR bills with a known debtor. | Test Deb Strasse |
| Ultimate Debtor Address Line 2 | No | House number or secondary address line for the debtor. Used as the second line when Ultimate Debtor Address Type is Structured. | 2 |
| Ultimate Debtor Postal Code | No | Swiss postal code for the debtor's address. Marked optional in the UI but required for valid Swiss QR bills with a known debtor. | 8000 |
| Ultimate Debtor City | No | Swiss city name for the debtor's address. Marked optional in the UI but required for valid Swiss QR bills with a known debtor. | Zurich |
| Reference Type | Yes | Sent as code NON (No Reference: simple payments), QRR (QR Reference, 27-digit numeric for PostFinance/Swiss bank reconciliation), or SCOR (Creditor Reference, ISO 11649 for SEPA-compatible cross-border payments). | NON |
| Language Type | Yes | Display language for QR bill labels and printed text. Options: English, German, French, Italian. Choose the language matching the recipient's Swiss region. | English |
| Separator Line | Yes | Visual separator between the invoice body and the QR bill tear-off section. Note the node field name is spelled "seperatorLine". Options: Line With Scissor (Swiss standard), Simple Line, No Line. | Line With Scissor |
| Format Type | Yes | Output file format for the generated QR bill. PDF is recommended for print-ready documents. PNG and JPEG for digital delivery. TIFF for archival quality. Empty or null for raw data output. | PDF |
| Paging Options | Conditional | Controls where the QR bill slip is placed in the output document. Required when Format Type is PDF. Options: First, Last, Add Page At End, Custom. | First |
| Page Number | Conditional | Specific page index for placing the QR bill. Shown and required only when Format Type is PDF and Paging Options is Custom. | 3 |
| Output File Name | No | Filename for the generated Swiss QR bill document. Default value is provided by the node. Include the extension matching your chosen Format Type. | swissqr_bill.pdf |
| Output Binary Field Name | No | Name of the binary field in the n8n output that holds the generated QR bill file. Default is data. Used to reference the file in subsequent workflow nodes. | data |
Advanced Options
All fields inside the Advanced Options collection are optional and provide additional control over the QR bill payload. Add them via Add Option in the node UI.
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
| Field | Type | What it contains |
|---|---|---|
fileName | String | Filename of the generated Swiss QR bill document, for example swissqr_bill.pdf. Map into an upload or email node as the destination filename. |
mimeType | String | MIME type of the output file, for example application/pdf. Useful for content type validation in downstream HTTP or storage nodes. |
fileSize | Number | Size of the generated QR bill file in bytes. Useful for storage planning, bandwidth monitoring, and conditional routing in the workflow. |
success | Boolean | True when the Swiss QR bill was created successfully. False if an error occurred during generation. Use this field to route error handling branches in your workflow. |
message | String | Human-readable status message confirming success or describing the error encountered. Useful for logging and error notification steps. |
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.