{
  "format": "delx/intent-card/v1",
  "id": "luhn-valid-api",
  "intent": "Luhn Valid for an agent workflow",
  "title": "Luhn Valid API for agents",
  "description": "Luhn check for digit strings (cards/IDs). Call when you reject obviously invalid card-shaped numbers before payment UI. Returns valid boolean and digit count for $0.001 USDC via x402 on Base. Checksum only—not issuer, funds, or PAN storage. No network, no keys, no retention. Results are advisory; the caller owns budgets, auth, and production controls.",
  "keywords": [
    "Luhn Valid API",
    "Luhn Valid for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-07",
  "canonical_url": "https://commerce.delx.ai/intents/luhn-valid-api",
  "machine_url": "https://commerce.delx.ai/intents/luhn-valid-api.json",
  "recommendation": {
    "tool_name": "util_luhn_valid",
    "service_name": "Delx Luhn Valid",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/luhn-valid",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "number": {
          "description": "Input field: number.",
          "type": "string"
        }
      },
      "required": [
        "number"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "number": "4111111111111111"
    },
    "example_output": {
      "schema": "delx/util-luhn-valid/v1",
      "valid": true,
      "digits": 16
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/luhn-valid -m POST -H 'x-delx-source: intent-card-luhn-valid-api' --max-amount 0.001 -b '{\"number\":\"4111111111111111\"}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-luhn-valid-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/luhn-valid"
  }
}
