International - Flight Booking (Single 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:
{
"SessionId": "fdd768b55b4d4adcb643b53833f1fbb9",
"BillingAddress": {
"ContactName": "Jimoh Aderoju",
"ContactEmail": "jimoh@qa.team",
"ContactMobileNo": "09063479230",
"AddressLine1": "23, broad street",
"City": "Lagos Island",
"CountryCode": "NG"
},
"AirTravellers": [
{
"BirthDate": "1981-11-26",
"NamePrefix": "Mr",
"PassengerTypeCode": "ADT",
"FirstName": "Jimoh",
"MiddleName": "A",
"Gender": "male",
"LastName": "Aderojul",
"Email": "jimoh@qa.team",
"Telephone": "09063479230",
"NumberOfBaggages": 0,
"NumberOfBaggages1": 0,
"HandLuggages": 0,
"HandLuggages1": 0,
"Address": {
"ContactName": "ola demiji",
"ContactEmail": "ola@qa.team",
"ContactMobileNo": "07087824571",
"AddressLine1": "23, broad street",
"City": "Lagos Island",
"CountryCode": "NG"
},
"Documents": [
{
"DocType": "DOCS",
"InnerDocType": "Passport",
"DocID": "145744890",
"IssueCountryCode": "NGA",
"IssueLocation": "NGA",
"BirthCountryCode": "NGA",
"EffectiveDate": "2021-02-02",
"ExpiryDate": "2026-02-01",
"BirthDate": "1991-10-25"
}
]
}
],
"RecommendationID": 1,
"CombinationID": 0,
"GdsId": 2,
"AgentId": 5
}
Sample Response
{
"ReferenceNumber": "6639",
"BookingReferenceId": "RK3JA2",
"BookingReferenceType": "6639",
"TicketTimeLimit": "2022-08-13T00:11:23+01:00",
"AirTravellers": [
{
"PassengerTypeCode": "ADT",
"NamePrefix": "Mr",
"FirstName": "Jimoh",
"MiddleName": "A",
"LastName": "Aderojul",
"Email": "jimoh@qa.team",
"Telephone": "09063479230",
"BirthDate": "1981-11-26T00:00:00+00:00",
"ETicketNumber": null,
"TravellerReferenceId": null,
"Addresses": [
{
"AddressType": "ola demiji",
"ContactName": null,
"AddressLine1": "23, broad street",
"AddressLine2": null,
"City": "Lagos Island",
"CountryCode": "NG"
}
]
}
],
"FlightSets": [
{
"DirectionInd": null,
"DirectionId": "1",
"FlightEntries": [
{
"FlightNumber": "784",
"Aircraft": "77W",
"MarketingAirlineCode": "EK",
"MarketingAirlineName": "Emirates",
"OperatingAirlineCode": "EK",
"OperatingAirlineName": "Emirates",
"FlightClass": "First",
"DepartureDate": "2022-08-15T18:15:00",
"DepartureAirportCode": "LOS",
"DepartureAirportName": "Murtala Muhammed Airport",
"DepartureAirportFullName": "Murtala Muhammed Airport (LOS)",
"DepartureTerminal": null,
"DepartureGate": null,
"ArrivalDate": "2022-08-16T05:00:00",
"ArrivalAirportCode": "DXB",
"ArrivalAirportName": "Dubai Intl Airport",
"ArrivalAirportFullName": "Dubai Intl Airport (DXB)",
"ArrivalTerminal": null,
"ArrivalGate": null
},
{
"FlightNumber": "29",
"Aircraft": "388",
"MarketingAirlineCode": "EK",
"MarketingAirlineName": "Emirates",
"OperatingAirlineCode": "EK",
"OperatingAirlineName": "Emirates",
"FlightClass": "First",
"DepartureDate": "2022-08-16T09:15:00",
"DepartureAirportCode": "DXB",
"DepartureAirportName": "Dubai Intl Airport",
"DepartureAirportFullName": "Dubai Intl Airport (DXB)",
"DepartureTerminal": null,
"DepartureGate": null,
"ArrivalDate": "2022-08-16T14:00:00",
"ArrivalAirportCode": "LHR",
"ArrivalAirportName": "Heathrow",
"ArrivalAirportFullName": "Heathrow (LHR)",
"ArrivalTerminal": null,
"ArrivalGate": null
}
]
}
],
"FlightRules": [],
"FlightRulePenalties": [],
"Errors": [],
"Warnings": []
}
Last updated