I have set tier price for each custom group for a product. How to do I fetch the tier price by passing customer group id to the product repository
. I am using custom REST API
Below is the code sample, I have tried
$productRepo=$this->_productRepository->getById($p,false,$storeIdFromRequest);
$productRepo->getTierPrice();
But this gives always gives me NOT LOGGED IN Customer group price.
{"2":{"price_id":"6","website_id":"0","all_groups":"0","cust_group":"0","price":"125.0000","price_qty":"1.0000","website_price":"125.0000"}}
How do I get tier price by setting customer group in the above code.
Any help would be appreciated