If you want to retrieve anything via a rest API, see: https://docs.mendix.com/refguide7/call-rest-action. You will be passing along the order an you will be receiving the orderlines containing the product.
Add a listview and do a retrieve over the association order_product (if there is one)?
You really need to give more information if you want us to be able to help you.