Tutorial
To get a list of all orders - call the following method
new GC.OrderService().getOrdersList()

To get detailed information about an order, you can use the method by passing it the order idOrder
new GC.OrderService().getOrderById(idOrder)

If customer chooses to cancel an order use .cancelOrder.
NOTE: Cancel allowed until order delivery started. In NEW status only.
new GC.OrderService().cancelOrder(idOrder)
Updated over 1 year ago