Read SwissQR Code in Zapier
Read SwissQR Code is a Zapier action by PDF4me that decodes the Swiss QR-bill embedded in a PDF and returns creditor, debtor, IBAN, amount, and reference data as JSON. Use it to auto-rename invoices, match payments to accounting records, or route documents by amount or reference without manual data entry.
What this action does
PDF4me Read SwissQR Code takes one PDF containing a Swiss QR-bill (QR-Rechnung) and returns its structured payment data, inside a Zap. Map the File, and the action returns Doc Text, a JSON string with IBAN, creditor, ultimate creditor, debtor, amount, currency, and reference fields. Parse it with a Code by Zapier step to drive invoice renaming, payment matching, or accounting automation.
Authenticating Your API Request
To access the PDF4me Web API through Zapier, every request must include proper authentication credentials.
Important Facts You Should Not Miss
Doc Text, holding the whole decoded payload as a JSON string. You need a Code by Zapier (Run JavaScript) step to JSON.parse it before mapping individual values like IBAN or ud_Name.cr_ is the creditor, ucr_ is the ultimate creditor (often blank), and ud_ is the ultimate debtor, matching the Swiss Payment Standards (SPC) field naming. cr_Name and ud_Name are the two fields most workflows use.
Set up action panel: only File is required, File Name is optional
Parameters
Required in the Zapier UI: File. File Name is optional.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| File | Required | The PDF containing the Swiss QR-bill to decode. Map from your trigger or a previous step. | 1. File |
| File Name | Optional | Name for the response file. If left blank, the name is picked from the source URL. | invoice.pdf |
Output
The action returns file metadata plus one payload field, Doc Text, a JSON string. Parse it to reach the individual Swiss QR-bill fields listed below the table.
| Field | Type | What it contains |
|---|---|---|
File Name | String | Name of the generated response file, from File Name or picked from the source URL. |
File Extension | String | Extension of the response file, .json. |
Full File Name | String | Complete filename including extension. |
File Alternate Url | String | URL to the generated JSON response file. |
Document Id | String | Unique identifier for this processing run. |
File Size | Number | Size of the response file in bytes. |
Doc Text | String (JSON) | The decoded Swiss QR-bill payload as a JSON string. Parse it to reach IBAN, creditor, debtor, amount, currency, and reference fields. |
Doc Text Fields (after JSON.parse)
| Field | What it contains |
|---|---|
QRType, Version, CodingType | Swiss Payment Standards header data identifying this as an SPC QR payload and its version. |
IBAN | Creditor IBAN the payment settles to. |
cr_Name, cr_StreetOrAddressLine1, cr_PostalCode, cr_City, cr_Country | Creditor (biller) name and address. |
ucr_Name, ucr_StreetOrAddressLine1, ucr_PostalCode, ucr_City, ucr_Country | Ultimate creditor fields, populated only when the creditor differs from the ultimate payee. |
Amount, Currency | Payment amount and currency (CHF or EUR). |
ud_Name, ud_StreetOrAddressLine1, ud_PostalCode, ud_City, ud_Country | Ultimate debtor (payer) name and address. |
ReferenceType, Reference | Reference type (QRR, SCOR, or NON) and the reference number itself. |
UnstructuredMessage, BillingInfo | Free-text payment message and structured billing information, when present on the bill. |
How Do I Set Up Read SwissQR Code in Zapier?
- Add PDF4me as the action app in your Zap and choose Read SwissQR Code.
- Connect your PDF4me account or select an existing connection.
- Map File to the Swiss QR-bill PDF from your trigger or a previous step. Optionally map File Name.
- Test the step and inspect Doc Text in the Data out panel, it is a JSON string.
- Add a Code by Zapier (Run JavaScript) step that receives Doc Text, runs
JSON.parse, and returns the specific field you need (ud_Name,cr_Name,IBAN,Reference, or others). - Map that parsed value into Upload File (for renaming), a Filter or Paths step (for routing), or a spreadsheet/accounting action.
What Is the Swiss QR-Bill and Why Does It Need a Special Reader?
The Swiss QR-bill (QR-Rechnung) is the Swiss Payment Standards format that became the only valid Swiss payment slip on 30 September 2022, replacing the old orange and red payment slips. It encodes creditor, debtor, IBAN, amount, and reference data inside a QR code using the SPC (Swiss Payment Code) structure, a fixed field order that a generic barcode or QR scanner reads as raw text but cannot map to named fields. Read SwissQR Code decodes that SPC structure and returns it as named JSON fields.
Typical Setups
Workflow ExamplesCommon Zapier patterns using Read SwissQR Code.
- A New File in Folder trigger (Dropbox, Google Drive, SharePoint) fires on a new Swiss QR-bill PDF.
- Read SwissQR Code runs with File and File Name mapped from the trigger, returning Doc Text.
- A Code by Zapier step parses Doc Text and returns ud_Name (the debtor).
- Upload File saves the same PDF content with the parsed name so files are searchable by payer.
- An email or folder trigger delivers a Swiss QR-bill PDF.
- Read SwissQR Code extracts Doc Text, then a Code by Zapier step parses IBAN, Amount, and Reference.
- A lookup step in an accounting system (QuickBooks, Xero, or a custom database) matches the Reference to an open invoice.
- A follow-up step marks the invoice as paid and logs the transaction.
- Read SwissQR Code runs on an incoming bill and returns Doc Text.
- A Code by Zapier step parses Amount and ReferenceType.
- A Paths step branches high-value payments to a manual-approval queue and QRR-referenced payments to automated posting.
Practical Tips
Cheat Sheet
| Field | Value |
|---|---|
| Action | Read SwissQR Code |
| File | Required, Swiss QR-bill PDF |
| File Name | Optional |
| Output payload | Doc Text (JSON string) |
| Common parsed fields | IBAN, cr_Name, ud_Name, Amount, Currency, Reference |
| Parse step needed | Code by Zapier, JSON.parse(Doc Text) |
| Counterpart action | Create SwissQR Bill (generates the QR-bill instead of reading it) |
Common Questions
Related Actions
Industry Use Cases & Applications
- Swiss Banking & Financial Services
- Swiss Business & Professional Services
- Swiss E-commerce & Retail
- Swiss Government & Public Sector
- Payment Processing: Read SwissQR Codes for automated payment processing and transaction handling
- Transaction Management: Extract payment data for comprehensive transaction processing and reconciliation
- Compliance Reporting: Feed decoded reference and amount data into internal audit trail records
- Customer Service: Process customer payments and inquiries with automated SwissQR Code recognition
- Invoice Processing: Read SwissQR Codes from invoices for automated payment processing and accounting
- Client Management: Extract payment information for client billing and payment tracking
- Financial Management: Automate SwissQR Code reading for comprehensive financial management
- Document Automation: Streamline business document processing with integrated SwissQR Code reading
- Order Processing: Read SwissQR Codes for automated order processing and payment collection
- Payment Tracking: Extract payment data for comprehensive order and payment tracking
- Customer Experience: Enhance customer payment experience with automated SwissQR Code processing
- Inventory Management: Link payment data with inventory management and order fulfillment
- Public Services: Read SwissQR Codes for government services and public sector payment processing
- Tax Administration: Extract payment data for tax payments and government fee processing
- Records Management: Feed decoded payment data into internal record-keeping for public sector accounting
- Digital Services: Modernize public sector payment processing with SwissQR Code automation