I had my battery replaced which isnt covered under CPO warranty. BMW charged me $200 for the correct battery which is what I found it for online. But then they charge an hour labor to register the battery to the car which you have to have done. So your looking at roughly around $300 through BMW, but if you can find a local shop that works on BMW they might be able to do it for a few bucks cheaper.
2012 BMW X5 xDrive35i E70 Sport Activity
(Wife's Daily Driver) 2000 BMW 328ci E46 - less than 90k miles
(Gone) 2007 BMW 335i E90