I have a problem with tier prices and configurable products in magento2. In our solution the customer puts everything in their cart and then in the checkout they qualify for a customer group and through that also for a tier price.
This works very well with simple products. After they have qualified for the price i can make a get request for the rest api and get the totals with these prices updated from the backend. However, configurable products does not seem to update.
The code sets the customer group for the checkout/customer session and then runs collecttotals:
$this->_customerSession->setCustomerGroupId($level->getCustomerGroup());
$this->_checkoutSession->setCustomerData($customerInterface);
$quote->collectTotals()->save();
customerInterface object is initalized and has the same group id as mentioned in the code.
I find it very weird that the code acts so differently on a configured product as opposed to a simple one.
Any help would be appreciated.