The device must have been active on the T-Mobile network for at least 40 days on the requesting line. SIM Unlock Policy | Unlock Your Mobile Wireless Device

According to the official T-Mobile SIM Unlock Policy , all devices must meet these basic criteria before they can be unlocked:

The account must be active and in good standing with no past-due balances.

The device must be an official T-Mobile or authorized product.