Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.47 KB

sales_order.md

File metadata and controls

68 lines (48 loc) · 1.47 KB

Sales Order

Allows you to add a new comment to the order.

magento.salesOrder.addComment({
  orderIncrementId: val,
  status:           val,
  comment:          val,  /* optional */
  notify:           val   /* optional */
}, callback);

Allows you to cancel the required order.

magento.salesOrder.cancel({
  orderIncrementId: val
}, callback);

Allows you to place the required order on hold.

magento.salesOrder.hold({
  orderIncrementId: val
}, callback);

Allows you to retrieve the required order information.

magento.salesOrder.info({
  orderIncrementId: val
}, callback);

Allows you to retrieve the list of orders. Additional filters can be applied.

magento.salesOrder.list(callback);

// or 

magento.salesOrder.list({
  filters: { key: 'val' }
}, callback);

Allows you to unhold the required order.

magento.salesOrder.unhold({
  orderIncrementId: val
}, callback);