TF Fiscal
Documentation

NFC-e

Cancel NFC-e

Cancels an authorized NFC-e within 30 minutes after authorization; asynchronous.

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

Only for an Autorizada invoice, within 30 minutes after authorization and before the goods leave the shop; some states allow less. After the deadline SEFAZ no longer accepts it and NFC-e has no late cancellation: in most states the fix is to issue an NF-e. NFC-e has no correction letter; a wrong invoice can only be fixed by cancelling within the deadline and issuing another.

Path parameters

empresaId*
stringIssuing company identifier
nfceId*
stringNFC-e identifier

* Required field

Request body

justificativa
stringCancellation reason

* Required field

200
Accepted; no body. The result arrives by webhook and shows in the query.

No response body

Registered at SEFAZ: the invoice becomes Cancelada and the nfce.canceled webhook arrives. Rejected by SEFAZ: the invoice stays valid, nfce.cancel_rejected arrives and the query shows the reason in motivoStatus. Payloads are in Webhooks.