{"uid":"cap_kUMQC2zlxapCHsdIHgACJ","slug":"payment-card-number-validator-195868e7","name":"Payment Card Number Validator","description":"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).","url":"https://creditcard.openverbs.com/v1/validate","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["number"],"properties":{"number":{"type":"string","maxLength":40,"minLength":1,"description":"Card number; spaces and hyphens are allowed."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fwvd_CGr-5oFji3vbnKsz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 by checking its format and authenticity using standard card number verification algorithms.","exampleAgentPrompt":"Can you check whether this credit card number is valid: 4111 1111 1111 1111?","exampleUseCases":[{"title":"E-commerce checkout form validation","prompt":"Before submitting the order, validate whether the card number 5500 0000 0000 0004 is a real, properly formatted card number so we don't send a bad transaction to the payment processor."},{"title":"Fraud screening for payment pipeline","prompt":"I have a card number that came in from a new user — 3714 496353 98431 — can you verify it's a legitimately formatted card number before we let them proceed?"},{"title":"Testing payment integration with sample cards","prompt":"We're testing our checkout flow — can you confirm that the card number 4012 8888 8888 1881 actually passes card number validation so we know our test case is correct?"}],"resultDescription":"Returns a validation result indicating whether the submitted card number is valid or invalid, typically including format correctness and whether it passes the Luhn algorithm check, and possibly the detected card network (Visa, Mastercard, Amex, etc.).","failureModes":["Missing or empty card number input returns a validation error","Card number exceeding 40 characters is rejected","Malformed request body (wrong bodyType or missing required fields) returns a 400 error","Network timeout or service unavailability returns a 5xx error","Invalid characters other than digits, spaces, or hyphens may cause parsing errors"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call card number validation without integrating a full payment processor SDK. Ideal for pre-screening card numbers at form entry or before sending to a payment gateway, or for fraud detection pipelines that need to verify card number integrity cheaply. Prefer this over building your own Luhn check when you need a reliable hosted service with no setup overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:30:23.759Z","isFirstParty":false}