All forms of transport in Shanghai require a licence. Bicycles, Electric Bikes, Mopeds / Scooters, Cars etc. Riding without one is not recommended, as this can lead to fines, deportation, and jail in worst case scenario's.
Electric Bikes/ Scooters are not exempt from requiring a licence, despite what the nice man at the shop selling you the bike, or others on this forum might say.
To be street legal in Shanghai, you need a plate.
1) Only bikes purchased in Shanghai can get a Shanghai plate.
Keep your official receipt (fapiao) when you buy the bike, as it needs to be used to get your licence.
2) As of a law passed in April 2008, Shanghai Electric bikes have to be:
* Under 40kg.
* Not capable of speeds faster than 20km/hr.
Effectively this means only bikes < 36v.
* Listed in the allowed vehicle database for Shanghai.
Legal bikes have a 15 digit unicode (like a car VIN) which is unique. Manufacturers have to apply for a production licence for this, and not all have done so.
A list of licenced manufacturers is available here:
http://www.shbicycle.com/Article/ShowArticle.asp?ArticleID=6230
If you own a bike that is older than that date that does not conform to the above, and you had a legal licence at that time, then it can be renewed each year, and its still legal.
3) To licence an electric bike/scooter/moped you need to visit the police station for your district.
You will need to bring:
* - The fapiao for the bike
* - Valid form of ID (Passport for foreigners)
* - The bike
* - Money to pay for the licence (11rmb currently)