Reference

Version v1

The original version, kept for compatibility.

GET/api/v1/{cnpj}v1

Accepts the same CNPJ formats as v2. The difference is the response envelope and the error shape.

{
  "source": "minhareceita",
  "data": { "cnpj": "06990590000123", "razao_social": "GOOGLE BRASIL INTERNET LTDA.", … }
}

Migrating to v2

v1v2
Route/api/v1/{cnpj}/{cnpj}
Body{ source, data }data directly
SourcesourceX-Source header
Errors{ detail }{ error }