Brasil Hub icon

Brasil Hub

Query Brazilian public data (CNPJ, CEP, CPF, Banks, Câmbio, DDD, Holidays, FIPE, IBGE, NCM, PIX, Taxas) with multi-provider fallback

Actions28

CNPJ → Validate

AI-generated

Summary

Validate a given CNPJ number by sending it to multiple providers with retry on failure, and return the validation result indicating if it's valid along with metadata about the query.

Inputs

  • CNPJ (required) — The CNPJ number to validate; can be provided with or without formatting.
  • Timeout (Ms) — HTTP request timeout in milliseconds for each provider attempt; defaults to 10000 ms and accepts values from 1000 to 60000.

Output shape

a single JSON object containing validation result fields, including validity status and metadata about the provider query attempt

The operation attempts multiple providers to validate the CNPJ until one succeeds or all fail. The result includes normalized data from the provider and meta information about the request. Errors on all providers will surface as failures.

Links

Discussion