how to use codes to gain customers