{"uid":"cap__T_ejLRbcOLxOJlBBtRcK","slug":"api-x402node-dev-6ac39ec5","name":"Credit Card Validator (Luhn Check & Brand Detector)","description":"Credit card validator, Luhn algorithm check, card number verification, card type detector, Visa Mastercard Amex Discover Diners JCB UnionPay brand identifier, PAN validation. Validate credit card number via Luhn algorithm and identify card brand. Returns validity, card type, masked number. No payment processing, validation only. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/validate/creditcard","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"card":{"type":"string","description":"Card (optional)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0022","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0022/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3jwD9mJ_GXLJUeOdEJc68","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0022","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a credit card number using the Luhn algorithm and identifies the card brand (Visa, Mastercard, Amex, Discover, etc.), returning validity, card type, and masked PAN — no payment processing involved.","exampleAgentPrompt":"Can you check if this credit card number is valid and tell me what type of card it is: 4532015112830366? I want to know if it passes the Luhn check and whether it's a Visa, Mastercard, Amex, or something else.","exampleUseCases":null,"resultDescription":"Returns a JSON object with: `valid` (boolean overall validity), `luhn` (boolean Luhn algorithm result), `brand` (card network string e.g. 'visa', 'mastercard', 'amex', 'discover'), `card_masked` (masked PAN showing only partial digits), and `length` (integer card number length).","failureModes":["Non-numeric or malformed input returns invalid result","Empty or missing card number in POST body causes error","Extremely short or long strings may not match any known brand","Unknown card ranges return valid Luhn but unrecognized brand"],"whenToPreferThis":"Use this endpoint when you need to validate a credit card number client-side or server-side before processing, want to identify the card network without charging the card, or need a masked version of the PAN for display. Prefer this over full payment APIs when no transaction is needed — pure structural and algorithmic validation only.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:46:56.399Z","isFirstParty":false}