Skip to main content
GET
A compressed GS1 Digital Link carries the GTIN, its serial number and other Application Identifiers in one short path segment, in the EPC binary encoding of the GS1 EPC Tag Data Standard 2.3. The code generator writes these links when compression is EPC_HEX or EPC_BASE64. The resolver decodes the segment into the uncompressed link and resolves it exactly like GET /01/{gtin}: same query parameters, headers, redirects, linkset and status codes. For example, these three requests get the same answer:
And these two, as a DSGTIN+ carries a date:

Path parameters

eh followed by the EPC in hexadecimal (case-insensitive), or ex followed by the EPC in Base64url (A-Z, a-z, 0-9, -, _, no padding). 3 to 1024 characters in total. A trailing slash is ignored.

Supported EPC schemes

Every scheme carries a GTIN and a serial number (AI 21). The filter value and the hostname encoded in the EPC are ignored: the link resolves on the host it was scanned on.
  • The consumer product variant (22), lot (10), serial (21) and 235 become the key qualifiers of the uncompressed link, in that order. They are what the linkset anchor shows and what a redirect to the brand’s custom domain uses.
  • Every other Application Identifier, the date of a DSGTIN+ included, becomes a query parameter placed before the scan’s own query string.

Responses

The same as GET /01/{gtin}. A segment that does not decode is 400 Bad Request with INVALID_GS1_DIGITAL_LINK:
  • a character outside the alphabet, or a segment shorter than 3 or longer than 1024 characters,
  • a header other than those listed above,
  • an Application Identifier the EPC encoding does not know, or data left after the last one (other than zero padding),
  • the same Application Identifier twice with different values,
  • a decoded link that is not a valid GS1 Digital Link, for example a GTIN with a wrong check digit.