GET
/api/company/get_detail获取公司详情
返回由 token 请求头标识的公司的完整数据,包括已注册的税务类别列表。不接受 body 或查询字符串。出于安全考虑,cert_pwd 不返回明文:已保存密码时固定为掩码 ********,未保存时为空字符串;cert_file 为旧版证书地址,通过 cert_content 登记的公司为空字符串;number 是当前 NF-e 系列下一张使用的编号,该系列尚未开票时为登记的起始编号。 iest 为已登记的各州 IEST 列表(见 /api/company/edit)。
必需请求头
tokenstring | string | 公司令牌 |
signstring | string | MD5 签名 |
timestampstring | string | 秒级 Unix 时间戳 |
示例
# sign = md5(token + path + body + timestamp) # 按接口路径生成的调用模板,占位符替换为实际值 curl -X GET "https://api.tffiscal.com/api/company/get_detail" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN"
GET /api/company/get_detail
{
"success": true,
"data": {
"company_id": 10234,
"name": "Empresa Exemplo LTDA",
"token": "3f9a1c7e5b2d4f6a8c0e1b3d5f7a9c2e",
"invoice_type": "simples_nacional",
"cnpj": "12345678000199",
"ie": "123456789",
"iest": [
{ "uf": "MG", "ie": "0012345670053" }
],
"unit": "matriz",
"email": "contato@empresa.com",
"cep": "01001000",
"address": "Rua Exemplo",
"house_number": "100",
"town": "Centro",
"city": "São Paulo",
"state": "SP",
"cert_file": "",
"cert_pwd": "********",
"serie": 1,
"number": 142,
"categorys": [
{
"category_id": "TF123",
"descricao": "Venda de mercadoria",
"disable_difal": false,
"desconta_icms_pis_cofins": false,
"desconta_icms_pis_cofins_ibs_cbs": false
}
]
}
}