you have to call t-mobile and in 24+ hrs you will get the code. if you are no longer with t-mobile, take it to an "authorized" t-mobile shop and they will unlock it for you for a small fee.