- NF-e events
- Void number range
NF-e events
Void number range
Voids at SEFAZ an unused range of NF-e numbers
POST
Voids (inutilização) at SEFAZ a range of NF-e numbers that was skipped and will not be used. See when to use it in NF-e events.
Authentication
x-enterprise-key
required
string
Enterprise key with permission for this route. See Authentication.
x-organization-id
required
string
ID of the organization (issuing company) the operation runs in.
Body
application/json
CNPJ
required
string
Issuer CNPJ, 14 digits, no punctuation.
mod
required
number
Document model. Use 55 (NF-e).
serie
required
number
Series of the numbers to void.
nNFIni
required
number
First number of the range.
nNFFin
required
number
Last number of the range. To void a single number, repeat the nNFIni value.
xJust
required
string
Justification (15 to 255 characters).
Responses
| Status | Description |
|---|---|
200 | Voiding processed. |
400 | Invalid body (missing required field, wrong format, or field not allowed). |
401 | Missing, invalid, or expired credential. |
422 | Voiding rejected by SEFAZ (for example, a number already used or a range already voided). Read the reason in the response. |
curl -X POST "https://api.treeunfe.com.br/api/v1/nfe/inutilizations" \
-H "x-enterprise-key: YOUR_ENTERPRISE_KEY" \
-H "x-organization-id: ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"CNPJ": "12345678000195",
"mod": 55,
"serie": 1,
"nNFIni": 15,
"nNFFin": 20,
"xJust": "Numeracao pulada por falha no sistema emissor"
}'
curl -X POST "https://api.treeunfe.com.br/api/v1/nfe/inutilizations" \
-H "x-enterprise-key: YOUR_ENTERPRISE_KEY" \
-H "x-organization-id: ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"CNPJ": "12345678000195",
"mod": 55,
"serie": 1,
"nNFIni": 15,
"nNFFin": 20,
"xJust": "Numeracao pulada por falha no sistema emissor"
}'