/api/invoice/cce/sendSend 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.).
- 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
- Tax values (tax base, rate, tax amount)
- Product quantity and value
- Issuer or recipient CNPJ/CPF
- Data that changes tax calculations
- 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
tokenstring | string | Issuing company token |
signstring | string | MD5 signature |
timestampstring | string | Unix timestamp in seconds |
Body
uuidstring | string | NF-e UUID (required if chave is absent) |
chavestring | string | 44-digit access key of the NF-e (required if uuid is absent) |
correcao*string | string | Correction text (tax authority limit: 15–1000 characters) |
n_int | int | Event sequence number. By default it is derived from the correction letters already registered on this platform. Provide a higher value explicitly when the invoice has received correction letters elsewhere |
* 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)
motivostring | string | Description returned by the tax authority |
nProtstring | string | Event protocol number |
cStatint | int | Status code returned by the tax authority; 135 means the event was registered |
nSeqEventoint | int | Event sequence number used |
chavestring | string | 44-digit access key of the invoice |
cceIdstring | string | CC-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
{
"uuid": "4663a257-adf1-4561-971f-6aaffbd30ca8",
"correcao": "Corrigir nome do destinatario para Empresa XYZ LTDA"
}
{
"success": true,
"message": "成功",
"data": {
"motivo": "Evento registrado e vinculado a NF-e",
"nProt": "135210000123456",
"cStat": 135,
"nSeqEvento": 1,
"chave": "35260112345678000199550010000001001000000017",
"cceId": "65fa1b2c3d4e5f6a7b8c9d0e"
}
}