Log in
Interface

OrderManagementInterface

Magento\Sales\Api\OrderManagementInterface

What it does

This interface defines the contract for managing order operations in Magento 2.

Developers use this to perform actions like canceling orders, adding comments, holding/unholding orders, sending notifications, retrieving order status, and placing new orders.

It's typically injected into classes that need to manipulate order lifecycle and status programmatically.

Public Methods

  • cancel()
  • getCommentsList()
  • addComment()
  • notify()
  • getStatus()
  • hold()
  • unHold()
  • place()