# finmath Luhn Check

> finmath Luhn Check is a paid API for AI agents from finmath.qzqh5rrbkz.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Validates a number using the Luhn algorithm (checksum verification for credit card and ID numbers)

## Facts

- Endpoint: POST https://finmath.qzqh5rrbkz.workers.dev/v1/luhn_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/finmath-luhn-check-9241ad94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tU3UaZuqKgpvF8ORJ1tiQ

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 finmath-luhn-check-9241ad94 -d '<json body>'
```

Example prompt: Can you run a Luhn check on the number 4532015112830366 and tell me if it's a valid number?

## When to prefer this

Use this endpoint when you need deterministic, exact Luhn checksum validation for credit card numbers, IMEI numbers, or any identifier using the mod-10 algorithm — especially when LLM arithmetic cannot be trusted for precise digit-by-digit computation.

## Known failure modes

- Missing required 'number' field returns validation error
- Non-numeric input may cause a parse error
- Payment failure (402) if USDC balance is insufficient
- Network timeout from Cloudflare Workers edge

## How this service works

Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.

## Output

Returns a result field indicating whether the number passes the Luhn checksum, plus a meta object with additional context about the computation.

## Example request

```json
{
 "number": 4532015112830366
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "number"
 ],
 "properties": {
  "number": {
   "type": "number",
   "description": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "result",
  "meta"
 ],
 "properties": {
  "meta": {
   "type": "object"
  },
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/finmath-luhn-check-9241ad94/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from finmath.qzqh5rrbkz.workers.dev](https://www.zero.xyz/host/finmath.qzqh5rrbkz.workers.dev/llms.txt)
