Offline NFC-e
Deactivate device
Deactivates a till for good; the offline invoices it already issued are still uploaded.
POST
/openapi/v2/empresas/{empresaId}/nfce-offline/dispositivos/{dispositivoId}/desativarRequires the
token, timestamp and sign signature headers, see Authentication.Use it when the till is replaced, stolen or retired. There is no way back: the device is refused at its next call, wipes its local license and stops using its series. Offline invoices already issued on it are still uploaded, with the usual webhooks; when done, pendentesTransmissao reaches 0. To use the same computer again, generate a new pairing code; once pendentesTransmissao reaches 0, the new code can reuse the same series through serie. The platform sends the nfce.device.deactivated webhook. Deactivating again returns the device with no error.
Path parameters
empresaId* | string | Company identifier |
dispositivoId* | string | Device identifier |
* Required field
Request body
motivo* | string | Deactivation reason |
* Required field
200
Device deactivated.
success | bool | Call outcome |
message | string | Result text |
| object | Device object |
situacaoDevice status
| Values | Meaning |
|---|---|
| Ativo | Paired and allowed to issue |
| Desativado | Deactivated by the integrator; it never issues again. To reuse the same till, generate a new pairing code |
| Revogado | Revoked by the platform; it never issues again. Contact the platform |
| Code | HTTP | |
|---|---|---|
| 10029100 | 404 | Company does not exist or belongs to another integrator. |
| 10029202 | 404 | Device does not exist or belongs to another company. |
| 10001001 | 400 | Field validation; message points to the field. |
