Reputation: 541
I want to update order status using Magento 2 REST API, for this purpose i use this api,
hostname/magento/index.php/rest/V1/orders
and also pass json data in POST request
$data_json = [
'entity'=> [
'entity_id' => 1,
'state'=>'processing',
'status'=>'Processing',
]
];
after executing above code it always update state and status as completed. Please specify what i am doing wrong.
Thanks in advance.
Upvotes: 1
Views: 4524
Reputation: 26
try this as params, its working. Updated state and status both to processing
{
"entity": {
"entity_id": 1,
"state":"processing",
"status": "processing"
}
}
Check mapping from table sales_order_status_state
.
Upvotes: 1