Skip to main content
GET
/
api
/
rentals
/
{id}
curl -X GET https://api.drivex.com/api/rentals/789 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "id": 789,
  "userId": 123,
  "vehicleId": 456,
  "startDate": "2026-03-15",
  "endDate": "2026-03-20",
  "price": 450.00,
  "status": "RESERVED",
  "createdAt": "2026-03-01T10:30:00Z",
  "updatedAt": "2026-03-01T10:30:00Z"
}
Retrieves detailed information about a specific rental by its ID.

Path Parameters

id
long
required
The unique identifier of the rental to retrieve

Response

id
long
Unique identifier for the rental
userId
long
The ID of the user who made the reservation
vehicleId
long
The ID of the rented vehicle
startDate
string
Rental start date in ISO 8601 format
endDate
string
Rental end date in ISO 8601 format
price
decimal
Total rental price
status
string
Current rental status. One of:
  • RESERVED - Rental has been reserved
  • ACTIVE - Rental is currently active
  • COMPLETED - Rental has been completed
  • CANCELLED - Rental has been cancelled
createdAt
string
Timestamp when the rental was created (ISO 8601)
updatedAt
string
Timestamp when the rental was last updated (ISO 8601)
curl -X GET https://api.drivex.com/api/rentals/789 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "id": 789,
  "userId": 123,
  "vehicleId": 456,
  "startDate": "2026-03-15",
  "endDate": "2026-03-20",
  "price": 450.00,
  "status": "RESERVED",
  "createdAt": "2026-03-01T10:30:00Z",
  "updatedAt": "2026-03-01T10:30:00Z"
}

Build docs developers (and LLMs) love