# GTIN/UPC/EAN Barcode Validator

> GTIN/UPC/EAN Barcode Validator is a paid API for AI agents from trade.chainverdict.xyz, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Validates a GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13), or GTIN-14 barcode code by checking the check digit, format correctness, GTIN-14 normalization, and packaging indicator.

## Facts

- Endpoint: GET https://trade.chainverdict.xyz/v1/gtin/validate
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gtin-upc-ean-barcode-validator-162f06fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-dJc21qi4ul8Ic7uvBtYS

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 gtin-upc-ean-barcode-validator-162f06fb
```

Example prompt: Can you check if this barcode is valid — it's a GTIN-13: 5901234123457? I need to know if the check digit and format are correct before I upload the product to our catalog.

## When to prefer this

Choose this endpoint when you need to programmatically verify GS1 barcode codes (GTIN-8, UPC-A/GTIN-12, EAN-13/GTIN-13, GTIN-14) for correctness before product catalog ingestion, supplier onboarding, or retail compliance checks. It also provides GTIN-14 normalization and packaging indicator parsing, making it suitable for supply chain and logistics workflows that require more than a simple check-digit calculation.

## Known failure modes

- Missing or empty 'code' query parameter returns a 400 error
- Non-numeric or malformed barcode string returns a format validation failure
- Incorrect check digit returns a check digit mismatch error
- Code length not matching any GTIN variant (8/12/13/14) returns a length error
- Network timeout or service unavailability returns a 5xx error

## How this service works

Validate a GTIN-8/12/13/14, UPC-A or EAN-13: check digit, format, GTIN-14 normalization, packaging indicator.

## Output

Returns a validation result for the submitted GTIN/UPC/EAN code, including whether the check digit is correct, whether the format matches the expected GTIN variant (8/12/13/14), the GTIN-14 normalized representation, and the packaging indicator value. Invalid codes return structured error details indicating what failed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "code"
 ],
 "properties": {
  "code": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "valid": {
   "type": "boolean"
  },
  "_attestation": {
   "type": "object"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gtin-upc-ean-barcode-validator-162f06fb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from trade.chainverdict.xyz](https://www.zero.xyz/host/trade.chainverdict.xyz/llms.txt)
