The serial number of the battery of a bike with Bosch eBike System can be found:
on your invoice,
in your E-Bike Passport,
in the Flow app or eBike Connect app from Bosch and
on your display under the menu item "Settings".
Additionally, your dealer can create a diagnostic report during an inspection, which includes all serial numbers.