Formancy Report

Formancy Report for the Swiss QR-bill

Swiss QR-bills from your own data, checked against SIX's rules

Formancy Report renders your invoices as PDFs, with the receipt and the payment part, often called the QR payment slip, at the foot of the last page, as SIX lays them out. Your application hands over the data; before the PDF is made, the account, the reference and every text are checked against SIX's rules, and the amount is computed exactly from the invoice's values, in the samples its total.

The QR-bill can be tried online in the Studio, and is in the newest release.

What it does

  • SIX's rules, in one place

    The account, the reference and every text are checked against SIX's Swiss Implementation Guidelines for the QR-bill, versions 2.3 and 2.4: an IBAN or QR-IBAN of Switzerland or Liechtenstein, a QR reference or a creditor reference, each with its check digits, the characters and lengths each field allows, and which account goes with which reference and currency. The same checks hold what the report says and what the data brings.

  • A typo caught before the PDF

    A mistyped IBAN is refused when the report is validated, before anything renders, naming the field and the rule it breaks. A text that comes from the data is checked by the runtime under the same rules before the PDF is made. No message quotes the value itself: never a name, an address or an account.

  • The amount, exact to the centime

    The bill's amount is an expression over the report's values; in the sample invoice, its total: computed exactly, rounded once to the centime, and never passed through a JavaScript number. An amount that is not exact to the centime is refused, not rounded. A bill without an amount prints the blank field the payer fills in.

  • SIX's layout, at the foot of the last page

    The receipt and the payment part stand at the size and place SIX prescribes, across the foot of the last A4 page, or on a page of their own when the last one has no room left. The Swiss QR Code carries the Swiss cross, and the lines to cut along carry the scissors or the instruction to separate before paying in. The slip is set in Liberation Sans, one of the fonts SIX allows, which the renderer ships.

  • Proved on the PDF it produced

    The tests read the code back from the pixels of the page PDF.js draws from the PDF produced, and decode it with ZXing: SIX's own examples byte for byte, and the sample invoices down to the amount they print. Every heading and value of the slip is read back where SIX puts it.

  • In the bill's language

    The slip's headings are SIX's own words, in German, French, Italian, Romansh or English, and the slip may be in a different language from the invoice.

Samples: one invoice in German, French, Italian and English

Each sample bills the same work in its own language's words, with its amounts and dates as the runtime formats them for its locale, de-CH, fr-CH, it-CH or en-CH, and its payment part in its language. A script drew each picture from the PDF the renderer produced. The firms and their customers are invented, and the account is SIX's example QR-IBAN, which no bank holds.

The sample in English, an Invoice under the firm's mark: line items down to Total CHF 1'416.52, and across the foot of the page the Receipt and the Payment part with its Swiss QR Code, both for CHF 1 416.52
English, from a Basel firm that invoices in English.
The sample in German, a Rechnung under the firm's mark: line items down to Total CHF 1'416.52, and across the foot of the page the Empfangsschein and the Zahlteil with its Swiss QR Code, both for CHF 1 416.52
German, for German-speaking Switzerland. In the Studio, it is the Invoice starter.
The sample in French, a Facture under the firm's mark: line items down to Total 1'416.52 CHF, and across the foot of the page the Récépissé and the Section paiement with its Swiss QR Code, both for CHF 1 416.52
French, for French-speaking Switzerland.
The sample in Italian, a Fattura under the firm's mark: line items down to Totale CHF 1416.52, and across the foot of the page the Ricevuta and the Sezione pagamento with its Swiss QR Code, both for CHF 1 416.52
Italian, for Ticino.

Try it

In the Studio, the German sample is the Invoice starter: choose it under Starter, and the preview shows the PDF with its payment part as the renderer produced it. The getting-started guide installs 0.3.0, the newest release, which prints a report with a payment part. The documentation on GitHub says how a report carries its QR-bill, and why the slip is printed as it is.

What it does not do

For a SEPA credit transfer in euro: the EPC QR code

Status

In 0.3.0, the newest release, in the source on GitHub and online in the Studio (as of 22 November 2026).

Formancy Report is source-available: the source is public, and running it in production needs a paid licence.

The terms, on the product page