- NF-e events
- Issue correction letter (CC-e)
NF-e events
Issue correction letter (CC-e)
Registers a CC-e for the NF-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>"
}'
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
| Status | Description |
|---|---|
200 | Event processed. |
400 | Invalid body (missing required field, wrong format, or field not allowed). |
401 | Credential missing, invalid, or expired. |
404 | Resource not found. |
422 | CC-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"
}'
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"
}'
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>"
}'
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>"
}'