purchase_invoice_not_deletable_in_current_state
Only draft and cancelled expenses can be deleted. A pending or paid one is part of the expense ledger.
| Code | Type | HTTP | Category |
|---|---|---|---|
purchase_invoice_not_deletable_in_current_state | invalid_request_error | 422 | Expenses |
Cause
Only draft and cancelled expenses can be deleted. A pending or paid one is part of the expense ledger.
What to do
Cancel the expense instead of deleting it; a cancelled expense can then be removed if you really do not want it on record.
Related
All Expenses 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.