TF Fiscal

公司管理

GET/api/company/get_detail

获取公司详情

返回由 token 请求头标识的公司的完整数据,包括已注册的税务类别列表。不接受 body 或查询字符串。出于安全考虑,cert_pwd 不返回明文:已保存密码时固定为掩码 ********,未保存时为空字符串;cert_file 为旧版证书地址,通过 cert_content 登记的公司为空字符串;number 是当前 NF-e 系列下一张使用的编号,该系列尚未开票时为登记的起始编号。 iest 为已登记的各州 IEST 列表(见 /api/company/edit)。

必需请求头

tokenstringstring公司令牌
signstringstringMD5 签名
timestampstringstring秒级 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"