TF Fiscal

NF-e Invoices

POST/api/invoice/cce/send

Send Correction Letter (CC-e)

Sends a CC-e (event 110110) to the tax authority to correct data of an already authorized NF-e. The sequence (nSeqEvento) is calculated automatically by default; it is set through n_seq_evento only in the situation described below. Only non-fiscal data can be corrected (does not correct values, CNPJ, IE, etc.).

What can be corrected via CC-e:
  • Recipient or issuer address
  • Recipient company name (without changing CNPJ/CPF)
  • Fiscal operation code (CFOP), as long as it does not change the nature of taxes
  • Product description
  • Additional data and supplementary information
What CANNOT be corrected via CC-e:
  • Tax values (tax base, rate, tax amount)
  • Product quantity and value
  • Issuer or recipient CNPJ/CPF
  • Data that changes tax calculations
Rules:
  • Only invoices with authorized (Success) status can receive CC-e
  • Correction text must be between 15 and 1000 characters
  • Up to 20 CC-e can be issued for the same invoice
  • Each CC-e consumes 1 credit

Required headers

tokenstringstringIssuing company token
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Body

uuidstringstringNF-e UUID (required if chave is absent)
chavestringstring44-digit access key of the NF-e (required if uuid is absent)
correcao*stringstringCorrection text (tax authority limit: 15–1000 characters)
n_seq_eventointintEvent sequence number.

 * Required field. At least one of uuid or chave is also required.

Invoices issued elsewhere can also receive a correction letter: the letter is an event independent of the original invoice, and the only requirement is that the issuer tax number embedded in the access key belongs to a company under this token. For such invoices the platform holds no original record, so the sequence number cannot be derived and defaults to 1. If the tax authority reports that an event with that number already exists, resubmit with a higher n_seq_evento. Correction letter PDF is not available for these invoices; only the event XML is.

Response fields (data)

motivostringstringDescription returned by the tax authority
nProtstringstringEvent protocol number
cStatintintStatus code returned by the tax authority; 135 means the event was registered
nSeqEventointintEvent sequence number used
chavestringstring44-digit access key of the invoice
cceIdstringstringCC-e record ID, identical to the id returned by /api/invoice/cce/get_list; used to download the PDF and XML

Examples

# sign = md5(token + path + body + timestamp)
# Template generated from the endpoint path; replace the placeholders
curl -X POST "https://api.tffiscal.com/api/invoice/cce/send" \
  -H "Content-Type: application/json" \
  -H "token: $TOKEN" \
  -H "timestamp: $TIMESTAMP" \
  -H "sign: $SIGN" \
  -d @body.json