Tentative Flight Booking
This API Endpoint makes a POST request to the Travu Booking service in other to make a TENTAIVE BOOKING request to to the associated airline operators based on the selected itinerary. We are finally ready to make the tentative booking, in the Travu API, this is called tentative booking. You'll only need 3 things at this point:
The ID of the itinerary you'd like to book
Basic necessary information about the passenger(s)
ENDPOINT URL
REQUEST TYPE: POST
LIVE BASE URL: https://api.travu.africa/api/v1/flight-booking
TEST BASE URL: https://api.travu.africa/test/api/v1/flight-booking
Remember to Pass your Authorization Token for this request to go through, read about Authorization here.
BODY PAYLOAD
The Body Payload is as below if;
A single passenger is linked to the flight booking.
{
"passenger_type": "Adult",
"firstname": "Abijah",
"middlename": "Bamanja",
"lastname": "Johnnie",
"dob": "09/04/1998",
"phone": "+2348102950347",
"passport_number": "a0967",
"expiry_date": "09/14/2020",
"passport_country": "Lagos",
"gender": "Male",
"title": "Mr",
"email": "[email protected]",
"address": "No 4 bama crescent",
"country": "Nigeria",
"country_code": "NG",
"city": "Lagos",
"postal_code": "100001",
"id": "NRYAAB+LCAAAAAAABADlWNtu4zgS/RVCTz2YOC35FifAYGA7TsYTx/HY7mR7B/1AS7TNiURqSSqJ0+hPW+wn7S9sFUnLcm6bXszDYjcPgUnW9VQVWaWvwVnKV2szTIITUaTpgV/3ZbbgghouxZTpIjXByVd/pIOT379W2IIoOAjGNGPw8yhq1GHV5SrlAjcmzd3S08CKTBiNGZycspwqUyjWlwmeja5m1V3PMaIrqav7c27362G9UQubtXpzHh6dROFJGKI2pfgdTbfaFsUfdLfr9XR717u9F6R1Thpe2szIHDwO3S9PGkYndX8+Vzw/LZRFav8E6fvcbPaBHbFVFUBYjotswZTH8TsAIR8uC2VoSsllsaZZxhIyFIYpFzWaEgA6l8r8YAVo48O5h0Blv4oX+TAWNEs46T7y23v2utyZAbvejMZAJG/i+zJ2Q43oBSdLmmp2AP5u5B1i5JD0yyor8jnWnpS3XKz6KdUAdIBe9ink8nbjcm/Dez2IpZDZBo6ucoZSQQCF7LBxsTn8dP+FZL6k6pa9wO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JG8+g47DTC4+MoXixYix03jo+Db/8C1H3/yDUWAAA=",
"booking_id": "2304230400001",
"currency": "NGN",
"total_amount": 0
}
Multiple passengers are linked to the flight booking.
{
"passenger_type": "Adult",
"firstname": "Abijah",
"middlename": "Bamanja",
"lastname": "Johnnie",
"dob": "09/04/1998",
"phone": "+2348102950347",
"passport_number": "a0967",
"expiry_date": "09/14/2020",
"passport_country": "Lagos",
"gender": "Male",
"title": "Mr",
"email": "[email protected]",
"address": "No 4 bama crescent",
"country": "Nigeria",
"country_code": "NG",
"city": "Lagos",
"postal_code": "100001",
"id": "NRYAAB+LCAAAAAAABADlWNtu4zgS/RVCTz2YOC35FifAYGA7TsYTx/HY7mR7B/1AS7TNiURqSSqJ0+hPW+wn7S9sFUnLcm6bXszDYjcPgUnW9VQVWaWvwVnKV2szTIITUaTpgV/3ZbbgghouxZTpIjXByVd/pIOT379W2IIoOAjGNGPw8yhq1GHV5SrlAjcmzd3S08CKTBiNGZycspwqUyjWlwmeja5m1V3PMaIrqav7c27362G9UQubtXpzHh6dROFJGKI2pfgdTbfaFsUfdLfr9XR717u9F6R1Thpe2szIHDwO3S9PGkYndX8+Vzw/LZRFav8E6fvcbPaBHbFVFUBYjotswZTH8TsAIR8uC2VoSsllsaZZxhIyFIYpFzWaEgA6l8r8YAVo48O5h0Blv4oX+TAWNEs46T7y23v2utyZAbvejMZAJG/i+zJ2Q43oBSdLmmp2AP5u5B1i5JD0yyor8jnWnpS3XKz6KdUAdIBe9ink8nbjcm/Dez2IpZDZBo6ucoZSQQCF7LBxsTn8dP+FZL6k6pa9wOoiXYZ5VyOxokuDO40WklFI7E2OUqcTv15QzbWP2PXVzdhBbgq9haIvMRbU+HypZtqMpSw2p9TQ7f6cxWvBY5r6pP79C4hj1Hhp32B5phjr0dWKrhhWPPzsy0IYWwA3DMUGJ1HrsFx9Ehw9uFgF3yDWD0ZRz613xsh7sTXaxhP1zGShYgtgRhNWYHX3pRBgMATU3irj89rVcsktso66XyjFRLzZ+b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iV+MBuel+xv1SHyofOlBBPhUbVEHjWGY5LIDV4w0YEM0Ul4WGONHUrCGPdcEOSO6SIkaM4NCH3iu24l0ib7MQHItZ6h6nA0JtnZGccuchx9xCCpcZCwyzqKmynA6Jrab9GoKs2PHxMkQ0lWD/PQdbt+WA9rja1KWCXMkYogYMSAr10ib//Mfff/6ZdMg9Y7d4xXchvA88KzJ0ABHitqW1ZqTQw7t8cLntFFoY8QE5DOCCmTDIfbMpr4t+BQNbbjCJMNK3BQ11bIkrDh6SyXbPwWVNTxhQJtt7wkpAUThRopl7OgDZigpr0zmTK0Xz9cZPFFgpeFVif/iuC9B/uag2BUNdufi2V+4YP5Nsd3GGmrMHnItsasRpkbAJ3cwyANL+K/lOYTaCE6xj9/oOxYTBpS+MHcDsMFHhG8n41rK459ja7Yc9Ct2WSABLI9Ve13HKdZ7STfUZHurJGoKHt3tpSbmDhJfgb4oInTIdK567Kdsx/8Lg5lbOP68GWbfjrdvySkdyJXe+uj1v+24zxiDsoY7fVKqtmu8R+jLLoCArtjz7VmXjnHQWi7DVXtY6rfZRrRmydo0eNdq1oxYLW+ERnMStoDI6Oxzekw4lSzfJuBhkELCnMzdV8bo6c//Ck4RBwCQ8XXi9Y2k8i8uTAfELPv7MenrBNrsh+SReLlsRqy9qEWs3a836caNGm+BZ0mgvEtZox0ftsq3uKUbhodfo2ZN8hznorZEYqP/khmUb5X8jJkDtZYv6/pn5ybwdvdCvRtGbk/J/3KXZbxmud4V7R63emUilyfj55YmjXyrH/mPKc4qyx3sntM5YsBXuCY03pMACD6Alq45KtnyajajVaLEWXbJG8+g47DTC4+MoXixYix03jo+Db/8C1H3/yDUWAAA=",
"booking_id": "2304230400001",
"currency": "NGN",
"total_amount": 0
}
RESPONSE
The Response for the above request should bring the TENTATIVE BOOKED DETAILS in the below format if successful;
{
"order_status": "confirmed",
"order_id": "49008",
"order_name": "Abiah Johnie",
"order_email": "[email protected]",
"phone_number": "09100000000",
"order_amount": 13000,
"trip_id": "96855",
"origin_id": "45",
"destination_id": "63",
"order_ticket_date": "2021-07-03",
"order_total_seat": 2,
"order_seats": "1,2",
"amount_per_seat": "6500.00",
"order_number": "03410a4b",
"vehicle_no": "1st Bus (15)",
"narration": "UMUAHIA TO LAGOS - AJAH",
"departure_terminal": "UMUAHIA",
"destination_terminal": "LAGOS - AJAH",
"seat_details": [
{
"fare": "6500.00",
"title": "Mr",
"age": "32",
"sex": "M",
"name": "Abiah Johnie",
"email": "[email protected]",
"phone": "09100000000",
"blood": "A+",
"next_of_kin": "Benjamin Johnnie",
"next_of_kin_phone": "09000000000",
"seat_number": "1"
},
{
"fare": "6500.00",
"title": "Mr",
"age": "32",
"sex": "M",
"name": "Barnabas Johnie",
"email": "[email protected]",
"phone": "09057568594",
"blood": "A+",
"next_of_kin": "Miracle Johnnie",
"next_of_kin_phone": "03000000000",
"seat_number": "2"
}
],
"provider": "GUO"
}
Reference to Authentication for possible authentication errors that might occur during this request.
Last updated