Identity lookup
CNPJ lookup
Official company registry data for a 14-digit CNPJ.
/openapi/v3/consultas/cnpj/{cnpj}Requires the token, timestamp and sign signature headers, see Authentication.
Returns company registry data for a 14-digit corporate tax number: legal name, trade name, registration status, legal nature, CNAE activity code, registered address, contacts and share capital.
The response is a bare object with no platform envelope. The field table lists every possible field; when the source holds no data for a field it comes back empty, and such fields are left out of the example. GET request: the signed body is the empty string and the CNPJ is part of the signed path.
Parameters
Path parameters
cnpjstringrequired14 digits, digits only. Formatted CNPJs are rejected: the
/in40.673.061/0001-34would be parsed as a path separator.Example:40673061000134
Responses
Lookup succeeded. Company registry data.
nistringCNPJ, 14 digits.
tipoEstabelecimentostringEstablishment type:
1headquarters,2branch.Values:12nomeEmpresarialstringRegistered legal name.
nomeFantasiastringTrade name (doing-business-as).
situacaoCadastralobjectRegistration status.
naturezaJuridicaobjectLegal nature (code + description).
dataAberturastringIncorporation date,
yyyy-MM-dd.cnaePrincipalobjectPrimary economic activity (code + description).
enderecoobjectRegistered address. To render a full street line, concatenate
tipoLogradouro + logradouroyourself; the source returns them separately.municipioJurisdicaoobjectTax jurisdiction municipality (code + description).
telefonesarrayPhone numbers.
correioEletronicostringE-mail address.
capitalSocialnumberShare capital.
portestringCompany size code.
situacaoEspecialstringSpecial status (e.g. judicial recovery); usually absent.
dataSituacaoEspecialstringEffective date of the special status.
Errors
| Code | HTTP | |
|---|---|---|
| 10016010 | 400 | Invalid CNPJ format (14 digits required). Check for stray formatting characters. |
| 10016011 | 400 | Invalid CNPJ check digits. Validate locally with the mod-11 algorithm first. |
| 10016012 | 400 | CNPJ not found. No such CNPJ in the official registry. |
| 10016020 | 503 | Upstream data source is temporarily unavailable. Retry with exponential backoff (start at 1 s, double up to 30 s, add jitter); contact the platform if it persists. |
Local validation and billing
Format and check-digit errors (10016010, 10016011) are rejected locally by the platform and never reach the upstream source: they consume no quota and are not billed. Authentication-layer errors (401 / 403 / 429) use the platform envelope; see the error model in Identity lookup.
