# fittings GTIN Barcode Validator

> fittings GTIN Barcode Validator is a paid API for AI agents from fittings.sh, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Validates a GTIN-8, GTIN-12, GTIN-13, or GTIN-14 barcode number using the GS1 mod-10 check digit algorithm and reports its format.

## Facts

- Endpoint: GET https://fittings.sh/v1/valid/gtin
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-gtin-barcode-validator-9248d03f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n7jMaYjyoDP8e4z6v6O7k

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 fittings-gtin-barcode-validator-9248d03f
```

Example prompt: Can you check whether the barcode number 5901234123457 is a valid GTIN and tell me what format it is?

## When to prefer this

Use this endpoint when you need to programmatically verify that a GTIN barcode number conforms to the GS1 standard before ingesting it into a catalog, POS system, or supply chain application. Prefer this over manual check-digit computation when you need both format classification and validity in a single call.

## Known failure modes

- Non-numeric input returns an error or invalid result
- Input with wrong digit count for any GTIN format returns invalid
- Check digit mismatch returns validation failure
- Missing or empty gtin query parameter causes request error

## How this service works

Validate a GTIN-8/12/13/14 barcode number by GS1 mod-10 check digit and report its format.

## Output

Returns a validation result indicating whether the GTIN passes the GS1 mod-10 check digit algorithm, the detected GTIN format (GTIN-8, GTIN-12, GTIN-13, or GTIN-14), and whether the barcode is structurally valid.

## 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": [
      "gtin"
     ],
     "properties": {
      "gtin": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-gtin-barcode-validator-9248d03f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
