Option 1: Redeem on Console
Sign in to Xbox Live on your console.
Press the Xbox button on your controller and go to Home.
Scroll right and choose the Store tab.
Choose Use a code.
Enter the 25-character code, then follow the prompts. Don’t worry about hyphens, the system takes care of those for you.
Option 2: Redeem on Website
Go to Xbox.com and sign in to your Xbox Live account.
Click on your username/icon in the top right corner and select Redeem code.
Enter your product code and activate the game to your Xbox Live account.
Xbox Game on Windows 10 PC
Some games have the ability to be played on Windows 10 PCs using Xbox Play Anywhere.
To take advantage of Xbox Play Anywhere, you will need to have installed the Windows 10 Anniversary Edition update on your PC, as well as the latest update on your Xbox One console.
Then, simply log into your Xbox Live/Microsoft account and your Xbox Play Anywhere games will be available to download. You can redeem the PC code here.
For more information about Xbox Play Anywhere, visit the official website here.