1. NF-e events
  2. Issue correction letter (CC-e)
POST
/nfe/{nfeId}/cce
curl --request POST \
     --url https://api.treeunfe.com.br/api/v1/nfe/{nfeId}/cce \
     --header 'x-api-key: <api-key>' \
     --header 'x-api-key: <x_api_key>' \
     --header 'Content-Type: application/json' \
     --data '{
  "nSeqEvento": 123,
  "xCorrecao": "<string>"
}'

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-api-key
required
string

The organization’s API Key (rawKey).

​
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-api-key: ORGANIZATION_RAW_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "nSeqEvento": 1,
    "xCorrecao": "Correcao do endereco de entrega para Rua das Flores, 100"
  }'