]> pere.pagekite.me Git - homepage.git/blobdiff - blog/data/2013-02-12-qr-invoice.txt
Finpuss.
[homepage.git] / blog / data / 2013-02-12-qr-invoice.txt
index 2dde2489548d4a373fb3aaa275db03aca21d72e3..3fc6ea02b589b7a899745fec1a84899f2689eaf4 100644 (file)
@@ -2,15 +2,17 @@ Title: "Electronic" paper invoices - using vCard in a QR code
 Tags: english, standard
 Date: 2013-02-12 10:30
 
-Here in Norway, electronic invoices are spreading, and the solution
-promoted by the Norwegian government is not really decentralised and
-require that invoices are sent through one of the approved
+<p>Here in Norway, electronic invoices are spreading, and the
+<a href="http://www.anskaffelser.no/e-handel/faktura">solution promoted
+by the Norwegian government</a> require that invoices are sent through
+one of the approved facilitators, and it is not possible to send
+electronic invoices without an agreement with one of these
 facilitators.  This seem like a needless limitation to be able to
 transfer invoice information between buyers and sellers.  My preferred
 solution would be to just transfer the invoice information directly
 between seller and buyer, for example using SMTP, or some HTTP based
 protocol like REST or SOAP.  But this might also be overkill, as the
-"electronic" information can be transfered using paper invoices too,
+"electronic" information can be transferred using paper invoices too,
 using a simple bar code.  My bar code encoding of choice would be QR
 codes, as this encoding can be read by any smart phone out there.  The
 content of the code could be anything, but I would go with
@@ -28,6 +30,8 @@ fields:</p>
 <p><pre>
 X-INVOICE-NUMBER:1
 X-INVOICE-AMOUNT:NOK1000.00
+X-INVOICE-KID:123412341234
+X-INVOICE-MSG:Donation to Debian Edu
 X-BANK-ACCOUNT-NUMBER:16040884339
 X-BANK-IBAN-NUMBER:NO8516040884339
 X-BANK-SWIFT-NUMBER:DNBANOKKXXX
@@ -36,9 +40,11 @@ X-BANK-SWIFT-NUMBER:DNBANOKKXXX
 <p>The X-BANK-ACCOUNT-NUMBER field was proposed in a stackoverflow
 answer regarding
 <a href="http://stackoverflow.com/questions/10045664/storing-bank-account-in-vcard-file">how
-to put bank account information into a vCard</a>.</p>
+to put bank account information into a vCard</a>.  For payments in
+Norway, either X-INVOICE-KID (payment ID) or X-INVOICE-MSG could be
+used to pass on information to the seller when paying the invoice.</p>
 
-The complete vCard could look like this:
+<p>The complete vCard could look like this:</p>
 
 <p><pre>
 BEGIN:VCARD
@@ -50,6 +56,7 @@ EMAIL;PREF;INTERNET:sdl-styret@rt.nuug.no
 REV:20130212T095000Z
 X-INVOICE-NUMBER:1
 X-INVOICE-AMOUNT:NOK1000.00
+X-INVOICE-MSG:Donation to Debian Edu
 X-BANK-ACCOUNT-NUMBER:16040884339
 X-BANK-IBAN-NUMBER:NO8516040884339
 X-BANK-SWIFT-NUMBER:DNBANOKKXXX
@@ -69,3 +76,6 @@ system.</p>
 vCard reader, so those parts would have to go directly into a system
 handling invoices.  I am a bit unsure how vCards without name parts
 are handled, but a simple test indicate that this work just fine.</p>
+
+<p><strong>Update 2013-02-12 11:30</strong>: Added KID to the proposal
+based on feedback from Sturle Sunde.</p>