Payment Card Numbers

active

Payment-card number utilities — Luhn validation, network/brand detection, masking, display formatting and Luhn-valid TEST-number generation. Not a fraud or authorization check.

Transactions · 30d
0
Volume · 30d
$0.00
Unique buyers · 30d
0
Uptime · 30d
100.0%
Latency p50
187ms
Reported calls · 30d
11

Endpoints (5 live)

  • POST /v1/network — Detect the issuing network/brand (Visa, Mastercard, American Express, Discover, Diners Club, JCB, UnionPay, Maestro) from the card's IIN prefix, with the network's valid lengths. Returns `network:null` for an unrecognized prefix. (0.002 USDC on Base)
  • POST /v1/format — Format a card number into the conventional display groups for its network (4-6-5 for Amex, 4-6-4 for 14-digit Diners, otherwise groups of four). (0.002 USDC on Base)
  • POST /v1/mask — Mask a card number for display, keeping the first six and last four digits (the PCI-permitted maximum) and replacing the rest with a mask character (default `*`). (0.002 USDC on Base)
  • POST /v1/validate — Validate a payment-card number: Luhn check-digit test plus network detection and length check. A syntactically valid number that fails Luhn returns `valid:false` (a 200, not an error). (0.002 USDC on Base)
  • POST /v1/generate — Generate a random Luhn-valid TEST card number for the given network (default Visa). For testing only — these are not issued cards and cannot be charged. The response is always flagged `test:true`. (0.002 USDC on Base)

First seen · last seen