# AgentShield GLN Check Digit Validator

> AgentShield GLN Check Digit Validator is a paid API for AI agents from agentshield.live, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-20).

Computes and validates the GS1 check digit for a 13-digit Global Location Number (GLN)

## Facts

- Endpoint: GET https://agentshield.live/gln?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshield-gln-check-digit-validator-129da0b6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4A-f4FiGwnm3lNxH4s2Rk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentshield-gln-check-digit-validator-129da0b6
```

Example prompt: Can you check whether the GLN 1234567890128 has a valid GS1 check digit and tell me what the check digit should be?

## When to prefer this

Use this endpoint when you have a 13-digit GLN and need to verify or compute its GS1 check digit according to the MOD-10 algorithm. It is not a registry lookup and will not confirm whether a GLN is assigned to a real location or company — choose this purely for checksum validation.

## Known failure modes

- Input code is not exactly 13 digits — may return an error or invalid result
- Non-numeric characters in the GLN cause a validation failure
- Missing 'code' query parameter results in a bad request response
- The endpoint does not confirm whether the GLN is registered or belongs to a real company

## How this service works

Call when an agent has a 13-digit GLN and needs the GS1 check digit. Does not confirm a location or a company.

## Output

Returns a JSON object with three fields: 'valid' (boolean indicating whether the check digit is correct), 'known' (boolean), and 'check_digit' (string with the expected check digit character for the provided 13-digit GLN).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "13-digit GLN."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "known": true,
  "valid": true,
  "check_digit": "3"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshield-gln-check-digit-validator-129da0b6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshield.live](https://www.zero.xyz/host/agentshield.live/llms.txt)
