The parts of a GS1 Digital Link
Every example on this page uses the product number 09506000134352, a demonstration number GS1 uses in its own documents, and the address example.com. Put your own number and your own address in their place.
| https://example.com | The address. Yours or your provider's. It decides where a phone lands. |
|---|---|
| /01/09506000134352 | The product number (GTIN), always 14 digits, after its identifier 01. |
| /10/LOT42 | Optional. The batch or lot, after its identifier 10. |
| /21/000123 | Optional. The serial number of one item, after its identifier 21. |
| ?17=271231 | Optional. Other data, here an expiry date of 31 December 2027. |
The numbers 01, 10, 21 and 17 are GS1 application identifiers. The full list for packaging, with the format of each.
A product, and nothing else
https://example.com/01/09506000134352
This is the form most consumer packs print. The same code goes on every unit, a till reads the product number from it, and a phone opens the page you point it at.
A product and its batch
https://example.com/01/09506000134352/10/LOT42
The code now changes with every production run, so it has to be printed on the line and not with the artwork. In return, a recall or a notice can be aimed at one batch.
One single item, with a serial number
https://example.com/01/09506000134352/21/000123
Every unit carries a different code. This is for goods where each item matters: a guarantee, a proof of authenticity, a returnable asset.
Batch, serial number and expiry date together
https://example.com/01/09506000134352/10/LOT42/21/000123?17=271231
The batch comes before the serial number, and the expiry date sits after the question mark. Read as plain GS1 data, this link says (01)09506000134352(10)LOT42(21)000123(17)271231.
A best before date and a variant
https://example.com/01/09506000134352/22/2A/10/LOT42?15=270630
Identifier 22 is the consumer product variant, used when a pack changes in a way shoppers do not see as a new product. It comes first among the qualifiers. Identifier 15 is a best before date, here 30 June 2027.
A weighed item
https://example.com/01/09506000134352/10/LOT42?3103=000750
Identifier 3103 is the net weight in kilograms with three decimal places, so 000750 is 0.750 kg.
A pallet and a location
https://example.com/00/095060001343521007 identifies one shipping unit by its SSCC, an 18 digit number.
https://example.com/414/9506000134376 identifies a physical place, such as a warehouse, by its GLN, a 13 digit number.
Six mistakes that break a link
| Mistake | What it looks like | What to do |
|---|---|---|
| The GTIN has 13 digits | /01/9506000134352 | Write 14 digits: put a zero in front. |
| The check digit is wrong | /01/09506000134353 | The last digit is worked out from the others. Check the number you were issued. |
| The qualifiers are in the wrong order | /01/09506000134352/21/000123/10/LOT42 | Batch (10) comes before serial number (21). |
| The expiry date is in the path | /01/09506000134352/17/271231 | Dates go after the question mark: ?17=271231. |
| The date is written day first | ?17=311227 | The order is year, month, day. This one is valid, and means 27 December 2031. |
| A batch number holds a slash | /10/LOT/42 | Write the slash as %2F so it is not read as a new part: /10/LOT%2F42. |
The date mistake is the dangerous one
A date written day first usually still has the right shape, so no tool can know it is wrong. Read every date back as year, month, day before you print.
What the link does when it is scanned
A phone camera treats the code as a web address and opens it. What the shopper sees is whatever that address answers with, and the service that answers is called a resolver. Because the answer is decided at the moment of the scan, the page can change after the pack is printed.
A till that is set up for 2D barcodes does not open anything. It reads the product number out of the link and looks up the price, as it does with a striped barcode.
Sources
Questions and answers
Does a GS1 Digital Link have to use the id.gs1.org address?
No. The data layout is what makes it a GS1 Digital Link, and the address in front can be your own domain or your provider's. The same data on id.gs1.org is called the canonical form, and it is used to compare two links.
Can I leave out the batch and serial number?
Yes. The product number alone is a complete GS1 Digital Link, and it is what most consumer packs print, because one printed code then serves every production run.
Why must the GTIN have 14 digits?
Inside a GS1 Digital Link the product number is always written with 14 digits. A 13 digit number gets one zero in front and a 12 digit number gets two. The check digit stays the same.
Where does the expiry date go?
After the question mark, as 17 followed by the date in YYMMDD. It is data about the item, not part of what identifies it, so it never goes in the path.
How do I test a link before I print it?
Paste it into the GS1 Digital Link checker and then scan a printed proof with a phone and, if you can, at a till.