{"uid":"cap_gfeqdwWxYay4CPMYY0R7i","slug":"losbeto-brazilian-cnpj-cpf-validator-fa5b03f8","name":"Losbeto Brazilian CNPJ/CPF Validator","description":"OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana and Algorand via x402.","url":"https://markets.losbeto.xyz/br-doc?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","required":["doc"],"properties":{"doc":{"type":"string","description":"doc parameter"}}}}},"output":{"type":"object","properties":{"example":{"type":"object","description":"Validate a Brazilian CNPJ or CPF by its modulo-11 check digits and return it formatted, plus whether a CNPJ is a headquarters (branch 0001). Catches typos and fabricated identifiers before they enter a workflow. Zero upstream calls. This confirms the number is well-formed, NOT that it is registered or active — for registry status an official Receita Federal query is required."}}}}},"responseSchema":{"type":"json"},"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_U047UbLcCm009My7o41Q1","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 Brazilian CNPJ or CPF tax identifiers using modulo-11 check digits, returning formatted output and whether a CNPJ is a headquarters branch — no external registry calls required.","exampleAgentPrompt":"Can you validate this Brazilian CNPJ for me — 11.222.333/0001-81 — and tell me if it's well-formed, correctly formatted, and whether it's a headquarters branch?","exampleUseCases":[{"title":"Pre-payment CNPJ fraud check","prompt":"Before I process this invoice, validate the supplier's CNPJ — 45.678.901/0001-23 — to make sure it's not fabricated or mistyped."},{"title":"CPF validation in onboarding flow","prompt":"I'm onboarding a new Brazilian user who entered CPF 123.456.789-09 — can you check if that CPF passes the modulo-11 check digits and is properly formatted?"},{"title":"Classify CNPJ branch vs headquarters","prompt":"Check this CNPJ — 07.526.557/0002-44 — is it valid, and is it a subsidiary branch rather than the main headquarters?"}],"resultDescription":"Returns a JSON object indicating whether the CNPJ or CPF is structurally valid based on modulo-11 check digits, the correctly formatted version of the identifier, and for CNPJs whether the branch code indicates a headquarters (0001). Does not confirm active registration status with Receita Federal.","failureModes":["Invalid or malformed doc parameter returns a validation failure response","Non-numeric or wrongly-lengthed input may return an error or invalid result","Payment failure via x402 (USDC on Base/Solana/Algorand) results in HTTP 402 and no response","The endpoint does not check live Receita Federal registry — only structural validity is confirmed"],"whenToPreferThis":"Use this endpoint when you need fast, zero-latency, offline structural validation of Brazilian CPF or CNPJ numbers before submitting them to downstream workflows, payment systems, or registries. It is ideal for catching typos and fabricated identifiers without incurring the latency or cost of a live Receita Federal API call. Prefer this over live registry lookups when all you need to confirm is that the number is mathematically well-formed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:45:08.704Z","isFirstParty":false,"canonicalSlug":"losbeto-brazilian-cnpj-cpf-validator-fa5b03f8"}