Reference
Version v1
The original version, kept for compatibility.
GET
/api/v1/{cnpj}v1Accepts 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
| v1 | v2 | |
|---|---|---|
| Route | /api/v1/{cnpj} | /{cnpj} |
| Body | { source, data } | data directly |
| Source | source | X-Source header |
| Errors | { detail } | { error } |