# Delx Commerce Luhn Check

> Delx Commerce Luhn Check 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 a card or ID number using the Luhn algorithm to detect if it is structurally valid

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/luhn-check?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-check-ef68deba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Rp_PSjwtIGc6HWtC6ZdPp

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-check-ef68deba -d '<json body>'
```

Example prompt: Can you run a Luhn check on card number 4111111111111111 to tell me if it's structurally valid before I try to process it?

## When to prefer this

Use this endpoint when you need a lightweight, no-signup, pay-per-result Luhn validation with verifiable delivery settled in USDC on Base or Solana via x402 — ideal for AI agents that need on-demand card number integrity checks without maintaining API keys or subscriptions.

## Known failure modes

- Missing or malformed card number input returns a 400 error
- Non-numeric input may return a validation error
- Payment failure via x402 (insufficient USDC balance) blocks the request
- Empty body or missing required fields returns a schema validation error

## How this service works

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

## Output

Returns a JSON response indicating whether the submitted number passes the Luhn checksum algorithm, typically including a boolean validity flag and possibly the computed check digit or checksum result.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-luhn-check-ef68deba/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)
