The main reason why Minecraft is saying such an error is that you might have signed in with a different account than you used to buy it. If you have more than one account, it is a common problem. You need to use the same account that you used to purchase anything on Minecraft.