$orderId = $order->getId();
$objectManager = $this->dataHelper->getObjectManager();
$order12 = $objectManager->create('\Magento\Sales\Model\OrderRepository')->get($orderId);
This code is not working in the observer. I am sending data through rest API. Getting issue in the console:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Can you please provide the solution?
Thanks