Are you in the US? Are you still within your first 2 years of your contract with the iPhone (obviously yes). If so, you'll have to sign up to a new 2-year agreement. Just because you sold the phone doesn't mean AT&T will treat you any differently than any other customer with an iPhone. How do they know you really sold it?