From your xbox, use redeem code, enter the code, and click next. It'll tell you what the code is, and ask if you want to redeem or cancel. Or, if it doesn't work, it'll just say invalid code.
This will NOT work on xbox.com. It'll immediately be redeemed if you try this from xbox.com. Do it from your console.