Trips Documentation
Trips Documentation
Trips Documentation
  • API Documentation
    • Getting Started
    • Flight Search
      • International Single Trip Flight Search
      • International Round Trip Flight Search
      • Domestic Single Trip Flight Search
      • Domestic Round Trip Flight Search
    • Confirm Ticket Price
      • Confirm Ticket Price - International (Single Trip)
      • Confirm Ticket Price - International (Round Trip)
      • Confirm Ticket Price - Domestic (Single Trip)
      • Confirm Ticket Price - Domestic (Round Trip)
    • Flight Booking
      • International - Flight Booking (Single Trip)
      • International - Flight Booking (Round Trip)
      • Domestic - Flight Booking (Round Trip)
      • Domestic - Flight Booking (Single Trip)
    • My Booking
    • Cancel Flight
    • My Reservation
Powered by GitBook
On this page
  1. API Documentation

My Booking

PreviousDomestic - Flight Booking (Single Trip)NextCancel Flight

Last updated 1 year ago

My Booking API: GET

This API is used to get booking history.

API:

Request Header:

Authorization: {Bearer Token}

Content-Type: application/json

MerchantCode: {MerchantCode}

"Parameters": {
    "pnr": "GQBPNB",
    "email": "test@test.com",
    "phone": "0902232883420"
},
"from": 1,
"pageSize": 10

Response

{
    "TotalCount": 1,
    "ResultList": [
        {
            "ArrivalLocation": "DXB",
            "DepatureLocation": "LHR",
            "AirlineCode": "LO",
            "DepartureDate": "2022-11-30T10:25:00",
            "ArrivalDate": "2022-12-01T16:25:00",
            "Stops": 1,
            "BookingClass": "O",
            "TotalFare": 145720.04,
            "TotalTax": 77421,
            "AdultCount": 1,
            "ChildrenCount": 0,
            "InfantCount": 0,
            "PnrNumber": "RCEG7E",
            "ContactEmail": "jimoh@qa.team",
            "ContactPhone": "09063479230",
            "Country": "NG",
            "TotalAdultFare": 145720.04,
            "TotalAdultTax": 77421,
            "TotalChildFare": 0,
            "TotalChildTax": 0,
            "TotalInfantFare": 0,
            "TotalInfantTax": 0,
            "BookingStatusId": 1,
            "BookingStatusName": "Cancelled"
        }
    ],
    "Errors": null
}

http://bsptrips.staging.vggdev.com/api/Flight/MyBookings