This API was developed for personal use, but modified and later released for public use. It is an unofficial application with the sole purpose of simplifying QR code generation for universal payment ordes (https://upn-qr.si). You can read the specification here. The application does not keep any long-term logs.
Because The Bank Association of Slovenia prohibits the printing and use of UPN-QR codes on bills by any unauthorized party, you must be authorized in order to use this application to generate a QR code and print it.
GET /api/qrcode
image/png
image if successful (OK 200), else returns the following JSON { ok: false, errors: String[] }
where errors
is an array of descriptive strings.
<!-- Meant to be used as direct image source, for example --> <img src="https://upn-qr.gitapp.si/api/qrcode?client_name=Dobri človek&client_address=Kristanova ulica 1&client_city=1000 Ljubljana&amount=00000001000&deadline=01.02.2034&payment_purpose=Donacija&iban=SI56021400015556761&reference=SI99&issuer_name=Slovenska Karitas&issuer_address=Kristanova ulica 1&issuer_city=1000 Ljubljana">
Following the specification from official documentation - NavodilaZaProgramerjeUPNQR.pdf, section 4. Vsebina kode QR
.
client_name
^[a-zA-Z0-9ČŠŽĐ'](?:[A-Z0-9 ČŠŽĐ']{0,31}[A-Z0-9ČŠŽĐ'])?$/i
client_address
^[a-zA-Z0-9ČŠŽĐ](?:[A-Z0-9 ČŠŽĐ]{0,31}[A-Z0-9ČŠŽĐ])?$/i
client_city
^[a-zA-Z0-9ČŠŽĐ](?:[A-Z0-9 ČŠŽĐ]{0,31}[A-Z0-9ČŠŽĐ])?$/i
amount
^(?=.{11}$)[0]{1,11}[0-9]{0,11}$
deadline
^[0-9]{2}\.[0-9]{2}\.[0-9]{4}$
purpose_code
^[A-Z]{4}$
payment_purpose
^[A-Z0-9ČŠŽĐ](?:[A-Z0-9 ČŠŽĐ\-:;_'"]{0,40}[A-Z0-9ČŠŽĐ])?$
iban
^[A-Z]{2}\d{17}$
reference
^[A-Z]{2}[0-9\-]{1,24}$
issuer_name
^[a-zA-Z0-9ČŠŽĐ.'](?:[A-Z0-9 ČŠŽĐ.'\-]{0,31}[A-Z0-9ČŠŽĐ.'])?$/i
issuer_address
^[a-zA-Z0-9ČŠŽĐ](?:[A-Z0-9 ČŠŽĐ\-.]{0,31}[A-Z0-9ČŠŽĐ])?$/i
issuer_city
^[a-zA-Z0-9ČŠŽĐ](?:[A-Z0-9 ČŠŽĐ]{0,31}[A-Z0-9ČŠŽĐ])?$/i