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.