TF Fiscal

Companies

GET/api/company/get_export_invoice_month_files

List 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

tokenstringstringCompany token
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Response

files[]arrayarrayList of available files

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"