{"uid":"cap_APnWVsgY_u9avAVQEisiD","slug":"mastercard-luhn-validator-2fb8eec3","name":"Mastercard Luhn Validator","description":"Call when an agent needs whether a number passes Luhn and matches mastercard. Nothing is stored. Exact $0.008 USDC. Prefer unpaid POST /v1/sandbox/check-card-mastercard first.","url":"https://agentshelf.syntexa.ch/v1/check-card-mastercard?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"description":"JSON value for schema-check SKUs. Omit it on string checks such as email or IBAN."},"value":{"type":"string","examples":["411111"],"maxLength":20000,"minLength":1,"description":"Value to check. The route description names the format: email, phone, IBAN, postal code, VAT, national id, or similar."},"schema":{"description":"JSON Schema document for schema-check SKUs. Omit it on string checks."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rXGGD9dg0NVvck99HDSxN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether a card number passes the Luhn algorithm and matches the Mastercard card-number format","exampleAgentPrompt":"Can you check if the card number 5412345678901234 is a valid Mastercard — run both the Luhn checksum and the Mastercard format check on it?","exampleUseCases":[{"title":"Pre-checkout card number validation","prompt":"Before I submit this order, can you verify that the card number 5500005555555559 passes Luhn and is actually a Mastercard?"},{"title":"Fraud screening card format check","prompt":"I have a card number from a new user signup — 5105105105105100 — can you check if it's a legitimate Mastercard format and passes the Luhn test?"},{"title":"Payment form input sanity check","prompt":"The user typed in 5200828282828210 as their Mastercard number — can you validate it passes Luhn and matches the Mastercard card scheme before we proceed?"}],"resultDescription":"Returns a boolean or structured result indicating whether the supplied card number passes the Luhn mod-10 checksum and conforms to the Mastercard IIN/prefix and length format requirements. No card data is stored or logged.","failureModes":["Input card number string is empty or exceeds 20 characters — request rejected","Card number contains non-numeric characters — validation may fail or return false","Card number fails Luhn check — returns invalid result","Card number passes Luhn but does not match Mastercard prefix/length — returns false for Mastercard match","Payment of $0.008 USDC not provided — HTTP 402 response","Malformed request body — 400 error"],"whenToPreferThis":"Use this endpoint when you need to validate a card number specifically as a Mastercard (IIN prefix + length) AND verify its Luhn checksum in a single call, with no data retention. Prefer the free sandbox endpoint POST /v1/sandbox/check-card-mastercard for testing. Choose this over generic Luhn-only validators when Mastercard network identification matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:16.175Z","isFirstParty":false,"canonicalSlug":"mastercard-luhn-validator-2fb8eec3"}