purchase_invoice_not_deletable_in_current_state
Only draft and cancelled purchase invoices 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 | Purchase Invoices |
Cause
Only draft and cancelled purchase invoices can be deleted. A pending or paid one is part of the expense ledger.
What to do
Cancel the invoice instead of deleting it; a cancelled invoice can then be removed if you really do not want it on record.
Related
All Purchase 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.