invoice_invalid_status_transition
The target status is unreachable from the current one. The lifecycle is directed: `draft` moves to `scheduled` or `sent`, `sent` to `paid`, `overdue` or `annulled`, and `paid`, `cancelled` and `annulled` are terminal.
| Code | Type | HTTP | Category |
|---|---|---|---|
invoice_invalid_status_transition | invalid_request_error | 422 | Invoices |
Cause
The target status is unreachable from the current one. The lifecycle is directed: draft moves to scheduled or sent, sent to paid, overdue or annulled, and paid, cancelled and annulled are terminal.
What to do
Read the current status and call the operation for the step you actually need, instead of setting the target status directly.