NFC-e
Cancel NFC-e
Cancels an authorized NFC-e within 30 minutes after authorization; asynchronous.
POST
/openapi/v2/empresas/{empresaId}/nfce/{nfceId}/cancelarRequires the
token, timestamp and sign signature headers, see Authentication.Only for an Autorizada invoice, within 30 minutes after authorization and before the goods leave the shop; some states allow less. After the deadline SEFAZ no longer accepts it and NFC-e has no late cancellation: in most states the fix is to issue an NF-e. NFC-e has no correction letter; a wrong invoice can only be fixed by cancelling within the deadline and issuing another.
Path parameters
empresaId* | string | Issuing company identifier |
nfceId* | string | NFC-e identifier |
* Required field
Request body
justificativa | string | Cancellation reason |
* Required field
200
Accepted; no body. The result arrives by webhook and shows in the query.
No response body
| Code | HTTP | |
|---|---|---|
| 10022006 | 404 | nfceId not found for this company. |
| 10003000 | 404 | empresaId not found. |
| 10022008 | 400 | Status does not allow it: the invoice is not Autorizada, or a cancellation is already in progress. |
| 10022007 | 400 | Cancellation deadline passed. |
| 10001001 | 400 | justificativa outside 15 to 255 characters. |
