Generating coupon codes with conditional logic update fields