Try our conversational search powered by Generative AI!

How to manually update an order status?



I can't find anywhere in Commerce Manager (v9) order handling where I can change the order status except for cancelling the order? How do I for example update the order to Completed?
If it is not possible to do it manually, can I by code set the order status to Completed?



May 19, 2016 14:39


It depends on how should your order be handled, but if it's a normally order (which requires shipment), you will need to:

- Release the shipment (equivalent to "the warehouse is ready")

- Switch to Shipping/Receiving/Shipments/Released For Shipping, and add the shipment to a pick list (the shipment is shipped)

- In Pick Lists, mark your shipment as complete (the shipment is delivered)

When all shipments in an order are complete, the order will be Completed.



May 19, 2016 14:47

Thanks, now I understand.

Can I programaticly update the order status to Completed? We are not handling the orders in Commerce, they are transferred to another system where they are handled.


May 19, 2016 14:50

You should be able to use OrderStatusManager to set the status of Shipments and Orders.



May 19, 2016 14:53

Setting the status programatically can be done in more than one way. 

var order = OrderContext.Current.FindOrderByTrackingNumber("MyOrderNumber");

// Cancel order using OrderStatusManager. Will update the status and run the workflow 'RecalculatePurchaseOrderWorkflow'


// Or by setting the status property (which is a string), no workflow will be automatically run.

order.Status = OrderStatus.Cancelled.ToString();

Note that not all statuses can be set using the OrderStatusManager, and using the OrderStatusManager will automatically run some additional logic like running different workflows, setting shipment statuses etc.

May 19, 2016 22:11

Thanks Mattias, I will try it out!


May 19, 2016 23:44


Anaylyse your requirements before using the status manager as you may not require to run the work flows, Order Status Manager may not be best for you if your order fulfilment system is outside of EPiServer.

This might be enough for you.

purchaseOrder.Status = "Completed";

Dont use this function of order status manager to update status

SaveOrderStatus Saves changes in OrderStatusDto. Not implemented!

Cancel order notes:



May 20, 2016 13:45

Thanks K for good inout!


May 23, 2016 22:30
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.