Default [Q] How does the trade in program work?

It asks for proof of purchase. Is it for the Moto X or for the phone I'm trading in; both? Can it be combined with the sale on Monday? And can it further be combined with the $50 friends promo code?