EPC QRLine-delimited text

EPC QR code — the euro credit transfer written one element to a line

A request to be paid, printed on an invoice. The is what the European Payments Council — the industry body that writes the scheme rulebooks — sets out the format for putting a euro payment on paper: the payee prints a square, the payer scans it with a banking app, and the app fills in a SEPA Credit Transfer (SCT) that the payer then checks and approves. Germany's banks sell the identical artefact under the brand name GiroCode, which is why one format answers to two names and neither of them is wrong.

DIRECTION: From the payee to the payer, by being looked at. The code is printed on an invoice, a bill or a poster, or drawn on a screen; the payer's banking app reads it, fills a credit-transfer screen from it and asks the payer to approve. Only then does an ordinary SEPA Credit Transfer leave the payer's payment service provider for whichever clearing and settlement mechanism the two providers use. Nothing in this string is a message between banks and nothing in it moves money: no bank ever receives the payload, because by the time anything reaches the scheme the square has already become an ordinary payment instruction inside the payer's own bank.

WHO IS INVOLVED

  • The European Payments CouncilPublishes the guideline that fixes which elements exist and the order they are written in. It is the scheme manager rather than an operator: it prints no codes, runs no app that reads them, and never sees a payload. What it owns is the order of the lines — which, on this format, is almost the whole specification.
  • The payee (the beneficiary)Writes the code, or has invoicing software write it, and chooses every value in it including the name that will be displayed as their own. That makes the code evidence of what was asked for and never evidence of who asked.
  • The payer, through their banking appScans the square. The app splits the text on its line breaks, reads each element by counting lines, fills a confirmation screen and asks for approval. This is the only party that can start the payment and the last one that can stop it.
  • The payer's payment service providerCarries out what the payer approved, as an ordinary Single Euro Payments Area (SEPA) Credit Transfer under the scheme rulebook and its implementation guidelines. It receives a payment instruction rather than a QR code, and applies the same validation, screening and scheme rules it would to a payment typed in by hand.

WHAT TO UNDERSTAND ABOUT IT

It exists because of what an invoice is. A payer copying an account number and a reference off a sheet of paper mistypes one of them sooner or later, and the payment then arrives at the wrong account or arrives unmatched at the right one. carries the payee's own values, so nothing is retyped.

Now read it against the two other QR records on this site, because it answers the same question in the opposite way. Brazil's and Singapore's are built on EMVCo's merchant-presented payload, where every field carries a two-digit identifier and a two-digit length, so a parser walks the string and each field announces what it is and where it stops. This format announces nothing. It is a fixed run of elements in a fixed order, one to a line, and a field is whatever is on its line — there is not one identifier and not one length anywhere in it.

One consequence is worth holding before any field below. An element with nothing in it is still sent, as an empty line. Deleting that blank line does not tidy the payload; it moves every element after it up by one, and the reader on the far side has no way at all to notice.

Version + profile: EPC QR is a line-delimited payload: one element per line, in the order the publisher's guidelines print them, with an element that has no content still sent as an empty line so everything after it keeps its place. So the line order is the specification, and a version that adds or removes an element moves every line below it — a reader counting to yesterday's ordinal gets a different field rather than an error. Two more things this page's columns cannot say on their own. Where a length is shown without a picture clause it is a maximum and not a width, because a line ends at the line break and nothing is padded out to fill it. And validity here is a rule about combinations rather than about fields: the guidelines forbid some pairings of account and reference outright, so a payload whose every line is individually well-formed can still be one no bank will accept.

2 MESSAGES