# AgentShield Luhn Check Digit

> AgentShield Luhn Check Digit is a paid API for AI agents from agentshield.live, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-20).

Computes the Luhn algorithm check digit for a given digit string (not a card brand lookup or account validation)

## Facts

- Endpoint: GET https://agentshield.live/luhn?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshield-luhn-check-digit-0fbc5e6f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xeSLDS2aQr0brU3eGZNKG

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 agentshield-luhn-check-digit-0fbc5e6f
```

Example prompt: Can you calculate the Luhn check digit for the digit string 4532015112830366? I need the raw checksum result, not a card brand lookup.

## When to prefer this

Use this endpoint when you need the raw Luhn algorithm check digit computation for any arbitrary digit string — not when you need to validate a specific card brand, look up account details, or use a different checksum algorithm (e.g. Verhoeff, Damm, or mod-97). Prefer this for generic numeric code integrity checks where Luhn (mod-10) is the required standard.

## Known failure modes

- Input string shorter than 2 digits or longer than 32 digits returns an error
- Non-digit characters other than spaces or hyphens cause a validation error
- Empty or missing 'code' query parameter returns a 400 bad request
- Network timeout or service unavailability returns a 5xx error

## How this service works

Call when an agent needs a generic Luhn check digit for a digit string. Not a card brand and not an account.

## Output

Returns the computed Luhn algorithm check digit (a single digit, 0–9) for the submitted digit string. No card brand identification or account lookup is performed — purely the mathematical checksum result.

## 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": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "2 to 32 digits. Spaces and hyphens allowed. Not a card number lookup."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "known": true,
  "valid": true,
  "length": 11,
  "check_digit": "4"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshield-luhn-check-digit-0fbc5e6f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshield.live](https://www.zero.xyz/host/agentshield.live/llms.txt)
