invoice_not_unsendable_in_current_state
Undoing the delivery mark only applies to an issued invoice (`issued` or `overdue`; published as `sent` before API version `2026-10-01`) with no active payments: it clears `sent_at` and `sent_via` and keeps its fiscal status.
| Code | Type | HTTP | Category |
|---|---|---|---|
invoice_not_unsendable_in_current_state | invalid_request_error | 422 | Invoices |
Cause
Undoing the delivery mark only applies to an issued invoice (issued or overdue; published as sent before API version 2026-10-01) with no active payments: it clears sent_at and sent_via and keeps its fiscal status.
What to do
A draft or scheduled invoice has no delivery to undo, and a cancelled or annulled one no longer changes. If the invoice has active payments, revert them first; to withdraw the invoice itself, annul it or issue a corrective invoice.
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.