TF Fiscal
Documentation

NF-e

Cancel NF-e

Cancels an authorized invoice within 24 hours of authorization.

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

Cancels an authorized invoice; success is HTTP 200 with no body, and the query endpoint then returns Cancelada. Authentication errors (10009xxx) are listed under Authentication.

Path parameters

empresaId*
stringCompany identifier
nfeId*
stringInvoice identifier

* Required field

200
Cancellation registered with SEFAZ; no body.

No response body

  • Autorizada invoices only; any other status returns 10004012.
  • Up to 24 hours after authorization; some states allow more, per platform configuration. Outside the window returns 10004013, and only a return invoice can be issued instead.
  • The call is synchronous: HTTP 200 only after SEFAZ registers the cancellation. A SEFAZ refusal returns 10004014 with the reason.
  • Correction letters already registered remain queryable after cancellation, see List correction letters.