{"uid":"cap_WKOCRRez1yjcp4Pc_uv3F","slug":"payment-card-number-formatter-7c44fa94","name":"Payment Card Number Formatter","description":"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).","url":"https://creditcard.openverbs.com/v1/format","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_iCmsKUhtKcI79k_To0viA","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":"Formats a raw payment card number string (with optional spaces/hyphens) into a standardized format","exampleAgentPrompt":"Can you format this card number for me — it came in with hyphens and I need it standardized: 4111-1111-1111-1111?","exampleUseCases":[{"title":"Normalize user-entered card number","prompt":"A user typed their card number as '4111 1111 1111 1111' with spaces — can you run it through the card formatter to get a clean, standardized version?"},{"title":"Clean card number from CSV import","prompt":"I imported a batch of card numbers and they came in with random hyphens like '5500-0000-0000-0004' — format this one for me so it's consistent."},{"title":"Display-ready card number formatting","prompt":"Before I show this card number on the receipt screen, can you format '378282246310005' into the standard display format?"}],"resultDescription":"Returns a formatted/normalized version of the provided payment card number, with consistent spacing or delimiter style applied to the raw input string.","failureModes":["Card number string is empty or missing — returns validation error","Card number contains invalid characters beyond digits, spaces, and hyphens — likely error response","Card number length is out of expected range (1–40 chars enforced by schema)","Network timeout or service unavailability"],"whenToPreferThis":"Use this endpoint when you need to normalize or standardize payment card number strings that may contain inconsistent spacing or hyphen delimiters — for example, when accepting user input, importing from CSVs, or preparing card numbers for display. Prefer this over manual string manipulation to ensure consistent, standards-compliant formatting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:40:00.639Z","isFirstParty":false}