Skip to content
barcoder

Standards/upn-qr

UPN QR

TypeQR Code
PrimarySI
MentionedSI
Completeness75%high

Overview

UPN QR is the QR code printed on Slovenia's paper payment slip, the univerzalni plačilni nalog (universal payment order, UPN). The Bank Association of Slovenia (Združenje bank Slovenije, ZBS) defines it, and its member banks and savings banks introduced it on 3 April 2017 to replace the OCR line on the older UPN slip 26. The code holds every field of the payment order, so a payer can photograph it in a banking app ("Slikaj in plačaj", snap and pay, in NLB's and Sparkasse's apps) and get a pre-filled transfer to confirm 910.

The payload is plain text: the constant UPNQR followed by 18 more fields separated by line feeds, then a three-digit length total. It is encoded in ISO 8859-2 behind ECI 4, always as QR version 15 with error correction level M, and always printed at the same size in the middle of the slip 12. UPN QR is a national format. It is not the euro area's EPC QR code, so banking apps from other countries generally cannot read it; private converters exist for that reason 18.

History

The OCR-line UPN. Before 2017 the UPN slip carried an OCR line for machine capture. ZBS's 2022 programmer guide notes that this line did not contain all the order's data, so the rest had to be captured optically and converted with special software 4. Banks still describe the OCR-line form: NLB lists its conditions as a payee account in Slovenia, a reference in model 12, and a successful data check of the issuer 12.

The standard (2016). ZBS's working group for UPN drafted the instruction on the form, content and use of UPN QR. Version 1.1, dated 13 October 2016, was approved at the 9th session of ZBS's Payments Committee (Odbor za plačilni promet). Its annex on the QR record structure had been approved at the committee's 2nd correspondence session on 23 June 2016, and the reference rules (version 1.3) on 7 December 2016 2. ZBS published the package on 15 December 2016 22. The technical standard itself is version 1.1 of November 2016; ZBS published an English translation of the same version in October 2021 12.

Launch (3 April 2017). ZBS member banks and savings banks started accepting UPN QR on 3 April 2017. From that day new issuers could only issue the QR form; existing OCR-line slips stayed valid, with migration planned within one year, to 3 April 2018. The banks reserved the right to set an earlier end date once 75% of issuers had switched, with two months' notice 6. Issuers had to have their slips checked by a company authorised by ZBS, through the website upn-qr.si 6.

Slow migration (2017–2018). By the end of 2017 about 30% of issuers had switched, according to Siol.net in February 2018. Telekom Slovenije switched in July 2017; the tax administration (FURS), Pošta Slovenije, RTV and several municipalities had also adopted the code, while large Ljubljana utilities planned to switch in March 2018. ZBS told the paper that no sanctions were planned for issuers that did not switch and that no decision had been taken on extending the deadline 7. No public source found for this article confirms when, or whether, banks stopped accepting OCR-line slips.

Public sector (2019). The Finance Ministry's 2019 rulebook on payment services for budget users lets a budget user issue the UPN form with or without the QR code, and requires an issuer of the QR form to have passed the QR check and to print the code on the slip 8.

End of the verification service (2023). ZBS member banks stopped the free verification of UPN QR codes and of printers on 1 January 2023. ZBS froze the list of verified issuers and printers at 31 December 2022 and published a guide for programmers instead 54.

Technical specification

The QR symbol. Section 5.1 of the technical standard fixes the symbol 1:

Parameter Value
Symbology QR Code (Model 2, per the programmer guide 4)
Version 15 (77 × 77 modules), required whatever the amount of data
Data mode Byte (binary)
Error correction Level M
Character set ISO 8859-2; ECI 000004 is required
Module size 0.42333 mm
Symbol size without border 32.597 × 32.597 mm
Symbol with required white border 35.98333 × 35.98333 mm
Minimum print resolution 600 × 600 dpi
Capacity 411 characters (V15, binary, ECC M, ECI ISO 8859-2)

