GET
/api/company/get_export_invoice_month_filesList monthly export files
Returns the monthly export files already generated for the company in the current calendar year (both the year and the month boundaries are computed in the America/Sao_Paulo timezone). The system generates these files automatically on the 1st of each month for the previous month: each month can have up to 4 files — 1 Excel spreadsheet (invoices with status Success only) and 3 XML files (one each for Success, Canceled and Voided). Files not yet generated do not appear; files exported on demand through /api/invoice/get_xml are not included; files for months of the previous year (including the December file generated on January 1) are not returned.
Required headers
tokenstring | string | Company token |
signstring | string | MD5 signature |
timestampstring | string | Unix timestamp in seconds |
Response
files[]array | array | List of available files |
urlstring | string | File URL |
yearint | int | Period year |
monthstring | string | Month (1–12) |
typestring | string | File type: "xlsx" or "xml" |
statusstring | string | Status of the invoices in the file: "Success", "Canceled" or "Voided" |
createdatetime | datetime | When the file was generated |
Examples
# sign = md5(token + path + body + timestamp) # Template generated from the endpoint path; replace the placeholders 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"
}
]
}
}