The code is based on the IMEI of the phone, so it's different for each phone. If AT&T won't give it to you (they should if the phone is paid off - if it isn't, and you stop paying for it they'll blacklist it and it won't work on T-Mobile either), look in ebay for people selling unlock codes.