GS1 Digital Link Server v1.6.0

✓ Server Status: Online | Standard: GS1 Digital Link v1.6.0

About

This server implements the GS1 Digital Link v1.6.0 standard for Digital Product Passports. It provides intelligent routing based on the client device type, supporting both barcode scanners and consumer smartphones.

How It Works

GS1 Digital Link-aware Scanners: Extract GTIN, batch, serial from URI path
Consumer Devices: 302 redirect to product Digital Product Passport page

URL Format (GS1 Digital Link v1.6.0)

Path Structure:
/01/{gtin}/10/{batch}/21/{serial}

Full URL Example:
https://dev.id.codes/01/05012345678900/10/LOT2024A/21/SN12345?17=261231

Application Identifiers (AI Codes)

AINameLocationFormat
01GTINPath14 digits
22CPV (optional)PathMax 20 chars
10Batch/LotPathMax 20 chars
21SerialPathMax 20 chars
17Expiry DateQueryYYMMDD
11Production DateQueryYYMMDD
15Best BeforeQueryYYMMDD
422Country of OriginQuery3 digits
Note: Text shortcuts (gtin, lot, ser) were removed from the GS1 standard in November 2022. This server uses ONLY numeric AI codes. Legacy /gtin/ URLs are redirected to the correct format for backward compatibility.

Example URLs by Industry

Fashion (GTIN + Batch):
/01/05012345678900/10/LOT2024A

Food (+ Expiry):
/01/05012345678900/10/LOT2024A?17=261231

Pharma (+ Serial + Expiry):
/01/05012345678900/10/LOT2024A/21/SN12345?17=261231

Testing

Test with curl (simulates barcode scanner):
curl http://localhost:5000/01/05012345678900/10/LOT2024A

Test with browser (simulates consumer):
http://localhost:5000/01/05012345678900/10/LOT2024A

Endpoints