CT-e
撤销服务不符
登记事件 610111,撤销本主体登记的服务不符。
DELETE
/openapi/v2/empresas/{empresaId}/cte/{chaveAcesso}/desacordo/{protocoloEvento}需要 token、timestamp、sign 三个签名头,参见认证与签名。
无请求体;签名取空串。只能撤销本主体登记的 610110 事件;protocoloEvento 为该事件的协议号(10017045)。
参数
路径参数
empresaIdstring必填注册时返回的主体(承运人)标识。
示例:1934811222334455chaveAcessostring必填他人开具的 CT-e 的 44 位访问密钥。
示例:35260940673061000134570010000000011000000010protocoloEventostring必填待撤销事件的协议号(
protocolo),在事件登记响应或事件列表中返回。示例:135260000000099
响应
200
事件已在 SEFAZ 登记,同步返回事件对象。
chaveAcessostring事件所关联 CT-e 的 44 位访问密钥。
tipostring事件类型。
取值:CancelamentoCartaCorrecaoComprovanteEntregaCancelamentoComprovanteEntregaInsucessoEntregaCancelamentoInsucessoEntregaPrestacaoDesacordoCancelamentoPrestacaoDesacordoEpeccodigostringSEFAZ 事件码(tpEvento):
110111、110110、110113、110180、110181、110190、110191、610110、610111。sequenciainteger同类事件内的序号(信函更正自动递增)。
statusstringSEFAZ 返回的 cStat;
135表示事件已登记并关联。motivostringSEFAZ 返回的 xMotivo。
protocolostring事件协议号;撤销事件时作为
protocoloEvento传入。datastring事件登记时间,ISO-8601 UTC。
linkXmlstring事件 XML(procEvento)下载链接。参见 文件下载。
错误
| 错误码 | HTTP | |
|---|---|---|
| 10003000 | 404 |
|
| 10017043 | 400 | SEFAZ 拒绝了该事件; |
| 10017045 | 400 |
|
