TF Fiscal

Received Documents & DistDFe

POST/api/invoice/received/list

List received documents

Required headers

tokenstringstringCompany token
signstringstringMD5 signature: MD5(token + path + body + timestamp)
timestampstringstringUnix timestamp in seconds (5-minute window)

Fields

FieldTypeRequiredDescription
cnpjstringNoFilter by recipient CNPJ (the company's own CNPJ). If omitted, all records under the token are returned
doc_typestringNoFilter by document type: resNFe, procNFe, resEvento or procEvento
chavestringNoFilter by access key (44 digits)
emitente_cnpjstringNoFilter by NF-e issuer CNPJ (supplier)
start_create_timestring/longNoStart of the capture-time filter. Accepts "dd/MM/yyyy", "dd/MM/yyyy HH:mm:ss", "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-ddTHH:mm:ss" or a Unix timestamp (seconds), all interpreted as UTC. Values that cannot be parsed are ignored
end_create_timestring/longNoEnd time, same formats. A date without time is treated as 23:59:59.999 UTC of that day
pageintNoPage number (default 1)
page_sizeintNoItems per page (default 20, max 100)

Response fields

totalintintTotal records matching the filters
pageintintCurrent page
page_sizeintintPage size
list[]arrayarray
Ordering: records are returned by NSU descending (most recent first).

Examples

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