CT-e
Cancel service disagreement
Registers event 610111, cancelling a service disagreement registered by this company.
/openapi/v2/empresas/{empresaId}/cte/{chaveAcesso}/desacordo/{protocoloEvento}Requires the token, timestamp and sign signature headers, see Authentication.
No body; sign with the empty string. Only 610110 events registered by this company can be cancelled; protocoloEvento is the protocol of that event (10017045).
Parameters
Path parameters
empresaIdstringrequiredCompany (carrier) identifier returned at registration.
Example:1934811222334455chaveAcessostringrequired44-digit access key of the CT-e issued by another company.
Example:35260940673061000134570010000000011000000010protocoloEventostringrequiredProtocol number (
protocolo) of the event to cancel, returned when the event was registered or in the event list.Example:135260000000099
Responses
Event registered with SEFAZ. The event object is returned synchronously.
chaveAcessostring44-digit access key of the CT-e the event was linked to.
tipostringEvent type.
Values:CancelamentoCartaCorrecaoComprovanteEntregaCancelamentoComprovanteEntregaInsucessoEntregaCancelamentoInsucessoEntregaPrestacaoDesacordoCancelamentoPrestacaoDesacordoEpeccodigostringSEFAZ event code (tpEvento):
110111,110110,110113,110180,110181,110190,110191,610110,610111.sequenciaintegerSequence number of the event within its type (the correction letter auto-increments).
statusstringcStat returned by SEFAZ;
135means the event was registered and linked.motivostringxMotivo returned by SEFAZ.
protocolostringEvent protocol number; use it as
protocoloEventoto cancel the event.datastringEvent registration date and time, ISO-8601 in UTC.
linkXmlstringDownload link of the event XML (procEvento). See File download.
Errors
| Code | HTTP | |
|---|---|---|
| 10003000 | 404 |
|
| 10017043 | 400 | SEFAZ rejected the event; |
| 10017045 | 400 | The event referenced by |
