1. Guides
  2. NF-e events

Events are registered on an NF-e that has already been authorized. The {nfeId} is the invoice’s ID at Treeunfe (UUID), not the access key.

​
Cancellation

POST /nfe/{nfeId}/cancel

{ "xJust": "Valor incorreto informado na nota" }
FieldRule
xJustJustification, 15 to 255 characters.

Cancellation is only accepted within the deadline set by the SEFAZ of the issuer’s state.

​
Correction letter (CC-e)

POST /nfe/{nfeId}/cce

{
  "nSeqEvento": 1,
  "xCorrecao": "Correcao do endereco de entrega para Rua das Flores, 100"
}
FieldRule
nSeqEventoSequence number of the correction for this invoice. Start at 1 and add 1 for each new CC-e.
xCorrecaoText, 15 to 1000 characters.

Each new CC-e replaces the previous one. Repeat in the text every correction that still applies.

A CC-e cannot correct:

  • amounts and taxes (tax base, rate, price difference, quantity, value);
  • data that would change the issuer or the recipient;
  • the issue date or the departure date.

​
Get CC-e

GET /nfe/{nfeId}/cce returns the correction letters registered for the invoice.