An e-bike can be shipped just like any bicycle. However, there are special considerations (and some restrictions) due to the battery. For example, current FAA (Federal Aviation Administration) regulations prohibit any lithium ion battery containing more than 160-watt hours from carriage on all passenger aircraft.
Typical e-bike batteries range from about 300 watt-hours (abbreviated WH) to about 1,000 WH. This means that you cannot fly with most e-bike batteries. Similar rules apply to shipping an e-bike through a carrier service like UPS or FedEx. You may, however, be able to ship an e-bike battery using delivery types that do not make use of aircraft (i.e., Ground service). Check with the carrier for specific requirements.