I need to get Order detail using OrderConfirmationId in sitecore commerce storefront side(not in commerce engine). I could only find methods in OrderServiceProvider which requires OrderId to get Order. Is there any api or method from where we can get order by OrderConfirmationId/TrackingNumber. Thanks in advance.
1 Answer
You can use the normal GetVisitorOrder method from the OrderServiceProvider and pass the OrderConfirmationId into the OrderID. The engine API accepets both the orderid and orderconfirmationid as the key.