TF Fiscal
开发文档

NFS-e

按密钥查询销项 NFS-e

按 50 位访问密钥查一张销项票,响应与按 `id` 查询的结构完全相同。

GET/openapi/v2/empresas/{empresaId}/nfse/emitidas/{chaveAcesso}
需要 token、timestamp、sign 三个签名头,参见认证与签名。

按密钥对账:手里有访问密钥(来自 XML、DANFSe 或对方)而没有集成商 id 时用它。响应与按 id 查的查询 NFS-e 结构完全相同,只是不会出现 Falha,因为取号前失败的任务没有密钥。圣保罗老票没有 50 位密钥,按密钥查不到,请用 id 或 identificacaoDps 对账,或翻销项列表。

路径参数

empresaId*
string主体标识
chaveAcesso*
string访问密钥

* 必填字段

200
单据存在。事实字段随状态推进逐步填充;按状态的情形见查询 NFS-e。
id
string单据 id
status
string单据状态
motivoStatus
string结论说明
numero
int票号
serie
string序列号
numeroDps
intDPS 序号
chaveAcesso
string访问密钥
identificacaoDps
stringDPS 标识
codigoVerificacao
string核验码
dataEmissao
string开票时间
dataAutorizacao
string授权时间
padraoMunicipal
string市政标准
atualizadoEm
string最后变更时刻
chaveSubstituida
string被替代的旧票密钥
chaveSubstituta
string替代本票的新票密钥
linkXml
stringXML 原件下载链接
linkDanfse
stringDANFSe 下载链接
array授权后事件
nfse
object受理参数回显