# AgentShield GTIN Check Digit Validator

> AgentShield GTIN 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-23).

Computes and validates the GS1 check digit for a GTIN-8, GTIN-12, GTIN-13, or GTIN-14 barcode number

## Facts

- Endpoint: GET https://agentshield.live/gtin?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshield-gtin-check-digit-validator-84bf0691
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-n-nUL_a3tcOTmhZfknES

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-gtin-check-digit-validator-84bf0691
```

Example prompt: Can you validate the GS1 check digit for this barcode: 012345678905?

## When to prefer this

Use this endpoint when you have a raw GTIN code (barcode number) and need to verify or compute its GS1 check digit. It is focused solely on the mathematical checksum — not product lookup, pricing, or retailer data. Prefer this over general product databases when you only need digit validation without any product metadata.

## Known failure modes

- Invalid or non-numeric input returns an error response
- GTIN length not matching any supported format (8, 12, 13, or 14 digits) returns an error
- Missing required 'code' query parameter returns a 400 error
- Network timeout or service unavailability returns a 5xx error

## How this service works

Call when an agent has a GTIN-8, GTIN-12, GTIN-13, or GTIN-14 and needs the GS1 check digit. Not a product or a price.

## Output

Returns the GS1 check digit result for the submitted GTIN code, indicating whether the check digit is valid and what the correct check digit is.

## 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": "GTIN-8, GTIN-12, GTIN-13, or GTIN-14 digits."
      }
     }
    }
   },
   "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,
  "length": 13,
  "check_digit": "3"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshield-gtin-check-digit-validator-84bf0691/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)
