Create booking with quote
POST/v1/bookings
Create booking with quote
Supported roles
- Partner
- Fleet manager
Request
- application/json
Body
quoteId stringrequired
Quote ID: Get quotes
bookingReference string
comment string
flightNumber string
passenger objectrequired
title string
firstName string
lastName string
phone stringrequired
Phone number in E.164 format
email string
Responses
- 200
- 400
- 401
Create booking successfully
- application/json
- Schema
- Example (from schema)
Schema
API
accepted
- Provider accepted
bookId stringrequired
source string
Booking source:
status string
Booking status:
bookingReference string
passenger object
title string
firstName string
lastName string
phone stringrequired
Phone number in E.164 format
email string
driver object
phone string
Phone number in E.164 format
firstName string
lastName string
pickup object
latitude numberrequired
Possible values: >= -90
and <= 90
longitude numberrequired
Possible values: >= -180
and <= 180
address string
city string
country string
postcode string
destination object
latitude numberrequired
Possible values: >= -90
and <= 90
longitude numberrequired
Possible values: >= -180
and <= 180
address string
city string
country string
postcode string
pickupDateTime date-time
Pickup time in UTC timezone
vehicleType string
comment string
noPassengers integer
Number of passengers
noLuggage integer
Number of luggage
price object
value numberrequired
currency stringrequired
{
"bookId": "93123613947",
"source": "API",
"status": "accepted",
"bookingReference": "62549263846",
"passenger": {
"title": "Mr",
"firstName": "David",
"lastName": "James",
"phone": "+12051234567",
"email": "passenger@example.com"
},
"driver": {
"phone": "+12051234567",
"firstName": "Curtis",
"lastName": "Jones"
},
"pickup": {
"latitude": 42.94389871922842,
"longitude": -87.90088398474458,
"address": "Milwaukee Mitchell International Airport",
"city": "Milwaukee",
"country": "US",
"postcode": "53207"
},
"destination": {
"latitude": 43.203405744324265,
"longitude": -87.90498301216061,
"address": "225 Trillium Rd, Mequon, WI 53092, USA",
"city": "Mequon",
"country": "US",
"postcode": "53092"
},
"pickupDateTime": "2024-02-19T16:46:45.000Z",
"vehicleType": "Sedan",
"comment": "simple notes",
"noPassengers": 3,
"noLuggage": 0,
"price": {
"value": 68.86,
"currency": "USD"
}
}
Quote ID not found
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "string"
}
Loading...