sales_order_not_editable
The order already left the state that admits changes: once it is confirmed, being picked, served, invoiced or cancelled, neither its header nor its lines can be edited.
| Code | Type | HTTP | Category |
|---|---|---|---|
sales_order_not_editable | invalid_request_error | 422 | Sales Orders |
Cause
The order already left the state that admits changes: once it is confirmed, being picked, served, invoiced or cancelled, neither its header nor its lines can be edited.
What to do
Read the order status before editing: only a draft order accepts changes. On an order already under way, cancel what is still pending or issue a new order instead of rewriting this one.
Related
All Sales Orders 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.