# greeneris-data GTIN Barcode Validator

> greeneris-data GTIN Barcode Validator is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Validates a GTIN barcode number (EAN-8, UPC-12, EAN-13, ITF-14) by checking its structure and GS1 mod-10 check digit offline

## Facts

- Endpoint: GET https://data.greeneris.io/v1/logistics/gtin-check
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/greeneris-data-gtin-barcode-validator-8c3d8a1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y-PwdwBiWyKsZotTTAtWB

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 greeneris-data-gtin-barcode-validator-8c3d8a1a
```

Example prompt: Can you check if the barcode 4006381333931 is a valid GTIN? I want to know if the format and check digit are correct before I add it to our product database.

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.001), offline structural validation of a GTIN barcode — it checks format and GS1 mod-10 checksum without querying any product database. Prefer this over full product lookup APIs when you only need to confirm a barcode is well-formed. Not suitable if you need product name, brand, or description associated with the barcode.

## Known failure modes

- Missing 'gtin' query parameter returns error
- Non-numeric or wrong-length barcode returns valid:false with format details
- HTTP 402 returned before payment is made via x402 protocol — agent must pay in USDC on Base and retry
- Malformed GTIN (wrong digit count) may return invalid rather than an error

## How this service works

Offline validation of product barcode numbers: EAN-8, UPC-A, EAN-13 and GTIN-14, using the GS1 mod-10 weighted checksum. Catches corrupted GTINs in supplier catalogs before marketplace publication (Amazon/Google reject invalid GTINs). Query: ?gtin=4006381333931. Returns valid flag, detected format, GS1 member-org prefix and the computed check digit. Deterministic, cached 1 year.

## Output

Returns a JSON object with the validated GTIN string, a boolean 'valid' field, the detected format (e.g. EAN-13), the GS1 prefix, the expected check digit, the computed check digit, and the source algorithm used (GS1 mod-10 offline structural check).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "gtin"
     ],
     "properties": {
      "gtin": {
       "type": "string",
       "description": "Barcode number: 8, 12, 13 or 14 digits (spaces/dashes tolerated)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "gtin": "4006381333931",
  "valid": true,
  "format": "EAN-13",
  "source": "GS1 mod-10 check-digit algorithm (offline, structure + checksum only)",
  "gs1_prefix": "400",
  "check_digit": 1,
  "computed_check_digit": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-data-gtin-barcode-validator-8c3d8a1a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
