International - 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:
{
"CombinationID": 0,
"RecommendationID": 0,
"AgentID": 5,
"GdsID": 2,
"SessionID": "8af93880234f44b98358fab3a13cd7e3",
"BillingAddress": {
"ContactName": "Azee AsimI",
"ContactEmail": "amakao@qa.team",
"ContactMobileNo": "08034030758",
"AddressLine1": "Airport",
"AddressLine2": "",
"City": "Lagos",
"CountryCode": "NG"
},
"AirTravellers": [
{
"Gender": "Male",
"PassengerTypeCode": "ADT",
"LastName": "Obichurch",
"FirstName": "Emmanuel",
"BirthDate": "1990-01-01",
"NamePrefix": "MR",
"Email": "mail@mymail.com",
"Address": {
"ContactName": "Azeezat Asimi",
"AddressLine1": "30, Ishola Daniel Street",
"AddressLine2": "",
"City": "Oshodi",
"CountryCode": "NG"
},
"Documents": [
{
"DocType": "DOCS",
"DocID": "1111111111",
"EffectiveDate": "2010-02-02",
"ExpiryDate": "2030-02-02",
"InnerDocType": "PASSPORT",
"IssueLocation": "NG",
"BirthCountryCode": "NG",
"IssueCountryCode": "NG"
},
{
"DocType": "DOCS",
"DocID": "2222222222",
"EffectiveDate": "2010-02-02",
"ExpiryDate": "2030-02-02",
"InnerDocType": "VISA",
"IssueLocation": "NG",
"BirthCountryCode": "NG",
"IssueCountryCode": "NG"
}
]
}
]
}
Sample Response
{
"ReferenceNumber": "13563",
"BookingReferenceId": "6PCSPX",
"BookingReferenceType": "13563",
"TicketTimeLimit": "2024-01-16T19:48:03+01:00",
"AirTravellers": [
{
"PassengerTypeCode": "ADT",
"NamePrefix": "MR",
"FirstName": "Emmanuel",
"MiddleName": null,
"LastName": "Obichurch",
"Email": "mail@mymail.com",
"Telephone": null,
"BirthDate": "1990-01-01T00:00:00+00:00",
"ETicketNumber": null,
"TravellerReferenceId": null,
"Addresses": [
{
"AddressType": "sssss",
"ContactName": null,
"AddressLine1": "30, Ishola Daniel Street",
"AddressLine2": "",
"City": "Oshodi",
"CountryCode": "NG"
}
]
}
],
"FlightSets": [
{
"DirectionInd": null,
"DirectionId": "1",
"FlightEntries": [
{
"FlightNumber": "626",
"Aircraft": "Airbus A330-300",
"MarketingAirlineCode": "TK",
"MarketingAirlineName": "Turkish Airlines",
"OperatingAirlineCode": "TK",
"OperatingAirlineName": "Turkish Airlines",
"FlightClass": "Economy",
"DepartureDate": "2024-01-18T22:10:00",
"DepartureAirportCode": "LOS",
"DepartureAirportName": "Murtala Muhammed Airport",
"DepartureAirportFullName": "Murtala Muhammed Airport (LOS)",
"DepartureTerminal": null,
"DepartureGate": null,
"ArrivalDate": "2024-01-19T06:45:00",
"ArrivalAirportCode": "IST",
"ArrivalAirportName": "Ataturk Airport",
"ArrivalAirportFullName": "Ataturk Airport (IST)",
"ArrivalTerminal": null,
"ArrivalGate": null
},
{
"FlightNumber": "1979",
"Aircraft": "77W",
"MarketingAirlineCode": "TK",
"MarketingAirlineName": "Turkish Airlines",
"OperatingAirlineCode": "TK",
"OperatingAirlineName": "Turkish Airlines",
"FlightClass": "Economy",
"DepartureDate": "2024-01-19T08:45:00",
"DepartureAirportCode": "IST",
"DepartureAirportName": "Ataturk Airport",
"DepartureAirportFullName": "Ataturk Airport (IST)",
"DepartureTerminal": null,
"DepartureGate": null,
"ArrivalDate": "2024-01-19T09:55:00",
"ArrivalAirportCode": "LHR",
"ArrivalAirportName": "Heathrow",
"ArrivalAirportFullName": "Heathrow (LHR)",
"ArrivalTerminal": null,
"ArrivalGate": null
}
]
},
{
"DirectionInd": null,
"DirectionId": "1",
"FlightEntries": [
{
"FlightNumber": "1988",
"Aircraft": "32Q",
"MarketingAirlineCode": "TK",
"MarketingAirlineName": "Turkish Airlines",
"OperatingAirlineCode": "TK",
"OperatingAirlineName": "Turkish Airlines",
"FlightClass": "Economy",
"DepartureDate": "2024-01-25T06:35:00",
"DepartureAirportCode": "LHR",
"DepartureAirportName": "Heathrow",
"DepartureAirportFullName": "Heathrow (LHR)",
"DepartureTerminal": null,
"DepartureGate": null,
"ArrivalDate": "2024-01-25T13:30:00",
"ArrivalAirportCode": "IST",
"ArrivalAirportName": "Ataturk Airport",
"ArrivalAirportFullName": "Ataturk Airport (IST)",
"ArrivalTerminal": null,
"ArrivalGate": null
},
{
"FlightNumber": "625",
"Aircraft": "Airbus A330-300",
"MarketingAirlineCode": "TK",
"MarketingAirlineName": "Turkish Airlines",
"OperatingAirlineCode": "TK",
"OperatingAirlineName": "Turkish Airlines",
"FlightClass": "Economy",
"DepartureDate": "2024-01-25T15:20:00",
"DepartureAirportCode": "IST",
"DepartureAirportName": "Ataturk Airport",
"DepartureAirportFullName": "Ataturk Airport (IST)",
"DepartureTerminal": null,
"DepartureGate": null,
"ArrivalDate": "2024-01-25T20:25:00",
"ArrivalAirportCode": "LOS",
"ArrivalAirportName": "Murtala Muhammed Airport",
"ArrivalAirportFullName": "Murtala Muhammed Airport (LOS)",
"ArrivalTerminal": null,
"ArrivalGate": null
}
]
}
],
"FlightRules": [],
"FlightRulePenalties": [],
"Errors": [],
"Warnings": []
}
Last updated