TF Fiscal
Documentation

CT-e

Cancel CT-e

Registers cancellation event 110111 on an authorized CT-e, within 168 hours after authorization.

POST/openapi/v2/empresas/{empresaId}/cte/{cteId}/cancelar
Requires the token, timestamp and sign signature headers, see Authentication.

Cancelling makes an already authorized CT-e void; the document does not disappear, it starts to show as cancelled at SEFAZ. The body is optional. Event 110111 is registered synchronously and the event object is returned. Constraints: the document must be Autorizada (10017040), within 168 hours after authorization (10017041), and a CT-e with a registered correction letter cannot be cancelled (10017048); a SEFAZ rejection returns 10017043. Because this POST may carry a body, sign the raw JSON with CR/LF removed; with no body, sign with the empty string.

Path parameters

empresaId*
stringCompany identifier
cteId*
stringDocument identifier

* Required field

Request body

motivo
stringCancellation reason

* Required field

200
Event registered with SEFAZ. The event object is returned synchronously.
chaveAcesso
stringAccess key
tipo
stringEvent type
codigo
stringEvent code
sequencia
intSequence
status
stringReturn code
motivo
stringReason
protocolo
stringProtocol
data
stringRegistration time
linkXml
stringEvent XML link