How to change discount code of an ambassador?

Go to the ambassadors tab and find the affiliate you want to change.

Click the edit icon, then click update next to their discount code.

You can change the discount code to an existing or new code. 

Click save.