In Pokémon X and Pokémon Y, you can earn “Poké Miles” within certain parts of the game, reports Serebii.net. Poké Miles are used in the PokéMileage Club to play attractions and receive items at the Pokémon Global Link website.
These items can then be sent back to the two Nintendo 3DS games; however, there is another way to earn these items as well. Dream Points in the Pokémon Global Link can be converted to Poké Miles as well, and the amount you get varies, depending on which of the Pokémon RPGs you own.
More details can be found over at Serebii.net. Something else to note is that the Pokémon Global Link for the Gen 5 games (Black/White, Black 2/White 2) will be closing soon, with January 14th, 2014 set as the closing date.