TF Fiscal

NFC-e Consumer Invoices

POST/api/nfce/get_danfe

Get NFC-e DANFE

Returns the NFC-e DANFE URL (electronic fiscal receipt) as PDF, with a QR Code for the tax authority lookup. Generated on demand and cached by hash (access key + status); repeated calls return the existing URL.

Required headers

tokenstringstringIssuing company token
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Body

uuid*stringstringNFC-e UUID (note: here it's uuid, unlike cancel which uses chave)

 * Required field.

Examples

# sign = md5(token + path + body + timestamp)
# Template generated from the endpoint path; replace the placeholders
curl -X POST "https://api.tffiscal.com/api/nfce/get_danfe" \
  -H "Content-Type: application/json" \
  -H "token: $TOKEN" \
  -H "timestamp: $TIMESTAMP" \
  -H "sign: $SIGN" \
  -d @body.json