Rentals API
End rental
End or cancel a rental with a DELETE request — for example, when a driver with an ongoing monthly rental (no end date) wishes to cancel.
DELETE
https://api.airgarage.com/rentals/{uuid}Path parameters
| Name | Type | Description |
|---|---|---|
uuidRequired | string | UUID of the rental, returned when it was created. |
Headers
| Name | Type | Description |
|---|---|---|
X-Api-KeyRequired | string | Your access token. |
curl -X DELETE https://api.airgarage.com/rentals/hT4kQnW2xLmZ8vRbYc3dFa/ \
-H "X-Api-Key: YOUR_API_KEY"Responses
- 204The rental was ended. No response body is returned.
- 401Missing or invalid API key.
- 404No rental with that UUID exists under your API key. You can only end rentals you created.