GET
/api/mdfe/get_listMDF-e 列表(分页)
分页列出公司的 MDF-e。参数通过 查询字符串(query string)传递(不在 body 中)。时间过滤可选,但若使用则需同时传入 start_create_time 和 end_create_time。
必需请求头
tokenstring | string | 开票公司令牌 |
signstring | string | MD5 签名(path 包含查询字符串) |
timestampstring | string | 秒级 Unix 时间戳 |
查询字符串
page*int | int | 页码(≥ 1) |
page_*int | int | 每页大小(1–50) |
start_long | long | Unix 时间戳(毫秒) — 起始(需要 end_create_time) |
end_long | long | Unix 时间戳(毫秒) — 结束 |
statusstring | string | 按状态过滤。 记录中的取值: "Success"(已授权)、"Canceled"(已取消)、"Voided"(已关闭)。被拒绝的 MDF-e 不保存记录 |
* 必填字段。
示例
# sign = md5(token + path + body + timestamp) # 按接口路径生成的调用模板,占位符替换为实际值 curl -X GET "https://api.tffiscal.com/api/mdfe/get_list" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN"
GET /api/mdfe/get_list?page=1&page_size=20&status=Success
{
"success": true,
"message": "成功",
"data": {
"list": [
{
"chave": "35260112345678000190580010000000011000000015",
"serie": 1,
"number": 1,
"modal": "1",
"status": "Success",
"create": "2026-01-10T10:30:00Z",
"issue_time": "2026-01-10T10:31:00Z"
}
],
"page": 1,
"total": 142,
"total_pages": 8
}
}