If you contact Apple Support, they can also ship you a replacement, if your device is eligible for service or Out-of Warranty repair.
Check this article about it: Apple - Support - Service Answer Center
Choosing a service option
You can request repair service from your carrier (except AT&T and Virgin Mobile), directly from Apple, or from a local Apple Authorized Service Provider. If you get service through Apple, you can mail us your iPhone or make an appointment with a Genius at an Apple Retail Store.
About repair service
When you send your iPhone to Apple, we’ll examine it to confirm it’s eligible for the service you requested. If your iPhone is eligible, we’ll either repair your iPhone or replace it. The replacement will be new or equivalent to new in both performance and reliability. If we determine that your iPhone is eligible for a different service than the one you requested, we’ll contact you with more information.
...
Out-of-warranty service
If your iPhone or the required service isn’t covered by Apple’s One Year Limited Warranty, AppleCare+, or AppleCare Protection Plan, you may still be able to get out-of-warranty service. For example, an iPhone damaged by liquids may be eligible for out-of-warranty service. Apple reserves the right to determine whether your device is eligible. See Apple’s Repair Terms and Conditions for complete details.
Read Apple’s Repair Terms and Conditions
See out-of-warranty service pricing
Before you send your iPhone for service, back it up!
Your content is important, and you’ll need the backup to restore your iPhone after service. Apple will delete the content on your iPhone during the service process, regardless of whether you bring it to your carrier, take it to an Apple Retail Store, or mail it in.
...