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/ticketing/issue
{
"SessionId": "8ace6a2b7ae84c019cacad7087e7a221",
"TripType": "Flight",
"TripMode": "Domestic"
}
Sample Request for International Booking
URL: https://api.staging.trips.ng/api/ticketing/issue
{
"SessionId": "8ace6a2b7ae84c019cacad7087e7a221",
"TripType": "Flight",
"TripMode": "International"
}
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)
{
"Pnr": "FZPKGV-MUSKXB",
"IsSuccessful": true,
"Message": "Successful",
"BookingStatus": "TicketPending",
"BookingSettlement": {
"TotalFare": 201290.00,
"AgentTicketPrice": 200000.00,
"TripSettlement": 200645.00,
"MerchantCommission": 645.00
}
}
Sample failed Response:
{
"Pnr": null,
"IsSuccessful": false,
"Message": "Invalid SessionId",
"BookingStatus": null
}
Last updated