invoice_not_unsendable_in_current_state
Undoing the delivery mark only applies to a `sent` invoice: it clears `sent_at` and keeps the invoice issued.
| Code | Type | HTTP | Category |
|---|---|---|---|
invoice_not_unsendable_in_current_state | invalid_request_error | 422 | Invoices |
Cause
Undoing the delivery mark only applies to a sent invoice: it clears sent_at and keeps the invoice issued.
What to do
Do not use it on paid, overdue, annulled or cancelled invoices — those need a corrective invoice or an annulment, not an undo.
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.