Hello @raduiosif I am trying to edit the order status, too.
It was working, but now it doesn’t. I used that route.
Patch:
api/v2/order/ddeee183fa2d46559f41d7b846386fcb?_response=true
Json:
{
"stateId":"268EDC7D41334099AD1D456338526C20"
}
But currently I am getting this error.
{
"errors": [
{
"code": "FRAMEWORK__WRITE_CONSTRAINT_VIOLATION",
"status": "400",
"detail": "Changing the state-machine-state of this entity is not allowed for scope crud. Either change the state-machine-state via a state-transition or use a different scope.",
"template": "Changing the state-machine-state of this entity is not allowed for scope {{ scope }}. Either change the state-machine-state via a state-transition or use a different scope.",
"meta": {
"parameters": {
"{{ scope }}": "crud"
}
},
"source": {
"pointer": "/0/stateId"
}
}
]
}
Does anyone have an idea?