GET
/api/invoice/get_listList NF-e (paginated)
Lists the company's NF-e with pagination. Parameters are passed via query string (not in the body). The time filter is optional, but if used, both start_create_time and end_create_time are required; the filter applies to the issue time (issue_time), both ends inclusive. Results are sorted from the most recently created.
Required headers
tokenstring | string | Issuing company token |
signstring | string | MD5 signature (path includes the query string) |
timestampstring | string | Unix timestamp in seconds |
Query string
page*int | int | Page number (≥ 1) |
page_*int | int | Page size (1–50) |
start_long | long | Unix timestamp in milliseconds — start (requires end_create_time) |
end_long | long | Unix timestamp in milliseconds — end |
statusstring | string | Filter by status. Values: "Success" (authorized), "Canceled" (canceled), "Voided" (voided), "Processing" (processing), "InvoicingFailed" (invoicing failed), "Failed" (failed), "Contingencia" (offline contingency), "Unknown" (unknown) |
ambientestring | string | Optional. Environment of the invoices: "1" = production, "2" = homologation (test). If not sent, defaults to production ("1"). |
* Required field.
Examples
# sign = md5(token + path + body + timestamp) # Template generated from the endpoint path; replace the placeholders curl -X GET "https://api.tffiscal.com/api/invoice/get_list" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN"
GET /api/invoice/get_list?page=1&page_size=20&status=Success
{
"success": true,
"data": {
"list": [
{
"uuid": "4663a257-adf1-4561-971f-6aaffbd30ca8",
"chave": "35210112345678901234567890123456789012345678",
"status": "Success",
"create": "2024-01-10T10:30:00Z",
"issue_time": "2024-01-10T10:31:00Z"
}
],
"page": 1,
"total": 142,
"total_pages": 8
}
}