CT-e
撤销交付凭证
登记事件 110181,撤销已登记的交付凭证。
DELETE
/openapi/v2/empresas/{empresaId}/cte/{cteId}/comprovante-entrega/{protocoloEvento}需要 token、timestamp、sign 三个签名头,参见认证与签名。
无请求体;签名取空串。protocoloEvento 须为本单据上已登记的 110180 事件协议号(10017045)。同步出站,成功返回事件对象。
参数
路径参数
empresaIdstring必填注册时返回的主体(承运人)标识。
示例:1934811222334455cteIdstring必填发行 CT-e 时传入的
id。示例:CTE-ORD-1protocoloEventostring必填待撤销事件的协议号(
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 | |
|---|---|---|
| CTe0001 | 404 |
|
| 10003000 | 404 |
|
| 10017040 | 400 | 单据状态不允许该事件;CT-e 须为 |
| 10017043 | 400 | SEFAZ 拒绝了该事件; |
| 10017045 | 400 |
|
