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 月文件)不返回。
必需请求头
tokenstring | string | 公司令牌 |
signstring | string | MD5 签名 |
timestampstring | string | 秒级 Unix 时间戳 |
响应
files[]array | array | 可用文件列表 |
urlstring | string | 文件地址 |
yearint | int | 期间年份 |
monthstring | string | 月份(1–12) |
typestring | string | 文件类型:"xlsx" 或 "xml" |
statusstring | string | 文件中发票的状态:"Success"、"Canceled" 或 "Voided" |
createdatetime | datetime | 文件生成时间 |
示例
# 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"
GET /api/company/get_export_invoice_month_files
{
"success": true,
"data": {
"files": [
{
"url": "https://oss.example.com/.../2024_01_success.xlsx",
"year": 2024,
"month": "1",
"type": "xlsx",
"status": "Success",
"create": "2024-02-01T03:15:00Z"
},
{
"url": "https://oss.example.com/.../2024_01_success.zip",
"year": 2024,
"month": "1",
"type": "xml",
"status": "Success",
"create": "2024-02-01T03:15:30Z"
}
]
}
}