Base URL
Get All Trip Bookings
Retrieve a list of all trip bookings in the platform.
Response
Array of trip booking objects
Example
Get Trip Booking by ID
Retrieve details of a specific trip booking by its ID.
Path Parameters
The unique identifier of the trip booking
Response
Returns a single trip booking object with the same structure as described in Get All Trip Bookings.Example
Create Trip Booking
Create a new trip booking in the system.
Request Body
Start date and time of the trip
End date and time of the trip
Trip status (e.g., PENDING, CONFIRMED, CANCELLED, COMPLETED)
Reason for cancellation (optional, used when status is CANCELLED)
Additional notes or comments about the trip
Whether this trip should be marked as favorite
Response
Returns the created trip booking object including the generatedtripId and timestamps.
Example
Update Trip Booking
Update an existing trip booking by its ID.
Path Parameters
The unique identifier of the trip booking to update
Request Body
Accepts the same fields as Create Trip Booking. All fields are optional - only include fields you want to update.Start date and time of the trip
End date and time of the trip
Trip status
Reason for cancellation
Additional notes or comments
Whether this trip is marked as favorite
Response
Returns the updated trip booking object.Example
Delete Trip Booking
Delete a trip booking by its ID.
Path Parameters
The unique identifier of the trip booking to delete