Domestic - Flight Booking (Round Trip)
Flight Booking API: http://bsptrips.staging.vggdev.com/api/Flight/BookFlight
FLIGHT BOOKING REQUEST AND RESPONSE SAMPLE
This API is used to book the flight. Payload contains same information with confirm ticket price. See the sample request model and response.
Request Header:
Authorization: {Bearer Token}
Content-Type: application/json
MerchantCode: {MerchantCode}
Request:
{
"SelectedFlights": [
{
"RecommendationID": 6,
"CombinationID": 1,
"GDSId": 93,
"AgentId": 138,
"FlightRouteIndex": 0
},
{
"RecommendationID": 0,
"CombinationID": 0,
"GDSId": 93,
"AgentId": 138,
"FlightRouteIndex": 1
}
],
"SessionId": "45e5e70cbc08449c91114a9c64a251f1",
"BillingAddress": {
"ContactName": "Jimoh Okoro",
"ContactEmail": "jimoh@qa.team",
"ContactMobileNo": "09063479270",
"AddressLine1": "23, broad street",
"City": "Lagos Island",
"CountryCode": "NG"
},
"AirTravellers": [
{
"PassengerTypeCode": "ADT",
"NamePrefix": "Mr",
"FirstName": "Keneth",
"MiddleName": "Uchenna",
"Gender": "Male",
"LastName": "Okonkwo",
"Email": "peter.oladipo@avitechng.com",
"Telephone": "09012345670",
"BirthDate": "1990-05-02",
"Address": {
"ContactName": "Yart",
"ContactEmail": "Yartmoi@qa.team",
"ContactMobileNo": "09012345671",
"AddressLine1": "123, Maine Street",
"City": "Ikeja",
"CountryCode": "NG"
},
"Documents": [
]
}
]
}
Sample Response
[
{
"ReferenceNumber": null,
"BookingReferenceId": "WRTROL",
"BookingReferenceType": "",
"TicketTimeLimit": "2024-01-12T22:37:34+01:00",
"AirTravellers": [
{
"PassengerTypeCode": "ADT",
"NamePrefix": "Mr",
"FirstName": "Keneth",
"MiddleName": "UCHENNA",
"LastName": "Okonkwo",
"Email": "peter.oladipo@avitechng.com",
"Telephone": "09012345670",
"BirthDate": "1990-05-02T00:00:00+00:00",
"ETicketNumber": "2342305894955",
"TravellerReferenceId": null,
"Addresses": [
{
"AddressType": "Yart",
"ContactName": null,
"AddressLine1": "123, Maine Street",
"AddressLine2": null,
"City": "Ikeja",
"CountryCode": "NG"
}
]
}
],
"FlightSets": [
{
"DirectionInd": null,
"DirectionId": "0",
"FlightEntries": [
{
"FlightNumber": "351",
"Aircraft": "MD82",
"MarketingAirlineCode": "9J",
"MarketingAirlineName": null,
"OperatingAirlineCode": "9J",
"OperatingAirlineName": null,
"FlightClass": "Economy",
"DepartureDate": "2024-01-15T06:30:00",
"DepartureAirportCode": "LOS",
"DepartureAirportName": "Murtala Muhammed International Airport",
"DepartureAirportFullName": "Murtala Muhammed International Airport (LOS)",
"DepartureTerminal": null,
"DepartureGate": null,
"ArrivalDate": "2024-01-15T07:40:00",
"ArrivalAirportCode": "ABV",
"ArrivalAirportName": "Nnamdi Azikiwe International Airport",
"ArrivalAirportFullName": "Nnamdi Azikiwe International Airport (ABV)",
"ArrivalTerminal": null,
"ArrivalGate": null
}
]
}
],
"FlightRules": [],
"FlightRulePenalties": [],
"NewPassengerFares": [
{
"PassengerType": "ADT",
"Age": null,
"Quantity": 1,
"ServiceCharge": 0.0,
"TotalFare": 86000.0,
"GdsTotalFare": 86000.0,
"TicketRules": [],
"OriginalGdsBaseFare": 60222.0,
"OriginalGdsTotalFare": 86000.0,
"OriginalAgentMarkupFare": 0.0,
"OriginalTotalFare": 86000.0
}
],
"Errors": [],
"Warnings": []
},
{
"ReferenceNumber": null,
"BookingReferenceId": "ITFIDQ",
"BookingReferenceType": "",
"TicketTimeLimit": "2024-01-12T22:37:34+01:00",
"AirTravellers": [
{
"PassengerTypeCode": "ADT",
"NamePrefix": "Mr",
"FirstName": "Keneth",
"MiddleName": "UCHENNA",
"LastName": "Okonkwo",
"Email": "peter.oladipo@avitechng.com",
"Telephone": "09012345670",
"BirthDate": "1990-05-02T00:00:00+00:00",
"ETicketNumber": "2342305894954",
"TravellerReferenceId": null,
"Addresses": [
{
"AddressType": "Yart",
"ContactName": null,
"AddressLine1": "123, Maine Street",
"AddressLine2": null,
"City": "Ikeja",
"CountryCode": "NG"
}
]
}
],
"FlightSets": [
{
"DirectionInd": null,
"DirectionId": "0",
"FlightEntries": [
{
"FlightNumber": "352",
"Aircraft": "MD82",
"MarketingAirlineCode": "9J",
"MarketingAirlineName": null,
"OperatingAirlineCode": "9J",
"OperatingAirlineName": null,
"FlightClass": "Economy",
"DepartureDate": "2024-01-25T08:20:00",
"DepartureAirportCode": "ABV",
"DepartureAirportName": "Nnamdi Azikiwe International Airport",
"DepartureAirportFullName": "Nnamdi Azikiwe International Airport (ABV)",
"DepartureTerminal": null,
"DepartureGate": null,
"ArrivalDate": "2024-01-25T09:35:00",
"ArrivalAirportCode": "LOS",
"ArrivalAirportName": "Murtala Muhammed International Airport",
"ArrivalAirportFullName": "Murtala Muhammed International Airport (LOS)",
"ArrivalTerminal": null,
"ArrivalGate": null
}
]
}
],
"FlightRules": [],
"FlightRulePenalties": [],
"NewPassengerFares": [
{
"PassengerType": "ADT",
"Age": null,
"Quantity": 1,
"ServiceCharge": 0.0,
"TotalFare": 86000.0,
"GdsTotalFare": 86000.0,
"TicketRules": [],
"OriginalGdsBaseFare": 64667.0,
"OriginalGdsTotalFare": 86000.0,
"OriginalAgentMarkupFare": 0.0,
"OriginalTotalFare": 86000.0
}
],
"Errors": [],
"Warnings": []
}
]
Last updated