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
| Parameter | Type | Required | Description |
|---|---|---|---|
| value | string | Yes | The 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
| Field | Type | Description |
|---|---|---|
| valid | boolean | Whether the GLN passed format and check digit validation |
| prefix | string | GS1 prefix (2 or 3 digits) |
| prefixCountry | string | Country or organization associated with the GS1 prefix |
| checkDigit | string | GS1 mod-10 check digit (last digit) |
Example Response
{
"valid": true,
"prefix": "590",
"prefixCountry": "Poland",
"checkDigit": "7"
}Example Response — invalid
{
"valid": false
}