purchase_invoice_not_editable_in_current_state
Only a draft purchase invoice can be edited. Once registered as pending, paid or cancelled, its content backs an accounting entry.
| Code | Type | HTTP | Category |
|---|---|---|---|
purchase_invoice_not_editable_in_current_state | invalid_request_error | 422 | Purchase Invoices |
Cause
Only a draft purchase invoice can be edited. Once registered as pending, paid or cancelled, its content backs an accounting entry.
What to do
Move the invoice back to draft if it is still pending, or record the difference with a new document if it is already settled.
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.