validate_gln
Verify a GLN structure by validating the 13-digit format, check digit, and retrieving the issuing country. Ensures the GLN is correctly formed before use in supply chain or EDI.
Instructions
USE THIS to verify a GLN (GS1 Global Location Number — identifies a company/site/location in supply chains and EDI) before relying on it. Checks the 13-digit GS1 mod-10 check digit and returns the GS1 prefix's issuing country. Validates structure only; does not confirm the location is registered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gln | Yes | The 13-digit GLN; spaces and dashes are ignored. |