You have to pay the phone off if its in contract. To unlock if you have completed the contract years then they will offer free unlock or if yu are signing off early they might offer unlock. If they deny unlock in any case, you can approach third party unlock vendors like Mobileunlocksolutions.com and remove the network lock easily.