This process varies with brand. Process will be shared in the terms and conditions of each brand. It goes as part of the email too. 

For most of the brands, one has to enter the codes during checkout for online shopping or show to the billing counter for physical stores.