Bookings
Create a booking
A booking is a temporary hold on a trip. It is not confirmed until the payment is processed.
post/bookings
Request body
Example request
{
"id": "3f3e3e1-c824-4d63-b37a-d8d698862f1d",
"trip_id": "4f4e4e1-c824-4d63-b37a-d8d698862f1d",
"passenger_name": "John Doe"
}Response
Booking successful
Example response
{
"id": "3f3e3e1-c824-4d63-b37a-d8d698862f1d",
"trip_id": "4f4e4e1-c824-4d63-b37a-d8d698862f1d",
"passenger_name": "John Doe"
}