invoice_not_deletable_in_current_state
Only `draft` and `cancelled` invoices can be deleted. A numbered invoice never disappears: the correlative sequence must stay auditable.
| Code | Type | HTTP | Category |
|---|---|---|---|
invoice_not_deletable_in_current_state | invalid_request_error | 422 | Invoices |
Cause
Only draft and cancelled invoices can be deleted. A numbered invoice never disappears: the correlative sequence must stay auditable.
What to do
Cancel the draft, or annul the issued invoice; deletion is not a path for it.
Related
All Invoices error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.