1. NF-e events
  2. Void number range
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

StatusDescription
200Voiding processed.
400Invalid body (missing required field, wrong format, or field not allowed).
401Missing, invalid, or expired credential.
422Voiding 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"
  }'