Skip to main content
POST
/
api
/
rentals
/
{id}
/
cancel
curl -X POST https://api.drivex.com/api/rentals/789/cancel \
  -H "Authorization: Bearer YOUR_API_KEY"
Cancels an existing rental by updating its status to CANCELLED.

Path Parameters

id
long
required
The unique identifier of the rental to cancel

Response

Returns 204 No Content on successful cancellation.
curl -X POST https://api.drivex.com/api/rentals/789/cancel \
  -H "Authorization: Bearer YOUR_API_KEY"

Build docs developers (and LLMs) love