The two sizes are 77 and 85 modules of 0.42333 mm, so the required white border is four modules on each side; Annex 2 states this as a "data-free space" of at least four modules 1. The programmer guide warns that many open-source libraries pick the QR version themselves or set ECI 26 (UTF-8), which is wrong for UPN QR 4.

The record. Every field from 1 to 20 ends with a line feed (0x0A); an empty field is just the line feed. The table gives each field's maximum length from ZBS's Slovenian annex on the QR record (the English translation of the standard leaves most of the length column blank) 21:

No. Field Max Content rule
1 Leading style 5 Constant UPNQR
2 Payer's IBAN 19 Slovenian IBAN, no spaces
3 Deposit 1 X or empty
4 Withdrawal 1 X or empty
5 Payer's reference 26 Model (4) and reference (up to 22) together, no spaces
6 Payer's name 33 ISO 8859-2; no leading or trailing spaces
7 Payer's street and number 33 As field 6
8 Payer's city 33 As field 6
9 Amount 11 Cents, zero-padded, no sign or decimal point; maximum 999,999,999.99; zero is 00000000000
10 Payment date 10 DD.MM.YYYY
11 Urgent 1 X or empty
12 Purpose code 4 Four capital letters A–Z
13 Purpose of payment 42 ISO 8859-2; no leading or trailing spaces
14 Payment deadline 10 DD.MM.YYYY
15 Recipient's IBAN 34 Any SEPA IBAN, no spaces
16 Recipient's reference 26 As field 5
17 Recipient's name 33 As field 6
18 Recipient's street and number 33 As field 6
19 Recipient's city 33 As field 6
20 Length total 3 Sum of the lengths of fields 1–19 including their line feeds, zero-padded
— Reserve — Empty or spaces only, no line feed

