TF Fiscal
Documentation

CT-e

Query CT-e

Returns status, document data, XML / DACTE download links and the event list.

GET/openapi/v2/empresas/{empresaId}/cte/{cteId}
Requires the token, timestamp and sign signature headers, see Authentication.

This is how you follow what happened to the document after it was submitted. Queries by the id sent at issuance. Download links are short-lived tokens, valid for 10 minutes and re-issued on every query.

Path parameters

empresaId*
stringCompany identifier
cteId*
stringDocument identifier

* Required field

200
Document found.
id
stringDocument identifier
status
stringDocument status
motivoStatus
stringStatus reason
numero
intDocument number
serie
intSeries
chaveAcesso
stringAccess key
numeroProtocolo
stringAuthorization protocol
dataEmissao
stringIssuance time
dataAutorizacao
stringAuthorization time
tipoEmissao
stringIssuance path
protocoloEpec
stringEPEC protocol
linkXml
stringAuthorized XML link
linkDacte
stringDACTE link
cte
objectRequest echo
arrayRegistered events