TF Fiscal
Documentation

NFS-e

Query issued NFS-e by access key

Fetches one issued document by its 50-digit access key; the response is identical to the query by `id`.

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

For key-based reconciliation: when you hold the access key (from the XML, the DANFSe or a counterparty) but not the integrator id. The response is exactly the same as Query NFS-e, which looks up by id; only the Falha status never appears, because a task that failed before numbering has no key. Older São Paulo documents carry no 50-digit key and cannot be found here: reconcile on id or identificacaoDps, or walk the issued list.

Path parameters

empresaId*
stringCompany identifier
chaveAcesso*
stringAccess key

* Required field

200
Document found. The fact fields are filled in as the status advances; the per-status scenarios are in Query NFS-e.
id
stringDocument id
status
stringDocument status
motivoStatus
stringVerdict
numero
intNFS-e number
serie
stringSeries
numeroDps
intDPS number
chaveAcesso
stringAccess key
identificacaoDps
stringDPS identifier
codigoVerificacao
stringVerification code
dataEmissao
stringIssue time
dataAutorizacao
stringAuthorization time
padraoMunicipal
stringMunicipal standard
atualizadoEm
stringLast status change
chaveSubstituida
stringKey of the replaced invoice
chaveSubstituta
stringKey of the replacing invoice
linkXml
stringOfficial XML link
linkDanfse
stringDANFSe link
arrayPost-authorization events
nfse
objectEcho of the accepted request