Last week, and following the iPhone performance throttling fiasco, Apple announced it would replace batteries of iPhone 6 and newer devices for a discounted $29. At the time, it was understood that to qualify for the battery replacement, your iPhone had to go through a battery diagnostic. That diagnostic would then dictate whether your battery was bad enough for Apple to replace it.
Apple will actually replace the battery of your iPhone 6 and later regardless of its condition