You have 60 days from day of purchase. If you already have the phone. You can either call apple so they can run a quick test and add it. Or go into an Apple Store to do it
you have to buy it with the phone if you want to buy it online if you want to purchase it after you have 60 days and it has to be done over the phone or in person