TF Fiscal

公司管理

GET/api/company/get_export_invoice_month_files

月度导出文件列表

返回该公司在当前公历年度已生成的月度导出文件(年度与月份起止均按 America/Sao_Paulo 时区计算)。这些文件由系统在每月 1 日自动为上一个月生成:每个月最多 4 个文件——1 个 Excel 电子表格(仅含 Success 状态的发票)和 3 个 XML 文件(Success、Canceled、Voided 各一个)。尚未生成的文件不出现在列表中;通过 /api/invoice/get_xml 按需导出的文件不在此列表中;上一年度各月的文件(包括 1 月 1 日生成的上年 12 月文件)不返回。

必需请求头

tokenstringstring公司令牌
signstringstringMD5 签名
timestampstringstring秒级 Unix 时间戳

响应

files[]arrayarray可用文件列表

示例

# sign = md5(token + path + body + timestamp)
# 按接口路径生成的调用模板,占位符替换为实际值
curl -X GET "https://api.tffiscal.com/api/company/get_export_invoice_month_files" \
  -H "Content-Type: application/json" \
  -H "token: $TOKEN" \
  -H "timestamp: $TIMESTAMP" \
  -H "sign: $SIGN"