Async Booking (Cart)
Submit your order
POST /api/cart/{cartId}/order/submit
This endpoint allows you to submit booking
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
customer
object
Customer Details
customer.title
string
customer.firstName
string
customer.lastName
string
customer.email
string
customer.phone
string
products
array of objects
products.*._id
integer
products.*.type
string
Parking / Hotel / Lounge
products.*.flight
object
flight details
products.*.flight.inbound_flight
string
products.*.flight.outbound_flight
string
inbound or outbound
products.*.flight.inbound_terminal
string
products.*.flight.outbound_terminal
products.*.vehicle
object
products.*.vehicle.vehicle_reg
string
products.*.vehicle.vehicle_make
string
products.*.vehicle.vehicle_model
string
products.*.vehicle.colour
string
products.*.vehicle.passengers
integer
Sample Request
{
"customer": {
"title": "Mr",
"firstName": "mark",
"lastName": "test",
"email": "[email protected]",
"phone": "07530000000"
},
"products": [
{
"_id": "6924799dd71d0",
"type": "Parking",
"vehicle": {
"arrival_time": "",
"return_time": "",
"vehicle_make": "qweqweqwe",
"vehicle_model": "qweqwe",
"vehicle_reg": "qweqwqwe",
"vehicle_colour": "qweqwe",
"passengers": 1
},
"flight": {
"inbound_flight": "qweqwe",
"inbound_terminal": "",
"outbound_flight": "qwe",
"outbound_terminal": "",
"destination_airport": "TBC",
"destination": "TBC",
"inbound_depart_point": "TBC"
}
}
]
}Response
{
"success": true,
"order": "123abc",
"message": "Order created"
}{
"error": "Invalid request"
}Last updated