TF Fiscal
Documentation

DC-e

Cancel DC-e

Requests the cancellation of an authorized DC-e (within 24 hours after authorization); asynchronous, result via webhook.

POST/openapi/v2/empresas/{empresaId}/dc-e/{dceId}/cancelar
Requires the token, timestamp and sign signature headers, see Authentication.

Acceptance returns HTTP 200 with no body, the document moves to CancelamentoPendente, and the platform registers cancellation event 110111 with SEFAZ asynchronously. The result arrives through the webhook dce.canceled (Cancelada) or dce.cancel_rejected (CancelamentoNegado), and can also be polled through the query. The official DC-e has cancellation only: no correction letter, no number invalidation.

Path parameters

empresaId*
stringIssuing company identifier
dceId*
stringDocument identifier

* Required field

Request body

motivo
stringCancellation reason

* Required field

200
Cancellation accepted; no response body. The document moves to CancelamentoPendente; the SEFAZ verdict arrives through the webhook.

No response body

A POST without a body signs with the empty string as body; a POST with a body (cancellation with a reason) signs the raw JSON with CR/LF removed, exactly like the JSON endpoints. If you send { "motivo": ... }, include that same text in the signature. See Authentication.