Hi - I think it's fair to say that the vast majority of pedal assist ebikes have detachable , and therefore swappable, batteries. Usually mounted in the frame like the Bosch system or on the rack
Some also go behind the seatpost requiring a longer frame which doesn't suit everyone
Take a look...