Field 20 is a length check, not a checksum: strlen(N1+'\n') + … + strlen(N19+'\n'), counted in ISO 8859-2 bytes, so č counts as one 24. The reserve may pad the record up to 411 characters; the programmer guide recommends padding it with spaces when a library cannot be forced to version 15 4. The maximum lengths of fields 1 to 19, their 19 line feeds, the three-digit total and its line feed add up to exactly 411 (a local sum of the annex's figures).

Which fields a slip may fill. The instruction distinguishes four uses of the form. "Not allowed" means the field must stay empty 2:

Field Payment by payer Bill from a registered issuer Cash deposit Cash withdrawal
QR code Optional Required Optional Optional
Payer's IBAN Optional Not allowed Not allowed Required
Deposit / Withdrawal Not allowed Not allowed Deposit X Withdrawal X
Payer's reference Optional Not allowed Not allowed Optional
Payer's name and address Required Required (optional for humanitarian slips) Optional Required
Amount Required Required (optional for humanitarian slips) Required Required
Payment date Optional Not allowed Required Required
Urgent Optional Not allowed Not allowed Not allowed
Purpose code, purpose Required Required Required Required
Payment deadline Optional Optional Not allowed Not allowed
Recipient's IBAN Required Required Required Not allowed
Recipient's reference Optional (required for taxes and other public revenue) Required Optional Not allowed
Recipient's name and address Required Required Required Optional

A humanitarian slip with no fixed amount carries eleven zeros in field 9 4.

Worked example. The programmer guide's registered-issuer bill (payer Janez Plačnik, €75.57, purpose code COST, due 5 December 2022, reference SI12 1234567890120) encodes as these 20 lines 4:

UPNQR




Janez Plačnik
Skopušnikova ulica 2
1000 Ljubljana
00000007557


COST
Obveznosti za 11/2022
05.12.2022
SI56192001234567892
SI121234567890120
Prejemnik d.o.o.
Testna ulica 12
1333 Kraj
193

Recounting the Slovenian text in ISO 8859-2 gives 193, the printed total (a local check). On paper the same data is formatted for people: amount ***75,57, IBAN in groups of four, model and reference in separate boxes, all in Courier New bold at 12 characters per inch 41.

References. Fields 5 and 16 take a Slovenian SI reference or an international RF reference 26. An SI reference is SI, a two-digit model and up to 22 characters: at most 20 digits in one to three parts separated by hyphens, each part at most 12 digits (13 in model 12). The model says which parts carry a modulus-11 check digit; the rules list models 00–12, 18, 19, 21, 28, 31, 38, 40, 41, 48, 49, 51, 55, 58 and 99, where model 00 has no check digits and model 99 carries no reference at all 2. An RF reference follows ISO 11649: RF, two MOD 97-10 check digits and up to 21 letters or digits, written without spaces in the code (RF45SBO2010 in the rules' example) 24. Public bodies' references follow annex 1 of the 2019 budget-user rulebook, and the treasury (UJP) changes a wrong model to 00 on paper orders 84. See RF Creditor Reference (ISO 11649).

Purpose codes. Field 12 takes a code from ZBS's list of payment purpose codes, which the instruction describes as summarised from ISO 20022 2. The list of 7 August 2019 has 298 four-letter codes, each with an English ISO name and a Slovenian label, for example COST (costs), ELEC (electricity bill), RENT, TAXS (tax payment), GOVT (payment to government bodies) and OTHR (other) 3. The standard's own examples use CPYR, ADVA and RENT 1.

The paper slip. The form is 210 × 99 mm on white OCR paper: a 60 mm receipt for the payer on the left and a 150 mm payment order on the right, separated by micro-perforation. The QR field sits on the order 63.5 mm from the left edge and is 40 × 39.5 mm. Only print shops that passed a conformity check and appear on ZBS's list may print it, and nothing may be printed on the back 1.

Use cases

Household and business bills. Utilities, telecoms, insurers, municipalities, schools and kindergartens send UPN QR slips; Siol.net named Telekom Slovenije, FURS, Pošta Slovenije, RTV, Triglav and Petrol among the early issuers 7. The payer scans the code in a banking app: Sparkasse's M.Stik reads the QR code and copies the slip's data into a payment order the user can edit and confirm 10, Gorenjska banka's app offers QR scanning under Plačila 11, and NLB's business app Klikpro scans the QR code on a UPN or on a received invoice 9.

Taxes and public revenue. For taxes, contributions, fines and fees the recipient's reference is mandatory 2. Budget users may issue the slip with or without a QR code, and UPN slips for public revenue can be paid by card or mobile wallet at the treasury's cash points 8.

Cash at the counter. The same form serves as a cash deposit order (X in field 3) and a cash withdrawal order (X in field 4) 2. ZBS's 2022 guide also lists payment at an ATM among the uses 4.

Donations. A registered issuer collecting for humanitarian purposes may leave the payer and the amount empty, so one printed slip serves any donor 24.

Invoices without a slip. Since 2023 ZBS has published guidance for issuers who print the QR code on an invoice without the UPN QR form 5; NLB's app scans a QR code "on a UPN or on a received invoice" 9.

Implementations

ZBS distributes a free program for printing UPN QR slips and a guide for programmers 224. No reference library is published by ZBS; the open-source implementations found on GitHub are small:

  • jeancaffou/upn-qr (JavaScript, Vue/Quasar, 16 stars, last push December 2025): a browser generator for UPN QR codes 17.
  • matjaz/upnqr (JavaScript, npm upnqr, 11 stars, last push November 2023): encodes and decodes the payload, including the reserve field 16.
  • DataLinx/php-upn-qr-generator (PHP, MIT, 9 stars, last push June 2025): outputs PNG, SVG or EPS; its minimum required fields are based on what Intesa Sanpaolo Bank Slovenia's Android apps accept 15.
  • hozjanmarko/UpnQR (C#, MIT, 7 stars, last push August 2017) 19.
  • greymag/dart_upn_qr (Dart, 1 star): parses UPN QR content 20.
  • mamashin/upn-epc-qr (Python/Django, 5 stars, last push April 2026): scans a UPN QR code and re-encodes it as an EPC QR code for apps such as Revolut, N26 and Wise; it runs the public converter upn-epc-qr.si 18.

This site's playground. Barcoder's UPN QR generator (upn-qr encoder) follows the standard on the points that make a code scan: the UPNQR header, the field order, a line feed after every field including field 20, the three-digit length total counted in ISO 8859-2 bytes, amounts as 11-digit cents, DD.MM.YYYY dates, and QR version 15, level M, byte mode with ECI 4 12. Its 16 purpose codes all appear in ZBS's list 3. It departs from the rules in places a bank's validator may notice 2:

  • The RF choice writes the literal RF00 and appends the typed reference, so the check digits are always 00 and the result is not a valid ISO 11649 reference; a real one needs computed MOD 97-10 digits (RF45SBO2010, not RF00SBO2010).
  • With no reference typed it writes a bare SI00. Model 00 needs at least one part; an order without a reference should leave field 16 empty or use model 99.
  • Its labels for models SI02, SI11, SI12 and SI99 do not match the rules (SI12, for example, is one part of up to 13 digits with a check digit, and SI99 has no content).
  • It does not cap the amount at 999,999,999.99, accepts a payer IBAN of up to 34 characters where the standard allows a 19-character Slovenian IBAN, and does not strip leading or trailing spaces.

Comparison

UPN QR and EPC QR. The European Payments Council's EPC QR code (BCD header) is the cross-border alternative. Both are line-separated text in a QR code with error correction level M, but EPC QR allows any version up to 13 and 331 bytes and offers eight character sets including UTF-8, while UPN QR fixes version 15, 411 characters and ISO 8859-2 131. EPC QR covers only a credit transfer to a beneficiary; UPN QR also carries the payer's name and address, cash deposit and withdrawal flags, a payment date, a deadline and an urgency flag, mirroring the paper form 132. A Slovenian biller printing for Slovenian payers uses UPN QR; a code meant for payers with foreign banking apps needs EPC QR, which is why the UPN-to-EPC converters exist 18.

UPN QR and HUB3. Croatia's HUB3 slip solves the same problem with a PDF417 barcode instead of a QR code. The HUB 3A specification (version 6, September 2022) fixes error correction level 4, nine data columns and binary encoding, and caps the 14 fields at 273 characters in total 14. Both carry a reference model and a four-letter purpose code; UPN QR additionally carries the payer's account and the cash-order flags 141.

UPN QR and Flik. In Slovenia UPN QR is a bill code paid by credit transfer. At a shop till the QR code is usually a Flik code instead (see the Slovenia payments overview).

Fun facts

The English translation of the standard translated the example texts but kept the Slovenian length totals. Its main example sums to 249 bytes in English but prints 252, which is the correct total for the Slovenian original; the programmer guide's English example likewise sums to 195 but prints 193 (local recounts of the documents' examples) 124.

The verification site named in the 2017 launch notice, upn-qr.si, no longer belongs to the scheme: in November 2026 it served an unrelated blog about cars, cosmetics and home furnishing 621.

Status

Active. The technical standard is still version 1.1, and ZBS's payments page still lists the 2016 instruction, the purpose code list, the free printing program and the 2022 programmer guide as current documents 221. Since 1 January 2023 banks no longer verify issuers' codes, so conformity is the issuer's responsibility 5. Banking apps continue to offer scanning: NLB's Klikpro guide, published in February 2026, describes "Slikaj in plačaj" for UPN QR codes 9.

Public data is thin. ZBS publishes no adoption or volume figures for UPN QR, the last public adoption figure found is the roughly 30% of issuers reported for the end of 2017 7, and no source found confirms the date on which banks stopped accepting OCR-line slips.

Sources

Deployments

Countries whose payments overview mentions this standard:

source · content/standards/upn-qr/index.md