Earlier quoted context omitted.
Are you sure about that 2017 Macbook Air? I have a 2013 Macbook Pro and I'm getting the battery replaced next week by Apple. My laptop is over 10 years old and they're still doing it at their standard battery replacement price.
My mistake, I mixed up a Macbook pro and an Air. The Air was from 2014, the pro is 2017. Could it be regional differences ? I rechecked on the online support page - both Jp and Fr -, and repair support falls off right at 2015 (which is nothing to sneeze at for a maker, but I'd still wish for more)
When I did, they couldn't guarantee to repair my 2013 laptop, but they sent out a parts request to see if they had a replacement part in the warehouse (top case), and they did have one, and they were happy to use the battery replacement price if my battery showed the "service recommended" state, same rule as for newer models.
They don't provide a warranty for repair on such an old machine, because they can't guarantee being able to find another replacement part.
I asked for a price on a screen replacement too and they didn't have a screen, so couldn't do that. The screen is in pretty good shape though.