# EAN-8 Luhn Check Validator

> EAN-8 Luhn Check Validator is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-02).

Validates whether an 8-digit EAN barcode passes the Luhn (check digit) algorithm

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/check-ean-8?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ean-8-luhn-check-validator-9a7dc603
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RPDG6sFi8xYsP7ACJdFC8

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 ean-8-luhn-check-validator-9a7dc603 -d '<json body>'
```

Example prompt: Can you check if the EAN-8 barcode 96385074 is valid — does it pass the Luhn check digit test?

## When to prefer this

Use this endpoint when you need a lightweight, deterministic check-digit validation for EAN-8 barcodes without setting up a local library. Prefer the free sandbox endpoint POST /v1/sandbox/check-ean-8 for testing or high-volume use cases where cost matters; use this paid endpoint when the sandbox is unavailable or for production validation with guaranteed uptime.

## Known failure modes

- Non-numeric input returns validation error
- Input shorter or longer than 8 digits may return invalid or error
- Malformed request body returns 400-level error
- Network timeout or service unavailability returns 5xx error
- Payment failure (insufficient USDC) returns 402 Payment Required

## How this service works

Call when an agent needs whether an 8-digit EAN passes Luhn. Exact $0.008 USDC. Prefer unpaid POST /v1/sandbox/check-ean-8 first.

## Output

Returns a boolean pass/fail result indicating whether the submitted 8-digit EAN barcode satisfies the Luhn check digit algorithm, confirming its structural validity as a legitimate EAN-8 code.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "description": "JSON value for schema-check SKUs. Omit it on string checks such as email or IBAN."
  },
  "value": {
   "type": "string",
   "examples": [
    "123"
   ],
   "maxLength": 20000,
   "minLength": 1,
   "description": "Value to check. The route description names the format: email, phone, IBAN, postal code, VAT, national id, or similar."
  },
  "schema": {
   "description": "JSON Schema document for schema-check SKUs. Omit it on string checks."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ean-8-luhn-check-validator-9a7dc603/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
