How do you unlock levels in sonic sega all stars racing?

You can unlock courses from the Sega Shop using your Sega Miles that you have collected to purchase them.