GET
/api/nfce/get_detail查询 NFC-e 详情
通过 UUID 返回特定 NFC-e 的详情。包括 XML 和 DANFE(热敏小票)的 URL,以及提供时的客户数据。
必需请求头
tokenstring | string | 开票公司令牌 |
signstring | string | MD5 签名(path 包含查询字符串) |
timestampstring | string | 秒级 Unix 时间戳 |
查询字符串
uuid*string | string | NFC-e UUID |
* 必填字段。
示例
# sign = md5(token + path + body + timestamp) # 按接口路径生成的调用模板,占位符替换为实际值 curl -X GET "https://api.tffiscal.com/api/nfce/get_detail" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN"
GET /api/nfce/get_detail?uuid=65f8b9a1c2d3e4f5a6b7c8d9
{
"success": true,
"data": {
"uuid": "65f8b9a1c2d3e4f5a6b7c8d9",
"chave": "35210112345678901234650010000000051234567890",
"serie": 1,
"number": 5,
"status": "Success",
"modelo": "nfce",
"total_price": 145.90,
"nprot": "135210000123456",
"motivo": "",
"xml": "https://oss.example.com/.../chave.xml",
"danfe": "https://oss.example.com/.../chave_nfce.pdf",
"client_cpf": "12345678909",
"client_cnpj": "",
"client_name": "Cliente",
"create": "2024-01-10T10:30:00Z",
"issue_time": "2024-01-10T10:31:00Z"
}
}