TF Fiscal
Documentation

DC-e

Query DC-e

Returns status, protocol, XML / DACE download links and the echo of the issuance request.

GET/openapi/v2/empresas/{empresaId}/dc-e/{dceId}
Requires the token, timestamp and sign signature headers, see Authentication.

Queries the document by the id sent at issuance. The echo section (remetente … observacoesMarketplace) comes from the normalized request snapshot taken at acceptance and stays available after the task reaches a terminal state. Download links look like {public base}/openapi/files/{kind}/{ref}?token=… (kind is xml or dace); the token carries the credential so no signature headers are needed, the lifetime comes from the tenant-level setting (default 7 days), and links are re-signed on every query. See File download.

Path parameters

empresaId*
stringIssuing company identifier
dceId*
stringDocument identifier

* Required field

200
Document found. Document fact fields (numero, chaveAcesso, protocolo, links) are filled in as the status advances.
id
stringRequest identifier
ambiente
stringEnvironment
status
stringDocument status
motivoStatus
stringStatus reason
dataCriacao
stringAcceptance time
dataUltimaAlteracao
stringLast change
numero
intDocument number
serie
stringSeries
dataEmissao
stringIssue time
chaveAcesso
stringAccess key
dataAutorizacao
stringAuthorization time
linkDace
stringDACE link
linkDownloadXml
stringXML link
objectAuthorization protocol
emitidaEmContingencia
boolIssued in contingency
remetente
objectSender
destinatario
objectRecipient
itens
arrayDeclared items
transporte
objectTransport
autorizacaoDownloadXml
arrayXML download authorizations
informacoesAdicionais
stringMarketplace remark
informacoesAdicionaisFisco
stringTax authority remark
informacoesAdicionaisEmitente
stringIssuer remark
observacoesMarketplace
arrayMarketplace custom entries