invalidate_numbering
Declare an NF-e numbering range reserved but never used.
NF-e numbering has to be continuous, so a gap left by a failed issuance is explained to the SEFAZ with this — not with a new document. Irreversible: a number declared unused can never be used.
Only for numbers that were never authorized. An authorized document is cancelled, never invalidated. Confirm the range with the user and read it back before calling: the range is inclusive, and one digit wrong burns numbers the company still needs.
The SDK refuses a backwards range and a reason outside 15-255 characters before anything is transmitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| series | Yes | ||
| number_end | Yes | ||
| number_start | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Local id. Use it for reissue and for submissions, and when a document was rejected and has no key. | |
| status | No | issued, rejected or cancelled. | |
| protocol | No | The authorization protocol, when granted. | |
| access_key | No | The authorizer's key. Absent while the document is not authorized. |