Record order activities
Describes how to record the tracking history of a specific orders for audit and analysis purposes in Optimizely Customized Commerce.
A wide range of events related to order/shipment status update, payment and promotion of an order will be automatically recorded and users can view it in the Order Notes section in the Order Management view.
OrderActivity logs order activities from the Order Managament (CSR). Recording of order activities is based on the OrderNote feature. The OrderActivityEvent enum defines events that will be recorded when processing an Order, and the IOrderActivity interface extends from IOrderNote.
When processing an Order, activities will be recorded automatically to the OrderNote collection, and the OrderNote collection of OrderGroup will contain both OrderNote and OrderActivity. You can add custom OrderNote in Order Management. These are of Custom note type, whereas the OrderActivity is a System note type which cannot be updated or deleted.
This defines the event types that will be recorded for OrderActivity.
|OrderGroupCreated||A purchase order is created.|
|OrderGroupOnHold||The order is on hold.|
|OrderGroupCompleted||The order is completed.|
|OrderGroupInProgress||The order is in progress.|
|OrderGroupCancelled||The order is canceled.|
|ShipmentAwaitingInventory||The shipment is waiting for inventory.|
|ShipmentCancelled||The shipment is canceled.|
|ShipmentPacking||The shipment is added to pickList.|
|ShipmentReleased||The shipment is released.|
|ShipmentShipped||The shipment is shipped.|
|ReturnCreated||A return is created.|
|AddingPayment||A new payment is added.|
|CreatingRefund||A refund is created for the order.|
|ReturnReceiptItems||The return has been received.|
|PromotionAddCoupon||A coupon code is added.|
|PromotionManualDiscount||A manual discount is added.|
|PromotionRemoveCoupon||A coupon code is removed.|
IOrderActivity extends from IOrderNote.
|EventType||OrderActivityEvent||The event type defined in the OrderActivityEvent enum.|
|Channel||string||The channel of the order activity, for example Order Management.|
Loading OrderActivity for OrderGroup
OrderGroup, all OrderActivity, and OrderNote will be loaded in the OrderNotes property.
Updated 17 days ago