End a rental
POST/v1/rental/:rentalID/end
Locks the vehicle, makes it available to other users, and returns the total cost of the rental. The partner typically starts the payment process when ending the rental.
After 10 minutes of inactivity during an ongoing rental (the vehicle hasn't moved), the vehicle locks automatically and the rental ends — provided it is somewhere ending the rental is permitted.
Location: if a start/end location is provided via the API, the phone's location is used to define the end-ride position; otherwise the vehicle's own location (updated every 15 seconds) is used.
Parking photo: the response includes a pre-signed photoUploadURL — PUT a photo of the parked vehicle to it (see Validate parking photo).
See Payments for fines, short-ride rules and refunds.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Successfully return rental data
Bad request
Unauthorized
Not found
Internal server error