{"uid":"cap_VtBQPwKUr793gBvYNtj0W","slug":"card-number-luhn-validator-1f96d822","name":"Card Number Luhn Validator","description":"Payment card number check: Luhn checksum, card brand from the prefix (Visa, Mastercard, Amex, Discover, JCB, Diners, UnionPay), length validity and masked form. Nothing is stored. Form validation for checkout flows. $0.01 per check.","url":"https://intel.rallylive.ca/data/luhn","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":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tbQ7XsjVuXy1928GKcJMU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a payment card number via Luhn checksum, identifies the card brand (Visa, Mastercard, Amex, etc.), checks length validity, and returns a masked form of the number.","exampleAgentPrompt":"Can you check if the card number 4111111111111111 is valid — does it pass the Luhn check, what brand is it, and give me the masked version?","exampleUseCases":[{"title":"Checkout form card validation","prompt":"Before I submit this payment, can you verify that 5500005555555559 is a valid card number, confirm it passes the Luhn check, and tell me what brand it is?"},{"title":"Identify card brand from number","prompt":"I have a card number 378282246310005 — can you tell me what brand that is (Amex, Visa, Mastercard?) and whether the number is actually valid?"},{"title":"Display masked card in order summary","prompt":"Give me the masked form of card number 6011111111111117 so I can safely show it in the order confirmation page without exposing the full number."}],"resultDescription":"Returns whether the card number passes the Luhn checksum, the detected card brand (Visa, Mastercard, Amex, Discover, JCB, Diners, UnionPay), whether the number length is valid for that brand, and a masked representation of the card number. Nothing is stored server-side.","failureModes":["Missing or empty card number input returns an error","Non-numeric characters in the card number may cause a validation failure","Very short or very long numbers may fail length validation","Unrecognized card prefix may result in unknown brand response"],"whenToPreferThis":"Use this endpoint when you need lightweight, stateless card number validation in a checkout or form-submission flow — especially when you need brand detection and Luhn verification together without storing any card data. Prefer this over full payment processors when you only need front-end validation logic without initiating a transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:12:21.657Z","isFirstParty":false}