Market Segments and Discount Codes

Market Segments and Discount Codes

Is there a way to automate the setting the market segment, referral method, and reason for stay by discount code? 

At the moment, it appears that all reservations sent via the BW 2 Way interface default to the code BW (Best Western CRS) in all three fields.

It would save time if this were possible.