Accept a URL string; return the structured GS1 Digital Link components (GTIN, lot, expiry, serial, plus any other AIs found in the path). Returns is_valid: false when the URL is not a recognisable Digital Link rather than 4xx-erroring — callers can use a single endpoint to triage arbitrary scanned URLs.
Documentation Index
Fetch the complete documentation index at: https://docs.closient.com/llms.txt
Use this file to discover all available pages before exploring further.
Request body for the parse endpoint.
The candidate URL to parse. Should be a GS1 Digital Link URI of the form https://{host}/01/{gtin}[/10/{lot}][/21/{serial}][?17={expiry}].
1 - 4096"https://gtin1.com/01/00614141123452/10/LOT1/21/SN1?17=261231"
OK
Response body for the parse endpoint.
is_valid is True when the input is a recognisable GS1 Digital Link
(carries a /01/{gtin} segment with a valid Mod-10 GTIN) and False
otherwise. When False, all the structured fields are null and raw_ais
is empty — the caller should fall back to treating the URL as an
arbitrary link rather than a GS1-aware payload.
True when the URL parses as a conformant GS1 Digital Link with a valid GTIN.
The input URL, echoed back unchanged.
The normalized GTIN-14 if a /01/ segment is present and Mod-10-valid; otherwise null.
"00614141123452"
GS1 AI 10 (lot/batch) if present in the path.
GS1 AI 17 (expiry, YYMMDD) if present in the path. Note: GS1 spec allows AI 17 on the query string too — this v1 endpoint reads path-only per the underlying parser.
"261231"
GS1 AI 21 (serial) if present in the path.
Every AI/value pair found in the path, including any non-first-class AIs not surfaced as named fields above.