GET
/api/invoice/get_detailGet NF-e details
Returns the details of a specific NF-e by UUID or by access key. Includes XML URL, DANFE URLs (full, simplified, and label) and metadata. DANFE URLs older than the storage retention period are returned as empty strings; /api/invoice/get_danfe regenerates them.
Required headers
tokenstring | string | Issuing company token |
signstring | string | MD5 signature (path includes the query string) |
timestampstring | string | Unix timestamp in seconds |
Query string
uuidstring | string | NF-e UUID |
chavestring | string | NF-e access key (44 digits) |
Provide uuid or chave (at least one). If both are sent, uuid takes precedence.
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_detail" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN"
GET /api/invoice/get_detail?uuid=4663a257-adf1-4561-971f-6aaffbd30ca8 GET /api/invoice/get_detail?chave=35210112345678901234567890123456789012345678
{
"success": true,
"data": {
"id": "pedido-2024-0001",
"uuid": "4663a257-adf1-4561-971f-6aaffbd30ca8",
"chave": "35210112345678901234567890123456789012345678",
"serie": 1,
"number": 100,
"status": "Success",
"total_price": 300.00,
"xml": "https://oss.example.com/.../chave.xml",
"danfe": "https://oss.example.com/.../chave.pdf",
"danfe_simples": "https://oss.example.com/.../chave_simplie.pdf",
"danfe_etiqueta": "https://oss.example.com/.../chave_etiqueta.pdf",
"create": "2024-01-10T10:30:00Z",
"issue_time": "2024-01-10T10:31:00Z"
}
}