$0.000999 per call · 20 free calls/day · no signup · pay with card credits or a signed USDC voucher (x402)
Validate any 12-19 digit number by the Luhn mod-10 algorithm. Never submit real payment card numbers. Returns signed XDR-1 receipt.
curl -X POST https://code402.dev/v1/tools/luhn-check/call \
-H "content-type: application/json" \
-d '{"number":"4111111111111111"}'
No key needed for the free tier. When the free quota is used up, the API replies HTTP 402 with the exact price — agents sign the x402 voucher and retry; humans buy card credits. Every paid response carries a signed receipt you can verify offline.
| Field | Type | Meaning |
|---|---|---|
number (required) | string | 12-19 digit number; spaces/dashes allowed. |
Top-level fields: tool, valid, normalized, country, reason, scope. Paid responses also carry a signed XDR-1 receipt.
Machine-readable catalog: llms-full.txt · MCP manifest · OpenAPI. Operated by JUANA LIMITED (UK Co. No. 14043409). Non-custodial: USDC settles payer→seller directly on Base.