Road Trip Implementation
Just as flight, the booking web pass response to merchant mobile app if ticket price confirmation is successful for the mobile to complete the ticket booking request after debiting customer account.
Road Booking Request And Response Sample
The Api is used to book available road ticket, see sample request model and response If TripsMode = Road,
call https://api.staging.trips.ng/api/ticketing/issue
Sample Request:
{
"SessionId": "eb40b485e73e4389b20344e9d08c76ae",
"TripType": "Road",
"TripMode": "Domestic"
}
Sample Response:
{
"Pnr": "FZPKGV",
"IsSuccessful": true,
"Message": "Successful",
"BookingStatus": "TicketPending",
"BookingSettlement":
{
"TotalFare": 50129.00,
"AgentTicketPrice": 5000.00,
"TripSettlement": 5645.00,
"MerchantCommission": 645.00
}
}
Sample failed response:
{
"Pnr": "null",
"IsSuccessful": false,
"Message": "Invalid sessionId",
"BookingStatus": "null"
}
Last updated