Flight API Checkout Flow
Flight API
- Overview
- User Authorization
- GetAirResults
- GetCountryMasters
- GetEmployeeDetails
- GetTravelersDetail
- GetFarerules
- GetTravelerInfo
- GetAirAvailability
- GetTravelPolicyRules
- GetConsumedTicketByMonth
- GetBookingsListByEmployee
- GetPaymentDetails
- CBT IssueTicket
- GetAirCancellationQuote
- GetBookingByBookingId
- Round Trip Flow
- Monthly Business Ticket
- Discounted Ticket
- Checkout Flow
Checkout Flow
Refer 11
GetPaymentDetails
In this, we added one more payment type as “PAYMENTGATEWAY” that needs to be passed instead of “PERSONALCREDITCARD” in CBT_IssueTicket in case of checkout flow.
Sample Request:
{
"RequestID": "68bab43f9e6f918dd72ef93d",
"key": "Amadeus-SAUDI30122523303112250200RUHNUMSV1557320,AIRBUS INDUSTRIE
A32002:30:00",
"UserID": 21140,
"TotalPrice": 1799.75,
"Currency": "SAR",
"TripPurpose": "Monthly+Discount Ticket",
"TripPurposeReason": "",
"CabinClass": "E",
"passangers": {
"Adults": [
{
"Title": "1",
"FirstName": "John",
"LastName": "Doe",
"DOB": "1994-06-17",
"Email": "Johndoe@mail.com",
"DIALINGCODE": "+971",
"CountryOfResidence": "SA",
"ContactNumber": "88******04",
"Citizenship": "SA",
"DocumentType": "nationalId",
"PassportNumber": "647489302",
"DateOfExpiry": "2030-04-25",
"IssuingCountry": "SA",
"NATIONAL_ID_NUMBER": "657489302",
"NATIONALID_ISSUECOUNTRY_NAME": "SA",
"NationalIDDateOfExpiry": "2031-06-18"
}
],
"Childs": [
{
"Title": "1",
"FirstName": "Joy",
"LastName": " Doe",
"DOB": "2017-04-15",
"Email": "Johndoe@mail.com",
"DIALINGCODE": "+966",
"CountryOfResidence": "SS",
"ContactNumber": "95******52",
"Citizenship": "SO",
"DocumentType": "nationalId",
"PassportNumber": null,
"DateOfExpiry": null,
"IssuingCountry": null,
"NATIONAL_ID_NUMBER": "1010101111",
"NATIONALID_ISSUECOUNTRY_NAME": "RS",
"NationalIDDateOfExpiry": "2029-07-12"
}
],
"Email": "Johndoe@mail.com",
"ContactNumber": "88******04",
"AreaCode": "+971"
},
"PaymentTypes": [
"CORPORATECARDS",
"PAYMENTGATEWAY" //Payment Type for checkout flow
],
"PGPaymentReferenceID": "e66db0ac-4962-4f5f-a2e3-426e09dc9c5a", //Payment Reference
"PGPaymentGatewayID": "pay_kb4lamgo3phuplnec35rrfiobq", //Payment ID
"PaymentDetails": {
"CCTotalCharges": 1399.75,
"PCTotalCharges": 400,
"CCAdultAmount": 0,
"PCAdultAmount": 0,
"CCChildAmount": 385.45,
"PCChildAmount": 400,
"CCInfantAmount": 0,
"PCInfantAmount": 0
},
"IsIssueTicket": true
}