When you are done with the ride, you must park the bicycle back to the same station that you took it from. If you forgot which station you took it from, there is a convenient sticker on the back wheel lock.
To end the rent, you have to lock the rear lock, and finish the ride in the app. Wait until you receive a pop up msg that the rent has ended successfully.