Non LCCs Flight Ticket
This method is to be called to generate ticket for Non LCCs (already booked itinerary).
If in case there is a price change at the time of ticketing then hit the price change ticket method with "IsPriceChangeAccepted" node true and the ticket would be generated with the updated price.
Parameters
Name
Description
Accept
string
( header )
Must be application/json
Accept - Encoding
string
( header )
Must be gzip
Authorization
string
( header )
Must be Your PID
Must be Your API Key
Customer-Ip
string
( header )
Must be IP address of the customer, as captured by your integration. Send IPV4 addresses only.
Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.
Also used for fraud recovery and other important analytics.
Definition and request parameters for Flight Ticket For NonLCC Method
action
string
( query )
Must be "ticketForNonLcc" as parameter
Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.
order_id
string
( query )
Order id(from book method)
PNR
string
( query )
PNR number(from book method)
BookingId
string
( query )
Unique booking id
TraceId
string
( query )
Trace Id (Get Trace Id from search response)
IsLCC
string
( query )
IsLCC (IsLCC="0")
isoneway
string
( query )
oneway Or return trip (isoneway="Yes" or isoneway="No")
isDomestic
string
( query )
isDomestic (isDomestic="Yes" or isDomestic="No")
IsDomesticReturn
string
( query )
IsDomesticReturn (isDomestic="Yes" or isDomestic="No")
Passengers
Array
Passengers details for the ticket
Title
string
( query )
Title (Adult Mr/Mrs Child Miss/Mstr Infant Miss/Mstr)
FirstName
string
( query )
First name
LastName
string
( query )
Last Name
PaxType
String
( query )
Pax type (Adult = 1,Child = 2,Infant = 3)
DateOfBirth
Date Time
String
( query )
Gender
String
( query )
Gender (Male=1,Female=2)
PassportNo
String
( query )
Passport no
PassportExpiry
Date time
( query )
Passport expiry
AddressLine1
String
( query )
Address
AddressLine2
String
( query )
Address
City
String
( query )
City
CountryCode
String
( query )
Country code
CountryName
String
( query )
Country Name
Nationality
String
( query )
Nationality
ContactNo
String
( query )
Contact no
String
( query )
IsLeadPax
Boolean
( query )
Represent the lead guest of the booking (Value True/ False)
Fare
Array
Fare details for the ticket
Currency
String
( query )
Currency
BaseFare
decimal
( query )
Base fare
Tax
decimal
( query )
Tax
YQTax
decimal
( query )
Fuel Surcharge
AdditionalTxnFeePub
decimal
( query )
Additional Transaction Fee Published
AdditionalTxnFeeOfrd
decimal
( query )
Additional Transaction Fee Offered
OtherCharges
decimal
( query )
Other Charges
Discount
decimal
( query )
Discount
PublishedFare
decimal
( query )
Published Fare
OfferedFare
decimal
( query )
Offered Fare
TdsOnCommission
decimal
( query )
Tds On Commission
TdsOnPLB
decimal
( query )
Tds On PLB
TdsOnIncentive
decimal
( query )
Tds On Incentive
ServiceFee
decimal
( query )
Service Fee
GSTCompanyAddress
String
( query )
GSTCompanyAddress
GSTCompanyContactNumber
String
( query )
GSTCompanyContactNumber
GSTCompanyName
String
( query )
GSTCompanyName
GSTNumber
String
( query )
GSTNumber
GSTCompanyEmail
String
( query )
GSTCompanyEmail
REQUEST
API Endpoint: https://www.abengines.com/api/v1/travel-api/flights/
header: array( 'Content-Type:application/json', 'Accept-encoding: gzip', 'PID:'ADD-YOUR-KEY', 'x-api-key:'ADD-YOUR-KEY' ); POST: { "action": "ticketForNonLcc", "PNR": "TESTPNR", "BookingId": "123456", "order_id": "610b986b67fea", "IsLCC": "0", "isoneway": "Yes", "isDomestic": "Yes", "IsDomesticReturn": "No", "TraceId": "1a29b8a2-hhhh-5555-88b0-eebc6d5a2bbc", "Passengers": [ { "Title": "Mr", "FirstName": "Test", "LastName": "Booking", "PaxType": "1", "DateOfBirth": "1995-07-17T00:00:00", "Gender": 1, "AddressLine1": "D-88 Ground Floor Sector 17 Vashi, Navi mumbai", "AddressLine2": "", "City": "Navi Mumbai", "CountryCode": "IN", "CountryName": "India", "Nationality": "IN", "ContactNo": "9988776655", "Email": "test@gmail.com", "IsLeadPax": true, "PassportNo": "", "PassportExpiry": "", "Fare": { "Currency": "INR", "BaseFare": 3911, "Tax": 822, "YQTax": 0, "AdditionalTxnFeePub": 0, "AdditionalTxnFeeOfrd": 0, "OtherCharges": 59, "Discount": 0, "PublishedFare": 4792, "OfferedFare": 4617.22, "TdsOnCommission": 8.74, "TdsOnPLB": 0, "TdsOnIncentive": 0, "ServiceFee": 0 }, "GSTCompanyAddress": null, "GSTCompanyContactNumber": null, "GSTCompanyName": null, "GSTNumber": null, "GSTCompanyEmail": null } ] }
Response
The API returns an HTTP response, which generally includes the result of the request invocation
{ "status": "200", "status_message": "OK", "responseData": { { "Response": { "B2B2BStatus": false, "Error": { "ErrorCode": 0, "ErrorMessage": "" }, "ResponseStatus": 1, "TraceId": "1a29b8a2-hhhh-5555-88b0-eebc6d5a2bbc", "Response": { "PNR": "TESTPNR", "BookingId": 1234567, "SSRDenied": false, "SSRMessage": null, "IsPriceChanged": false, "IsTimeChanged": false, "FlightItinerary": { "AgentRemarks": "", "CommentDetails": null, "IssuancePcc": "74HR", "JourneyType": 1, "TripIndicator": 1, "BookingAllowedForRoamer": true, "BookingId": 1234567, "IsCouponAppilcable": true, "IsManual": false, "PNR": "TESTPNR", "IsDomestic": false, "ResultFareType": "RegularFare", "Source": 5, "Origin": "AUH", "Destination": "VTZ", "AirlineCode": "AI", "LastTicketDate": "2021-08-07T23:59:00", "ValidatingAirlineCode": "AI", "AirlineRemark": "--", "IsLCC": false, "NonRefundable": false, "FareType": "PUB", "CreditNoteNo": null, "Fare": { "Currency": "INR", "BaseFare": 12740, "Tax": 2697, "TaxBreakup": [ { "key": "K3", "value": 0 }, { "key": "YR", "value": 270 }, { "key": "TotalTax", "value": 2697 }, { "key": "OtherTaxes", "value": 2427 } ], "YQTax": 0, "AdditionalTxnFeeOfrd": 0, "AdditionalTxnFeePub": 0, "PGCharge": 0, "OtherCharges": 0, "ChargeBU": [ { "key": "TBOMARKUP", "value": 0 }, { "key": "GLOBALPROCUREMENTCHARGE", "value": 0 }, { "key": "OTHERCHARGE", "value": 0 }, { "key": "CONVENIENCECHARGE", "value": 0 } ], "Discount": 0, "PublishedFare": 15437, "CommissionEarned": 156.7, "PLBEarned": 0, "IncentiveEarned": 0, "OfferedFare": 15280.3, "TdsOnCommission": 7.84, "TdsOnPLB": 0, "TdsOnIncentive": 0, "ServiceFee": 0, "TotalBaggageCharges": 0, "TotalMealCharges": 0, "TotalSeatCharges": 0, "TotalSpecialServiceCharges": 0 }, "CreditNoteCreatedOn": null, "Passenger": [ { "PaxId": 52595522, "Title": "Mr", "FirstName": "GONDESI APPALA", "LastName": "REDDY", "PaxType": 1, "DateOfBirth": "1979-09-03T00:00:00", "Gender": 1, "IsPANRequired": false, "IsPassportRequired": false, "PAN": "", "PassportNo": "Y3917275", "AddressLine1": "NPCC", "Fare": { "Currency": "INR", "BaseFare": 12740, "Tax": 2697, "TaxBreakup": [ { "key": "K3", "value": 0 }, { "key": "YR", "value": 270 }, { "key": "TotalTax", "value": 2697 }, { "key": "OtherTaxes", "value": 2427 } ], "YQTax": 0, "AdditionalTxnFeeOfrd": 0, "AdditionalTxnFeePub": 0, "PGCharge": 0, "OtherCharges": 0, "ChargeBU": [ { "key": "TBOMARKUP", "value": 0 }, { "key": "GLOBALPROCUREMENTCHARGE", "value": 0 }, { "key": "OTHERCHARGE", "value": 0 }, { "key": "CONVENIENCECHARGE", "value": 0 } ], "Discount": 0, "PublishedFare": 15437, "CommissionEarned": 156.7, "PLBEarned": 0, "IncentiveEarned": 0, "OfferedFare": 15280.3, "TdsOnCommission": 7.84, "TdsOnPLB": 0, "TdsOnIncentive": 0, "ServiceFee": 0, "TotalBaggageCharges": 0, "TotalMealCharges": 0, "TotalSeatCharges": 0, "TotalSpecialServiceCharges": 0 }, "City": "Abu Dhabi", "CountryCode": "AE", "Nationality": "AE", "ContactNo": "567122683", "Email": "chauhantravel271@gmail.com", "IsLeadPax": true, "FFAirlineCode": null, "FFNumber": null, "Ssr": [ { "Detail": "Y3917275-AE", "SsrCode": "PSPT", "SsrStatus": null, "Status": 3 } ], "Ticket": { "TicketId": 49867726, "TicketNumber": "4725102698", "IssueDate": "2021-08-01T23:00:07", "ValidatingAirline": "098", "Remarks": "", "ServiceFeeDisplayType": "ShowInTax", "Status": "OK", "ConjunctionNumber": " ", "TicketType": "N" }, "SegmentAdditionalInfo": [ { "FareBasis": "ULOWAHBM", "NVA": "", "NVB": "", "Baggage": "30K", "Meal": "0 Platter", "Seat": "", "SpecialService": "" }, { "FareBasis": "WIP", "NVA": "", "NVB": "", "Baggage": "30K", "Meal": "0 Platter", "Seat": "", "SpecialService": "" } ] } ], "CancellationCharges": null, "Segments": [ { "Baggage": null, "CabinBaggage": null, "CabinClass": 0, "TripIndicator": 1, "SegmentIndicator": 1, "Airline": { "AirlineCode": "AI", "AirlineName": "Air India", "FlightNumber": "1966", "FareClass": "U", "OperatingCarrier": "" }, "AirlinePNR": "HR388", "Origin": { "Airport": { "AirportCode": "AUH", "AirportName": "Abu Dhabi Int'l", "Terminal": "1", "CityCode": "AUH", "CityName": "Abu Dhabi", "CountryCode": "AE", "CountryName": "United Arab Emirates" }, "DepTime": "2021-08-07T00:15:00" }, "Destination": { "Airport": { "AirportCode": "DEL", "AirportName": "Indira Gandhi Airport", "Terminal": "3", "CityCode": "DEL", "CityName": "Delhi", "CountryCode": "IN", "CountryName": "India" }, "ArrTime": "2021-08-07T05:55:00" }, "Duration": 250, "GroundTime": 0, "Mile": 0, "StopOver": false, "FlightInfoIndex": "1", "StopPoint": "", "StopPointArrivalTime": null, "StopPointDepartureTime": null, "Craft": "32B", "Remark": null, "IsETicketEligible": true, "FlightStatus": "Confirmed", "Status": " " }, { "Baggage": null, "CabinBaggage": null, "CabinClass": 0, "TripIndicator": 1, "SegmentIndicator": 2, "Airline": { "AirlineCode": "AI", "AirlineName": "Air India", "FlightNumber": "451", "FareClass": "W", "OperatingCarrier": "" }, "AirlinePNR": "HR388", "Origin": { "Airport": { "AirportCode": "DEL", "AirportName": "Indira Gandhi Airport", "Terminal": "3", "CityCode": "DEL", "CityName": "Delhi", "CountryCode": "IN", "CountryName": "India" }, "DepTime": "2021-08-07T15:00:00" }, "Destination": { "Airport": { "AirportCode": "VTZ", "AirportName": "Vishakhapatnam", "Terminal": "", "CityCode": "VTZ", "CityName": "Vishakhapatnam", "CountryCode": "IN", "CountryName": "India" }, "ArrTime": "2021-08-07T17:15:00" }, "AccumulatedDuration": 930, "Duration": 135, "GroundTime": 545, "Mile": 0, "StopOver": false, "FlightInfoIndex": "2", "StopPoint": "", "StopPointArrivalTime": null, "StopPointDepartureTime": null, "Craft": "321", "Remark": null, "IsETicketEligible": true, "FlightStatus": "Confirmed", "Status": " " } ], "FareRules": [ { "Origin": "DEL", "Destination": "VTZ", "Airline": "AI", "FareBasisCode": "WIP", "FareRuleDetail": "", "FareRestriction": "", "FareFamilyCode": "", "FareRuleIndex": "" }, { "Origin": "AUH", "Destination": "DEL", "Airline": "AI", "FareBasisCode": "ULOWAHBM", "FareRuleDetail": "", "FareRestriction": "", "FareFamilyCode": "", "FareRuleIndex": "" } ], "PenaltyCharges": { "ReissueCharge": "2500 INR", "CancellationCharge": "4045 INR" }, "Status": 5, "Invoice": [ { "GSTIN": "07BDAPR4555F2ZI", "InvoiceCreatedOn": "2021-08-01T23:00:07", "InvoiceId": 662733, "InvoiceNo": "IW\/2122\/662733", "InvoiceAmount": 15288, "Remarks": "", "InvoiceStatus": 3 } ], "InvoiceAmount": 15288, "InvoiceNo": "IW\/2122\/662733", "InvoiceStatus": 3, "InvoiceCreatedOn": "2021-08-01T23:00:07", "Remarks": "", "IsWebCheckInAllowed": false }, "Message": "", "TicketStatus": 1 } } } } }