GLN

GET/v0/gln

Validates a Global Location Number (GLN) — the 13-digit GS1 identifier used to identify physical locations, legal entities, and functions in global supply chains. The check digit is verified using the standard GS1 mod-10 algorithm (same as EAN-13). The GS1 prefix is resolved to identify the issuing country or organization. Spaces and hyphens are stripped automatically.

Try it

Query Parameters

ParameterTypeRequiredDescription
valuestringYesThe 13-digit GLN (e.g. 5901234123457)

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.isvalid.dev/v0/gln?value=5901234123457"

Response Fields

FieldTypeDescription
validbooleanWhether the GLN passed format and check digit validation
prefixstringGS1 prefix (2 or 3 digits)
prefixCountrystringCountry or organization associated with the GS1 prefix
checkDigitstringGS1 mod-10 check digit (last digit)

Example Response

{
  "valid": true,
  "prefix": "590",
  "prefixCountry": "Poland",
  "checkDigit": "7"
}

Example Response — invalid

{
  "valid": false
}