Flight API Discounted ticket
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
Discounted ticket
GetAirResults
This method is used to fetch all round trip flight details to display to users.
Sample Request :
{
"originCode": "NUM",
"destinationCode": "RUH",
"fromDate": "181225",
"toDate": "251225",
"cabinType": "B",
"adultCount": "1",
"childCount": "0",
"infantCount": "0",
"tripType": "R"
}
CBT_IssueTicket
(Reference 12)
Discounted Ticket with Business class
(In case of new card details)
{
"RequestID": "68650eb83c1c834dd964bd90",
"key": "Amadeus-SAUDI26102504402610250655RUHTUUSV1523320,AIRBUS INDUSTRIE
A320",
"UserID": 21140,
"TotalPrice": 1618.05,
"Currency": "SAR",
"TripPurpose": "Discounted Ticket",
"TripPurposeReason": "",
"CabinClass": "B",
"passangers": {
"Adults": [
{
"Title": "3",
"FirstName": "John",
"LastName": "Doe",
"DOB": "1994-06-17",
"Email": "Johndoe@mail.com",
"DIALINGCODE": "+971",
"CountryOfResidence": "SA",
"ContactNumber": "88******04",
"Citizenship": "SA",
"DocumentType": "nationalId",
"PassportNumber": "677489302",
"DateOfExpiry": "2030-04-25",
"IssuingCountry": "SA",
"NATIONAL_ID_NUMBER": "657489302",
"NATIONALID_ISSUECOUNTRY_NAME": "SA",
"NationalIDDateOfExpiry": "2031-06-18"
}
],
"Email": "Johndoe@mail.com",
"ContactNumber": 88******04,
"AreaCode": "+971"
},
"PaymentTypes": [
"CORPORATECARDS",
"PERSONALCREDITCARD"
],
"discountTicketData": {
"CCNumber": "4012888888881881",
"ExpireOnMM": "10",
"ExpireOnYY": "26",
"CCOwner": "test",
"CardType": "VI",
"SavedCard": true
},
"PaymentDetails": {
"CCTotalCharges":818.05, //Corporate Card Total Amount
"PCTotalCharges": 800, //Personal Card Total Amount
"CCAdultAmount": 818.05, //Corporate Card Adult Amount
"CCChildAmount": 0, //Corporate Card Child Amount
"CCInfantAmount": 0, //Corporate Card Infant Amount
"PCAdultAmount": 800, //Personal Card Adult Amount
"PCChildAmount": 0, //Personal Card Child Amount
"PCInfantAmount": 0 //Personal Card Infant Amount
},
"IsIssueTicket": true
}
Note : For Business class, personal card charge should be 400 per person and 800 for round trip. If the total fare is less than this, the full amount should be paid using the personal card.
Discounted Ticket with Economy class
(In case of existing card details)
{
"RequestID": "68650eb83c1c834dd964bd90",
"key": "Amadeus-SAUDI26102504402610250655RUHTUUSV1523320,AIRBUS INDUSTRIE
A320",
"UserID": 21140,
"TotalPrice": 437,
"Currency": "SAR",
"TripPurpose": "Discounted Ticket",
"TripPurposeReason": "",
"CabinClass": "E",
"passangers": {
"Adults": [
{
"Title": "3",
"FirstName": "John",
"LastName": "Doe",
"DOB": "1994-06-17",
"Email": "Johndoe@mail.com",
"DIALINGCODE": "+971",
"CountryOfResidence": "SA",
"ContactNumber": "88******04",
"Citizenship": "SA",
"DocumentType": "nationalId",
"PassportNumber": "677489302",
"DateOfExpiry": "2030-04-25",
"IssuingCountry": "SA",
"NATIONAL_ID_NUMBER": "657489302",
"NATIONALID_ISSUECOUNTRY_NAME": "SA",
"NationalIDDateOfExpiry": "2031-06-18"
}
],
"Email": "Johndoe@mail.com",
"ContactNumber": 88******04,
"AreaCode": "+971"
},
"PaymentTypes": [
"CORPORATECARDS",
"PERSONALCREDITCARD"
],
"discountTicketData": {
"GUID": "RCL466GKF86SGMG"
},
"PaymentDetails": {
"CCTotalCharges": 1037, //Corporate Card Total Amount
"PCTotalCharges": 400, //Personal Card Total Amount
"CCAdultAmount": 1037, //Corporate Card Adult Amount
"CCChildAmount": 0, //Corporate Card Child Amount
"CCInfantAmount": 0, //Corporate Card Infant Amount
"PCAdultAmount": 400, //Personal Card Adult Amount
"PCChildAmount": 0, //Personal Card Child Amount
"PCInfantAmount": 0 //Personal Card Infant Amount
},
"IsIssueTicket": true
}Note : For economy class, the personal card charge should be 400 per person and 800 for round trip. If the total fare is less than this, the full amount should be paid using the personal card.
Monthly+Discount Ticket: For economy class, personal card charges should be 400 for 2nd pax onwards and 800 for a round trip
Minimum 2 pax required for Monthly+Discount Ticket
For business upgrade, personal card charges should be 400 for 1st pax and 800 for 2nd pax onwards and for roundtrip amount should be * 2.
Note: In case of a new card, you need to pass all the card details. In case of an existing card, you need to pass GUID.
Sample request for Economy class:
{
"RequestID": "689307018d7db28f7137e77e",
"key": "Amadeus-SAUDI09042611050904261350NUMDOHQR1205320,AIRBUS INDUSTRIE
A32002:45:00Amadeus-SAUDI09042615450904261720DOHRUHQR1168788,BOEING
787-8DREAMLINER01:35:00",
"UserID": 21140,
"TotalPrice": 5970,
"Currency": "SAR",
"TripPurpose": "Monthly+Discount Ticket",
"TripPurposeReason": "",
"CabinClass": "E",
"passangers": {
"Adults": [
{
"Title": "2",
"FirstName": "John",
"LastName": "Doe",
"DOB": "1994-06-17",
"Email": "Johndoe@mail.com",
"DIALINGCODE": "+971",
"CountryOfResidence": "SA",
"ContactNumber": "88******04",
"Citizenship": "SA",
"DocumentType": "nationalId",
"PassportNumber": "677489302",
"DateOfExpiry": "2030-04-25",
"IssuingCountry": "SA",
"NATIONAL_ID_NUMBER": "657489302",
"NATIONALID_ISSUECOUNTRY_NAME": "SA",
"NationalIDDateOfExpiry": "2031-06-18"
},
{
"Title": "1",
"FirstName": "adultco",
"LastName": "Test",
"DOB": "1994-02-15",
"Email": "adultcotest@yopmail.com",
"DIALINGCODE": "+966",
"CountryOfResidence": "SA",
"ContactNumber": "88******04",
"Citizenship": "SA",
"DocumentType": "nationalId",
"PassportNumber": "7896324471",
"DateOfExpiry": "2034-06-24",
"IssuingCountry": "SA",
"NATIONAL_ID_NUMBER": "9988888881",
"NATIONALID_ISSUECOUNTRY_NAME": "SA",
"NationalIDDateOfExpiry": "2028-11-15"
}
],
"Email": "Johndoe@mail.com",
"ContactNumber": 88******04,
"AreaCode": "+971"
},
"PaymentTypes": [
"CORPORATECARDS",
"PERSONALCREDITCARD"
],
"discountTicketData": {
"CCNumber": "4012888888881881",
"ExpireOnMM": "10",
"ExpireOnYY": "26",
"CCOwner": "test",
"CardType": "VI",
"SavedCard": true
},
"PaymentDetails": {
"CCTotalCharges": 5570,
"PCTotalCharges": 400,
"CCAdultAmount": 2585,
"CCChildAmount": 0,
"CCInfantAmount": 0,
"PCAdultAmount": 400,
"PCChildAmount": 0,
"PCInfantAmount": 0
},
"IsIssueTicket": true
}
Sample request for Business class:
{
"RequestID": "68946a45ce22c11a80feaf01",
"key": "Amadeus-SAUDI17102519401710252105NUMMEDSV1563320,AIRBUS INDUSTRIE
A32001:25:00Amadeus-SAUDI17102522051710252340MEDRUHSV1464321,AIRBUS
INDUSTRIE A32101:35:00",
"UserID": 21140,
"TotalPrice": 6878.4,
"Currency": "SAR",
"TripPurpose": "Monthly+Discount Ticket",
"TripPurposeReason": "",
"CabinClass": "B",
"passangers": {
"Adults": [
{
"Title": "2",
"FirstName": "John",
"LastName": "Doe",
"DOB": "1994-06-17",
"Email": "Johndoe@mail.com",
"DIALINGCODE": "+971",
"CountryOfResidence": "SA",
"ContactNumber": "88******04",
"Citizenship": "SA",
"DocumentType": "nationalId",
"PassportNumber": "677489302",
"DateOfExpiry": "2030-04-25",
"IssuingCountry": "SA",
"NATIONAL_ID_NUMBER": "657489302",
"NATIONALID_ISSUECOUNTRY_NAME": "SA",
"NationalIDDateOfExpiry": "2031-06-18"
},
{
"Title": "1",
"FirstName": "adultco",
"LastName": "Test",
"DOB": "1994-02-15",
"Email": "adultcotest@mail.com",
"DIALINGCODE": "+966",
"CountryOfResidence": "SA",
"ContactNumber": "88******04",
"Citizenship": "SA",
"DocumentType": "nationalId",
"PassportNumber": "7496321471",
"DateOfExpiry": "2034-06-24",
"IssuingCountry": "SA",
"NATIONAL_ID_NUMBER": "9988888881",
"NATIONALID_ISSUECOUNTRY_NAME": "SA",
"NationalIDDateOfExpiry": "2028-11-15"
}
],
"Email": "Johndoe@mail.com",
"ContactNumber": 88******04,
"AreaCode": "+971"
},
"PaymentTypes": [
"CORPORATECARDS",
"PERSONALCREDITCARD"
],
"discountTicketData": {
"CCNumber": "371449635398431",
"ExpireOnMM": "12",
"ExpireOnYY": "35",
"CCOwner": "test",
"CardType": "AX",
"SavedCard": true
},
"PaymentDetails": {
"CCTotalCharges": 5678.4,
"PCTotalCharges": 1200,
"CCAdultAmount": 2239.2,
"CCChildAmount": 0,
"CCInfantAmount": 0,
"PCAdultAmount": 800,
"PCChildAmount": 0,
"PCInfantAmount": 0
},
"IsIssueTicket": true
}