You must be or have been a TMO customer before they will provide an unlock codes otherwise you need the original owner who was the TMO customer to request it. If you are then here are the requirements and procedure for requesting it.
Good morning macisco9! Thank you for posting, I apologize for the delay in our reply! I hope you were able to locate the steps to Unlock your mobile wireless device - but if not, please take a peek! We don't have the ability to complete an unlock request in this user forum, but if you're a current or former T-Mobile customer and your account and equipment meet the requirements outlined in that document, you're welcome to Contact Us through Customer Care or T-Force (social media teams on Twitter or Facebook) to have the request submitted! Thank you.