Skip to main content
GET
CNPJ Office Lookup
Resolve the full registered profile of a Brazilian company office (establishment) from its 14-digit CNPJ tax ID. The response includes the legal name (razão social) via company.name, the trade name (alias, which may be null), registration status, founded date, the full registered address, the shareholder/partner structure (company.members), registered phones / emails, and the primary/secondary economic activities (mainActivity / sideActivities). Pass the CNPJ as the taxId path parameter (digits only, no punctuation) and authenticate with your AIsa API key as a bearer token — the same key used across every AIsa /apis/* endpoint. Example: GET /apis/v1/cnpja/office/06990590000123 returns the office registered under that CNPJ, including company.name, alias, status, address, company.members, and mainActivity. Error responses: a malformed CNPJ that fails the check-digit (checksum) algorithm returns HTTP 400 (request validation failed) — a client-side input error. A well-formed CNPJ that is simply not registered returns HTTP 404 (tax id not registered at revenue service). Billing: $0.00528 per call (1 credit per lookup). The “not registered” HTTP 404 result returns a valid JSON body and is still billed 1 credit; only 429, 5xx, and network errors are not billed. (A 400 validation error is a client-side rejection.)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

taxId
string
required

The 14-digit Brazilian CNPJ number of the office to look up (digits only, no punctuation). Punctuated input fails routing. Example: 06990590000123.

Example:

"06990590000123"

Response

The registered office profile for the given CNPJ.

updated
string

Timestamp of the last update of this record at the revenue service (ISO 8601).

taxId
string

The 14-digit CNPJ of this office.

alias
string | null

Trade name (nome fantasia) of the office, when registered. Returns null for offices without a registered trade name.

founded
string

Registration/opening date of the office (YYYY-MM-DD).

head
boolean

Whether this office is the company headquarters (matriz).

statusDate
string

Date of the current registration status (YYYY-MM-DD).

status
object

Registration status of the office (e.g. Ativa / Baixada).

company
object

The parent legal entity.

address
object

Registered address of the office.

phones
object[]

Registered phone numbers.

emails
object[]

Registered email addresses.

mainActivity
object

Primary economic activity (CNAE) of the office.

sideActivities
object[]

Secondary economic activities (CNAE).