# GS1 SSCC Validator

> GS1 SSCC Validator is a paid API for AI agents from 2s.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates an 18-digit GS1 Serial Shipping Container Code (SSCC) including the mod-10 check digit, returning validity status and parsed components.

## Facts

- Endpoint: GET https://2s.io/api/validate/sscc
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gs1-sscc-validator-71ccf996
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VqjCTCQiBJIzcaNYK9Mzb

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 gs1-sscc-validator-71ccf996
```

Example prompt: Can you check whether this SSCC is valid: 006141411234567890?

## When to prefer this

Use this endpoint when you need to verify GS1 SSCC barcodes in shipping, logistics, or EDI 856 (ASN) workflows, particularly to catch data entry errors before sending advance ship notices or processing pallet labels.

## Known failure modes

- Missing sscc query parameter — returns error
- SSCC fewer or more than 18 digits — returns valid:false with reason
- Check digit mismatch — returns valid:false with reason explaining mod-10 failure
- Non-numeric characters (beyond allowed spaces/hyphens) — returns valid:false
- Payment not included or rejected — HTTP 402 error

## How this service works

Validate a GS1 SSCC (Serial Shipping Container Code) — 18 digits with the GS1 mod-10 check digit. SSCCs identify individual logistic units (pallets, cases) and are the key field in shipping/ASN (EDI 856) flows. Returns {valid, sscc, extensionDigit, checkDigit, reason}.

## Output

Returns a JSON object with: valid (boolean), sscc (the input code), extensionDigit (first digit of SSCC), checkDigit (last digit), and reason (explanation if invalid).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "sscc": "00614141123456789"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "sscc"
     ],
     "properties": {
      "sscc": {
       "type": "string",
       "description": "18-digit SSCC (spaces/hyphens allowed)."
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "properties": {
   "ok": {
    "type": "boolean"
   },
   "items": {
    "type": "array",
    "items": {
     "type": "object",
     "properties": {
      "sscc": {
       "type": "string"
      },
      "input": {
       "type": "string"
      },
      "valid": {
       "type": "boolean"
      },
      "reason": {},
      "checkDigit": {
       "type": "string"
      },
      "extensionDigit": {
       "type": "string"
      }
     }
    }
   },
   "total": {
    "type": "integer"
   },
   "source": {
    "type": "object",
    "properties": {
     "url": {
      "type": "string"
     },
     "license": {
      "type": "string"
     },
     "provider": {
      "type": "string"
     }
    }
   }
  }
 },
 "example": {
  "ok": true,
  "items": [
   {
    "sscc": "106141411234567897",
    "input": "106141411234567897",
    "valid": true,
    "reason": null,
    "checkDigit": "7",
    "extensionDigit": "1"
   }
  ],
  "total": 1,
  "source": {
   "url": "https://2s.io",
   "license": "No upstream license — computed by 2s.io",
   "provider": "2s.io SSCC validator"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gs1-sscc-validator-71ccf996/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
