My Reservation

My Reservation API: POST

This API is used for booking reservation with PNR and lastName

API: http://bsptrips.staging.vggdev.com/api/Flight/MyReservation

See sample request and response.

Request Header:

Authorization: {Bearer Token}

Content-Type: application/json

MerchantCode: {MerchantCode}

Request

{
    "BookingReferenceType": 0,
    "Surname": "ADAMA",
    "BookingReferenceId": "12QFDT",
    "ETicketNumber": ""
}

Response

{
    "ReferenceNumber": null,
    "BookingReferenceId": "12QFDT",
    "BookingReferenceType": null,
    "BookingStatusId": 3,
    "BookingStatusName": "TicketPending",
    "TicketTimeLimit": "2023-04-28T18:30:00+01:00",
    "AirTravellers": [
        {
            "PassengerTypeCode": "ADT",
            "NamePrefix": "MR",
            "FirstName": "JOHN",
            "MiddleName": null,
            "LastName": "ADAMA",
            "Email": null,
            "Telephone": null,
            "BirthDate": "1980-05-02T00:00:00+00:00",
            "ETicketNumber": null,
            "TravellerReferenceId": "19073041",
            "Addresses": []
        }
    ],
    "FlightSets": [
        {
            "DirectionInd": null,
            "DirectionId": "1",
            "FlightEntries": [
                {
                    "FlightNumber": "121",
                    "Aircraft": "B737-500_8C/96Y",
                    "MarketingAirlineCode": "N2",
                    "MarketingAirlineName": null,
                    "OperatingAirlineCode": "N2",
                    "OperatingAirlineName": null,
                    "FlightClass": "M",
                    "DepartureDate": "2023-04-29T06:30:00",
                    "DepartureAirportCode": "LOS",
                    "DepartureAirportName": "Murtala Muhammed International Airport",
                    "DepartureAirportFullName": "Murtala Muhammed International Airport (LOS)",
                    "DepartureTerminal": null,
                    "DepartureGate": null,
                    "ArrivalDate": "2023-04-29T07:45:00",
                    "ArrivalAirportCode": "ABV",
                    "ArrivalAirportName": "Nnamdi Azikiwe International Airport",
                    "ArrivalAirportFullName": "Nnamdi Azikiwe International Airport (ABV)",
                    "ArrivalTerminal": null,
                    "ArrivalGate": null
                }
            ]
        }
    ],
    "FlightRules": [],
    "FlightRulePenalties": [],
    "Errors": [],
    "Warnings": []
}

Last updated