The biggest issue will be the battery. Lithium batteries deteriorate with age, so if it's a few years old, don't expect to get a great deal of miles out of it before the battery runs out of juice.
If you can test ride the bike, then excellent. If not, proceed with caution.
Nothing worse than...