Flight Booking Request And Response Sample

The Api is used to book available flights, see sample request model and response

Sample Request for Domestic Booking

URL: https://api.staging.trips.ng/api/v2/ticketing/issue
{ 
    "SessionId": "8ace6a2b7ae84c019cacad7087e7a221", 
    "TripType": "Domestic", 
    "TripMode": "Flight" 
} 

Sample Request for International Booking

URL: https://api.staging.trips.ng/api/v2/ticketing/issue
{ 
    "SessionId": "8ace6a2b7ae84c019cacad7087e7a221", 
    "TripType": "International", 
    "TripMode": "Flight"
}

Sample successful Response One-way

{ 
    "Pnr": "FZPKGV", 
    "IsSuccessful": true, 
    "Message": "Successful", 
    "BookingStatus": "TicketPending", 
    "BookingSettlement": { 
        "TotalFare": 101290.00, 
        "AgentTicketPrice": 100000.00, 
        "TripSettlement": 100645.00, 
        "MerchantCommission": 645.00 
    } 
} 

Sample successful Response Round-Trip (Domestic)

Last updated