POST
/api/nfcom/pdf获取 NFCom PDF
返回 DANFE-COM 的 URL——NFCom 的 PDF 表现形式(订户账单),符合 MOC 附件 II。PDF 在授权时自动生成;当存储中尚不存在时,会根据 XML 按需生成。
必需请求头
tokenstring | string | 开票公司的 Token |
signstring | string | MD5 签名 |
timestampstring | string | Unix 时间戳(秒) |
Body
chNFCom*string | string | NFCom 访问密钥(44 位) |
* 必填字段。
示例
# sign = md5(token + path + body + timestamp) # 按接口路径生成的调用模板,占位符替换为实际值 curl -X POST "https://api.tffiscal.com/api/nfcom/pdf" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"chNFCom": "35260712345678000199620010000000011012345675"
}
{
"success": true,
"message": "OK",
"danfcom": "https://storage.../nfcom/35260712345678000199620010000000011012345675.pdf"
}