1. NF-e events
  2. Issue correction letter (CC-e)
POST

Registers a CC-e (correction letter) for the NF-e. A CC-e cannot correct amounts, taxes, registration data that would change the issuer/recipient, or the issue date.

​
Authentication

x-enterprise-key
required
string

Enterprise key with this route’s permission. See Authentication.

x-organization-id
required
string

ID of the organization (issuing company) the operation applies to.

​
Path parameters

nfeId
required
string

The NF-e’s ID (UUID) at Treeunfe.

​
Body

application/json

nSeqEvento
required
integer

Sequence number of the correction for this invoice. Start at 1 and add 1 for each new CC-e.

xCorrecao
required
string

Correction text (15 to 1000 characters). Each new CC-e replaces the previous one, so repeat every correction.

​
Responses

StatusDescription
200Event processed.
400Invalid body (missing required field, wrong format, or field not allowed).
401Credential missing, invalid, or expired.
404Resource not found.
422CC-e rejected by SEFAZ.
curl -X POST "https://api.treeunfe.com.br/api/v1/nfe/006f917a-21a5-491d-90b4-f745d96385e7/cce" \
  -H "x-enterprise-key: YOUR_ENTERPRISE_KEY" \
  -H "x-organization-id: ORGANIZATION_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "nSeqEvento": 1,
    "xCorrecao": "Correcao do endereco de entrega para Rua das Flores, 100"
  }'