Visit Xbox's https://www.xbox.com website and sign in.
Hover over your account (top right) and select "Redeem Code."
Enter your code, then click "Confirm" twice.