# Delx Commerce Luhn Validation API

> Delx Commerce Luhn Validation API is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Validates whether a numeric string passes the Luhn algorithm checksum, returning validity status and digit count

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/luhn-valid?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-luhn-validation-api-b1bad0c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__qkEj46sypzMks3V7k70u

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 delx-commerce-luhn-validation-api-b1bad0c0 -d '<json body>'
```

Example prompt: Can you check whether the number 4532015112830366 passes the Luhn checksum before I try to process it as a card number?

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.001 USDC), no-signup Luhn checksum check for a single numeric string and want verifiable, pay-per-result delivery over Base or Solana via x402 — ideal for AI agents that need inline card validation without integrating a full payment SDK or standing up their own Luhn logic.

## Known failure modes

- Non-numeric input or strings with spaces/dashes may fail or return invalid
- Empty string input likely returns an error or false validity
- Very short numbers (fewer than 2 digits) may not conform to standard Luhn expectations
- Network or payment authentication failures (x402 payment not accepted) block the call entirely

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing a boolean `valid` field indicating whether the number passes the Luhn algorithm, a `digits` integer with the count of digits in the input, and a `schema` string identifier (e.g. 'delx/util-luhn-valid/v1') for response versioning.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "number": {
   "type": "string",
   "description": "Input field: number."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "digits": 16,
  "schema": "delx/util-luhn-valid/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-luhn-validation-api-b1bad0c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
