跳转到主要内容
GET
Reference example

请求规范

  • 方法与路径: GET /apis/v1/cnpja/office/{taxId}
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/cnpja/office/{taxId}
  • taxId: path; 必填
  • geocoding: query; 可选
  • links: query; 可选
  • maxAge: query; 可选
  • maxStale: query; 可选
  • registrations: query; 可选
  • simples: query; 可选
  • simplesHistory: query; 可选
  • strategy: query; 可选
  • suframa: query; 可选
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际用量收费。 默认请求预估费用:$0.0288 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

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

路径参数

taxId
string
必填

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

示例:

"06990590000123"

查询参数

geocoding
boolean
Maximum string length: 256
maxAge
integer
必填范围: 0 <= x <= 9223372036854776000
maxStale
integer
必填范围: 0 <= x <= 9223372036854776000
registrations
string
Maximum string length: 256
simples
boolean
simplesHistory
boolean
strategy
string
Maximum string length: 32
suframa
boolean

响应

The registered office profile for the given CNPJ.

address
object

Registered address of the office.

alias
string | null

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

company
object

The parent legal entity.

emails
object[]

Registered email addresses.

founded
string

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

head
boolean

Whether this office is the company headquarters (matriz).

mainActivity
object

Primary economic activity (CNAE) of the office.

phones
object[]

Registered phone numbers.

sideActivities
object[]

Secondary economic activities (CNAE).

status
object

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

statusDate
string

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

taxId
string

The 14-digit CNPJ of this office.

updated
string

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