{"uid":"cap_S9WciUDpxkf0GCwBW0pf0","slug":"gs1-gln-validator-2f6faa20","name":"GS1 GLN Validator","description":"Validate a GS1 GLN (Global Location Number) — 13 digits with the GS1 mod-10 check digit. GLNs identify trading parties and physical locations (ship-to, bill-to, warehouse) across CPG supply chains and EDI. Returns {valid, gln, checkDigit, reason}. Catches transposed digits a length check misses.","url":"https://2s.io/api/validate/gln","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"required":["gln"],"properties":{"gln":{"type":"string","description":"13-digit GLN (spaces/hyphens allowed)."}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"gln":"0614141999996"}}},"response":{"data":{"ok":true,"items":[{"gln":"0614141999996","input":"0614141999996","valid":true,"reason":null,"checkDigit":"6"}],"total":1,"source":{"url":"https://2s.io","license":"No upstream license — computed by 2s.io","provider":"2s.io GLN validator"}},"meta":{"cost":{"usd":0.001,"tier":0},"caller":"x402","version":null,"endpoint":"validate.gln","settlement":{"txHash":"0xfac33af0a063175e6b3092a67b15636c281fa0c045eda26d8065e4a08655dd42","network":"eip155:8453","success":true}}}},"exampleRequest":{"gln":"0614141999996"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9xG2R8ncmqtU_SdTNj3Ix","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a 13-digit GS1 Global Location Number (GLN) using the GS1 mod-10 check digit algorithm, returning validity status, parsed check digit, and failure reason.","exampleAgentPrompt":"Can you check whether this GLN is valid: 0614141999996? I want to make sure the check digit is correct before we send the EDI 856 shipment notice.","exampleUseCases":null,"resultDescription":"Returns a JSON object with: valid (boolean indicating if the GLN passes GS1 mod-10 check digit validation), gln (the normalized GLN string), checkDigit (the extracted check digit), and reason (a human-readable explanation if validation fails, e.g. transposed digits or wrong length).","failureModes":["Missing or empty gln query parameter — returns validation error","GLN is not exactly 13 digits after stripping spaces/hyphens — returns invalid with reason about length","Check digit does not match GS1 mod-10 calculation — returns valid:false with reason indicating check digit mismatch","Non-numeric characters (other than allowed spaces/hyphens) — returns invalid with reason","Payment not provided or insufficient — 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to verify the structural integrity of a GS1 GLN before using it in EDI transactions, supply chain systems, or trading partner onboarding. It is specifically valuable because it catches transposed-digit errors that a simple length check would miss. Prefer this over manual mod-10 computation or generic barcode validators when working with CPG, retail, or logistics workflows that rely on GS1 standards.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:47:18.874Z","isFirstParty":false}