Red Flag = "T-Mobile Store" = company owner
BLUE flag = "Authorized Retailer" = a business authorized by TM to sell their products
TM can withdraw that license, and would do that if the business is acting in a disreputable manner.
I don't know how TM deals w. making a customer whole who pocketed money paid for a phone and didn't pay TM. I'm sure IF you can prove you paid the dealer for the same phone that TM is also trying to charge you for, they will do "something". You just need to find the right dept. at TM.