Skip to main content
SubscriptionFlow Docs
Billing

Add QR Codes to Invoice PDFs (Including ZATCA and Swiss QR-bill)

Updated

SubscriptionFlow can print a QR code on your invoice PDFs. There are three kinds:

QR code Use it for
QR Code A general QR code with the invoice details you choose, for example to let customers open the payment page
ZATCA QR Code Saudi Arabia: the QR code ZATCA requires on simplified tax invoices (e-invoicing phase 1)
SWISS QR Code Switzerland: the payment part of a Swiss QR-bill, so customers can pay by scanning

1. Configure the QR code

  1. Go to
    Settings › Preferences › Invoices
    and open Advance Settings.
  2. Under QR Code, choose the tab: QR Code, ZATCA QR Code or SWISS QR Code.
  3. Select Enable QR Code parsing ? (or Enable Zatca QR Code parsing ? / Enable Swiss QR Code parsing ?).
  4. Map what the QR code contains:
    • Currency: All Currencies, or a currency if invoices in different currencies need different values. Click + next to the currency to add another currency group.
    • For each entry, type its Name (the key), and either a fixed Value or click Field to pick an invoice or customer field instead. Click + to add more entries.
  5. Click Save Changes.

ZATCA QR Code settings with the field mapping

Use key names in PascalCase, with each word starting with a capital letter and no spaces or underscores, for example InvoiceTotalAmount.

2. Add the QR code to your invoice template

Add the matching placeholder to your invoice PDF template where the QR code should appear:

QR code Placeholder
QR Code {{Invoice_QR_Code}}
ZATCA QR Code {{Invoice_QR_Code_ZATCA}}
SWISS QR Code {{Invoice_QR_Code_SWISS}}

ZATCA QR code: required keys

The ZATCA QR code encodes five values. Map each of these keys:

Key Map it to
Seller Your business's registered name
TaxNumber Your VAT registration number
InvoiceDate The invoice date field
InvoiceTotalAmount The invoice total (including VAT) field
InvoiceTaxAmount The invoice VAT amount field

The QR code is only generated when all five are mapped.

Swiss QR-bill: setup

The Swiss QR-bill needs your default currency to be Swiss Franc (CHF) or Euro (EUR); otherwise the tab is disabled. Map these keys:

  • QRIban: your QR-IBAN, and BESRID: your bank's BESR-ID.
  • QRType: the reference type. The default is a classic QR-IBAN reference.
  • The creditor address: InvoiceCreditorName, InvoiceCreditorStreet, InvoiceCreditorBuildingNumber, InvoiceCreditorPostalCode, InvoiceCreditorCity and InvoiceCreditorCountry (2-letter country code). Older InvoiceCreditorAddr1 and InvoiceCreditorAddr2 values are converted automatically, and missing details are taken from your Business Profile.
  • InvoiceAdditionalInfo: optional extra information.

From 14 November 2026, EUR invoices can't use a QR reference (QRType QRR). Use SCOR or NON with a regular IBAN instead.

Was this article helpful?0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.