Domestic - 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:

{
    "SelectedFlights": [
      
        {
            "RecommendationID": 0,
            "CombinationID": 0,
            "GDSId": 93,
            "AgentId": 138,
            "FlightRouteIndex": 0
        }
    ],
    "SessionId": "be71dfd56dd34c119bca04c281c013a5",
    "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": "Benedicth",
            "MiddleName": "Biko",
            "Gender": "Male",
            "LastName": "Ahmed",
            "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": "GQBPNB",
        "BookingReferenceType": "",
        "TicketTimeLimit": "2024-01-12T22:10:41+01:00",
        "AirTravellers": [
            {
                "PassengerTypeCode": "ADT",
                "NamePrefix": "Mr",
                "FirstName": "Benedicth",
                "MiddleName": "BIKO",
                "LastName": "Ahmed",
                "Email": "peter.oladipo@avitechng.com",
                "Telephone": "09012345670",
                "BirthDate": "1990-05-02T00:00:00+00:00",
                "ETicketNumber": "2342305894953",
                "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": []
    }
]

Last updated