Api Endpoint

fastx402.tools

Validates a card number using the Luhn algorithm and identifies the card scheme (Visa, Mastercard, Amex, Discover, etc.) from the number prefix and length. Returns validity, scheme, and expected length.

Open interactive test console

Offering

Provider
fastx402.tools
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://fastx402.tools/credit-card-luhn
MIME type
application/json
First seen
2026-10-23T22:48:47.298Z
Last seen
Tags
Finance

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.001 USDC
Atomic price: 1000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0xFe6Ae9ec9DE12817f23958F11b6CE69194b6Bd7E"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "1000",
    "payTo": "5zYuctvYNqYyqQYURqJQjQ1HrM5AXaXx4SeRx3Jr2oeA"
  }
]

Observed health

Status
Healthy
Latest latency
438 ms
Average latency
508 ms
HTTP status
402
Last checked
Reachability
100% over 16 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "number": {
          "type": "string",
          "description": "Card number (digits only, or with spaces/dashes)"
        }
      },
      "required": [
        "number"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "number": {
          "type": "string"
        },
        "valid": {
          "type": "boolean"
        },
        "luhn_valid": {
          "type": "boolean"
        },
        "scheme": {
          "type": "string"
        },
        "expected_length": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      }
    }
  },
  "required": [
    "type"
  ]
}